Skip to main content
Glama

Attach a connected integration's tools

attach_integration_tools

Add the tools of a CONNECTED integration (Gmail, Outlook, Google Drive, Microsoft 365, T2 WhatsApp, Msegat …) to an agent under their real, account-specific names. For a Blueprint-born agent pass the integration group_id (its tool list and workflow steps are used); otherwise a reference and optionally tools (base names) and, for a workflow, nodes. Idempotent. Refusal codes: integration_not_connected, integration_connect_your_own, integration_not_owner, integration_mismatch, integration_tools_unknown, integration_tools_unavailable, integration_group_unknown, integration_no_target, integration_not_personal, integration_no_mailbox_choice, mailbox_not_offered. personal_mode (personal accounts only): 'running_user' makes the tools act as each running person's own connected account; 'fixed' keeps this one account. mailbox (Exchange on-premises only): 'person', an offered mailbox address, or 'connection'.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agent_id": "<agent_id>"
    },
    "name": "attach_integration_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodesNoWorkflow only: the agent steps that get the tools (default: the group's steps).
toolsNoBase tool names to attach (default: the group's list, else every tool of the integration).
mailboxNoExchange (on-premises) only — whose mailbox the tools use: 'person' = each person's own mailbox; a mailbox address = that mailbox for everyone (only one the connection offers for everyone, listed in the result's mailbox_options); 'connection' = follow the connection's default. Omit to keep the current choice.
agent_idYesTarget agent's id (from list_agents / create_agent / get_catalog view=agents).
group_idNoBlueprint integration group id (e.g. 'mailbox'), from get_blueprint / the checklist.
referenceNoIntegration reference (e.g. 'gmail', 'outlook', 't2'); also picks one option of a group.
personal_modeNoPersonal accounts only: 'running_user' = each person's own connected account, 'fixed' = always this account. Omit to keep the current mode.
integration_idNoA specific connected account; default the first connected one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / mailbox
      Added value: +{
      +  "description": "Exchange (on-premises) only — whose mailbox the tools use: 'person' = each person's own mailbox; a mailbox address = that mailbox for everyone (only one the connection offers for everyone, listed in the result's mailbox_options); 'connection' = follow the connection's default. Omit to keep the current choice.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / personal_mode
      Added value: +{
      +  "description": "Personal accounts only: 'running_user' = each person's own connected account, 'fixed' = always this account. Omit to keep the current mode.",
      +  "enum": [
      +    "running_user",
      +    "fixed"
      +  ],
      +  "type": "string"
      +}
  3. Added

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: it declares idempotency, lists ten distinct refusal codes covering connectivity, ownership, mismatch, and target problems, and explains the semantics of personal_mode and mailbox (Exchange on-premises only, 'person' vs a specific offered address vs 'connection'). The annotations say only that this is a non-destructive write with no open-world access; the description supplies the operational and failure behavior that actually matters.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core action and the account-specific naming point before covering the Blueprint branch, idempotency, and refusal codes. It is information-dense rather than padded, though the unbroken enumeration of ten refusal codes and the parenthetical integration list make individual sentences long and slightly harder to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an eight-parameter mutating tool with no output schema, the description covers prerequisites (connection must exist and be owned), path selection, defaults, idempotency, failure modes, and even references an output field (mailbox_options) that the caller will need. The remaining gap is that it never says how to inspect or remove already-attached tools, so the full lifecycle is implied rather than specified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all eight parameters, and the description largely mirrors it. It still adds real value by clarifying the either/or branching (group_id path vs reference path), that tools are base names defaulting to the group's list and then all integration tools, that nodes apply to workflows only, and that omitting personal_mode or mailbox preserves the current setting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Add the tools of a CONNECTED integration ... to an agent' — and names concrete integrations (Gmail, Outlook, Google Drive, T2 WhatsApp, Msegat), which separates it from the sibling attach_* tools that attach AI tools, endpoints, files, or sub-agents. The account-specific naming detail further disambiguates what actually lands on the agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use group_id for a Blueprint-born agent, otherwise a reference with optional tools/nodes, and it enumerates the refusal codes that tell an agent why the call would fail (not connected, not owner, mismatch, no target). What it does not do is contrast itself with other attachment paths (e.g. attach_ai_tool, attach_mcp_server), so an agent must infer that this tool is only for first-party integrations rather than being told.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources