Overview

Merge Docs

Merge Agent Handler

Merge Agent Handler securely connects AI agents to third-party tools via the Model Context Protocol (MCP). It manages authentication, permissions, and monitoring of all tool interactions.

Agent Handler includes:

  • Prebuilt connectors for common enterprise systems
  • Built-in authentication and credential handling
  • Observability and data-loss prevention controls
Merge Agent Handler DiagramMerge Agent Handler Diagram

Key concepts

The high level flow of Merge Agent Handler is: you register a user so they can connect to third party data providers. That user then takes actions through your agents. As users take actions, Merge Agent Handler scans tool inputs and responses for sensitive data, and prevents data misuse based on configurations you set in the platform.

ConceptDescription
Registered UserThe users who will be interacting with your agent. You can create these programmatically.
ConnectorsThe third-party systems that your customers will interact with.
Examples: Jira, Linear, and Asana.
ToolsThe specific actions within a connector that your customers can take.
Examples: Create_Issue tool in Jira, a Get_Issue tool in Linear, or a Create_Task tool in Asana.
Tool PackThe bundling of connectors and specific tools that your customers can use through your agent.
LinkUI component that guides your app’s user through authentication for a connector.
Connector StudioThe suite to add or customize connectors and tools for your different use cases.
Security GatewayThe security gateway scans tool inputs and responses for sensitive data, and takes action based on what’s configured within the platform.

Data flow diagram

How your product will interact with Merge Agent Handler

Merge Agent Handler sits in-between your AI agent and third-party tools.

Data Flow Diagram

A workflow could look like:

  1. Your user will call Merge Agent Handler to list all tools available for your registered user to use
  2. Merge Agent Handler will respond with the available tools enabled in the Tool Pack
  3. Your registered user prompts your agent to connect. Your agent calls one of the available tools. If it’s your user’s first time interacting with a given connector, we’ll signal to prompt for the user’s credentials via Link.
  4. The tool call arguments are passed through the Security Gateway & DLP solution to scan for sensitive entities.
  5. The tool call is executed and the requests are made to the third-party.
  6. The responses are returned by the third party. They will pass through the Security Gateway once more, and then returned back to your agent.