> ## Documentation Index
> Fetch the complete documentation index at: https://explore.airia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tool & MCP Interface

> Expose your agent as a callable tool that can be used by other agents through the Airia MCP server

The Tool & MCP interface allows you to expose your agent as a reusable tool that can be called by other agents. When configured, your agent becomes available through the **Airia Deployed Agents MCP** server, enabling agent-to-agent interactions and tool composition.

<Note>
  For an overview of managing all interface types, see [Managing Agent Interfaces](/building-and-deploying-agents/interface-options/managing-interfaces).
</Note>

## What is the Tool & MCP Interface?

The Tool & MCP interface exposes your agent as a callable tool through the **Airia Deployed Agents MCP** server, so other agents can discover and call it using MCP standards. Most teams can use the defaults; optionally, you can add structured input/output schemas and tool annotations for stricter, machine-readable contracts.

## Prerequisites

* Your agent must have an **Active version** published
* You need appropriate permissions (admin, project-admin, or security-admin) to configure tool interfaces

## Configuration Steps

Most teams can get started by setting a **name** and **description** only. Airia will automatically provide a default input format so you don’t need to define schemas.

<Steps>
  <Step title="Access the Interfaces Panel" stepNumber={1}>
    Access the interfaces panel by either:

    * Clicking the **ellipsis (…)** menu to the right of your Agent and selecting **Interfaces**
    * Opening the Agent in Studio and clicking **Settings > Interfaces**
  </Step>

  <Step title="Add Tool & MCP Interface" stepNumber={2}>
    In the interfaces panel, click **"+ Add Interface"** and select **Tool & MCP** from the available interface types.
  </Step>

  <Step title="Configure Tool Title" stepNumber={3}>
    Enter a unique tool name that will be used to identify your agent as a tool:

    * Example: `customer_support_agent`, `data_analyzer`, `email_processor`

    <Note>
      The tool name is automatically generated from the name of the Agent, but you can customize it. This name will appear with the `ati_` prefix when exposed through the MCP server (e.g., `ati_customer_support_agent`).
    </Note>
  </Step>

  <Step title="Provide Tool Description" stepNumber={5}>
    Create a clear description of what your agent tool does. This description helps other agents understand when and how to use your tool

    * Example: "Analyzes customer support tickets and provides recommended responses based on ticket content and customer history"
  </Step>

  <Step title="Enable the Tool Interface" stepNumber={6}>
    Ensure the **Enabled** toggle is turned on. When enabled, your agent tool will be:

    * Discoverable through the Airia Deployed Agents MCP server
    * Available to other agents that connect to the MCP server

    You can disable it later without deleting the configuration.
  </Step>
</Steps>

<Note>
  **Screenshot placeholder**: Interfaces panel showing **Tool & MCP** configured for an agent.\
  Replace the image path below with your screenshot.
</Note>

<img src="https://mintcdn.com/airia/P4TL3c1TKGO76gOV/images/tool-interface-1-interfaces-config.png?fit=max&auto=format&n=P4TL3c1TKGO76gOV&q=85&s=ed60f62078c9d7cc228b2f6f1b62e162" alt="Interfaces panel showing Tool & MCP configured" width="2386" height="1434" data-path="images/tool-interface-1-interfaces-config.png" />

## Using Your Agent Tool

Once configured, your agent tool can be used by other agents through an **MCP Gateway** connection to the **Airia Deployed Agents MCP** server.

<Steps>
  <Step title="Create an MCP Gateway" stepNumber={1}>
    Navigate to **MCP Gateway** and create a new gateway.
  </Step>

  <Step title="Select Airia Deployed Agents MCP" stepNumber={2}>
    When selecting the MCP server, choose **Airia Deployed Agents MCP**.
  </Step>

  <Note>
    **Screenshot placeholder**: MCP Gateway server selection showing **Airia Deployed Agents MCP**.\
    Replace the image path below with your screenshot.
  </Note>

  <img src="https://mintcdn.com/airia/P4TL3c1TKGO76gOV/images/tool-interface-2-gateway-select-deployed-agents-mcp.png?fit=max&auto=format&n=P4TL3c1TKGO76gOV&q=85&s=0c919119c6bdc984ae4c471b24dc1b1a" alt="MCP Gateway server selection showing Airia Deployed Agents MCP" width="2956" height="1396" data-path="images/tool-interface-2-gateway-select-deployed-agents-mcp.png" />

  <Step title="Configure authentication" stepNumber={3}>
    Configure the gateway using one of the following authentication options:

    * **Passthrough bearer token (recommended)**: the gateway will pass your **Gateway OAuth access token** through to the MCP server, and tools will automatically authenticate.
    * **API key**: you must provide the API key during gateway setup.

    <Note>
      With passthrough, agents and tool calls run **on behalf of the signed-in user** represented by the access token.
    </Note>
  </Step>

  <Note>
    **Screenshot placeholder**: Gateway auth configuration showing **Bearer passthrough** enabled.\
    Replace the image path below with your screenshot.
  </Note>

  <img src="https://mintcdn.com/airia/P4TL3c1TKGO76gOV/images/tool-interface-3-gateway-auth-bearer-passthrough.png?fit=max&auto=format&n=P4TL3c1TKGO76gOV&q=85&s=1f09e0f7e469648e9f0d6402e96cddd6" alt="Gateway auth configuration showing bearer passthrough" width="1950" height="896" data-path="images/tool-interface-3-gateway-auth-bearer-passthrough.png" />

  <Step title="Discover tools (agents) based on access" stepNumber={4}>
    The agents you see (and can call) depend on your **level of access**. Tool discovery and tool execution are scoped to the user and permissions represented by the access token.
  </Step>

  <Note>
    **Screenshot placeholder**: “Agents as tools” list returned from tool discovery (showing `ati_` tools).\
    Replace the image path below with your screenshot.
  </Note>

  <img src="https://mintcdn.com/airia/P4TL3c1TKGO76gOV/images/tool-interface-4-agents-as-tools-list.png?fit=max&auto=format&n=P4TL3c1TKGO76gOV&q=85&s=780483370ce570852f3c67a41e78525b" alt="Agents listed as tools with ati_ prefix" width="2444" height="1180" data-path="images/tool-interface-4-agents-as-tools-list.png" />

  <Step title="Call the agent tool" stepNumber={5}>
    Once connected, your agent tool will appear in the list of available tools with the `ati_` prefix. Call it from your agent workflow like any other tool.
  </Step>
</Steps>

<Note>
  **Screenshot placeholder**: Using **Airia Deployed Agents MCP** from a 3rd-party MCP client (example: Postman).\
  Replace the image path below with your screenshot.
</Note>

<img src="https://mintcdn.com/airia/FJH93nhTW1oNasMz/images/tool-interface-5-cursor-mcp-client.png?fit=max&auto=format&n=FJH93nhTW1oNasMz&q=85&s=478e1b669d102a335b28105515c09de0" alt="Airia Deployed Agents MCP in a third-party MCP client (Cursor)" width="1772" height="590" data-path="images/tool-interface-5-cursor-mcp-client.png" />

<img src="https://mintcdn.com/airia/FJH93nhTW1oNasMz/images/tool-interface-5-cursor-mcp-client-tools.png?fit=max&auto=format&n=FJH93nhTW1oNasMz&q=85&s=66ff96ef8c32ef6013af0a8c14340773" alt="Airia Deployed Agents MCP returning tools (Cursor)" width="1798" height="714" data-path="images/tool-interface-5-cursor-mcp-client-tools.png" />

## Advanced setup (structured input & output)

If you want strict, machine-readable parameters (recommended for complex tools or multi-team reuse), define **JSON schemas** for input and output and optionally add tool behavior annotations.

<Steps>
  <Step title="Define Input Schema (JSON Schema)" stepNumber={1}>
    Define the JSON schema for input parameters your tool should accept:

    * Use the schema builder to visually create your schema, or paste a JSON schema directly
    * Define required vs optional fields, types, and descriptions
    * Example schema:

    ```json theme={null}
    {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "description": "The search query to process"
        },
        "max_results": {
          "type": "number",
          "description": "Maximum number of results to return",
          "default": 10
        }
      },
      "required": ["query"]
    }
    ```

    <Note>
      If you don’t define schemas, Airia will use a default input format (recommended for most teams).
    </Note>
  </Step>

  <Step title="Define Output Schema (Optional)" stepNumber={2}>
    Optionally define a JSON schema for the response structure so callers know what to expect.

    ```json theme={null}
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "title": { "type": "string" },
              "score": { "type": "number" }
            }
          }
        },
        "total_count": { "type": "number" }
      }
    }
    ```
  </Step>

  <Step title="Configure MCP Annotations (Optional)" stepNumber={3}>
    Tool annotations provide hints about behavior:

    * **Destructive Hint**: tool performs destructive operations (default: false)
    * **Idempotent Hint**: repeated calls with same input produce the same result (default: true)
    * **Open World Hint**: tool can handle inputs beyond training data (default: true)
    * **Read Only Hint**: tool only reads data (default: true)
  </Step>
</Steps>

## Related Documentation

* [Managing Agent Interfaces](/building-and-deploying-agents/interface-options/managing-interfaces) - Overview of all interface types
* [API Interface Configuration](/building-and-deploying-agents/interface-options/api-deployment) - REST API access
* [MCP Tools Documentation](/integrations/Tools/) - Learn about MCP tools and integrations
