Skip to main content
Glama

Remove an integration from an agent

remove_agent_integration
DestructiveIdempotent

IRREVERSIBLE: Remove an integration from an agent

Unassigns an integration from a voice agent, so the agent can no longer call any of its tools. The integration itself is untouched and stays available to assign elsewhere. The reduced tool set is pushed to the voice engine after the row is removed; if that push fails the request returns 502 and the integration is already unassigned locally but may still be callable until a later change syncs. This endpoint takes no request body.

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": {
      "agentId": "<agentId>",
      "integrationId": "<integrationId>"
    },
    "name": "remove_agent_integration"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYesIdentifier of the voice agent. Accepted either as the public form `agent_12` or as the bare number `12`; the prefix is stripped before the lookup.
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.
integrationIdYesNumeric identifier of the integration whose assignment is being changed. This is the integration id, not the assignment id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint, idempotentHint) by flagging IRREVERSIBLE up front and disclosing the non-obvious partial-failure semantics: the tool set is pushed to the voice engine after the local row is removed, a failed push returns 502, and the integration may remain callable until a later sync. That is exactly the operational risk an agent needs before invoking a destructive mutation.

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-loaded with the IRREVERSIBLE warning, then scope, then failure behavior, in a logical order with no filler. The trailing 'takes no request body' sentence is the weakest line and slightly muddies a definition whose parameters are clearly supplied.

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

Completeness5/5

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

For a destructive two-required-parameter mutation with no output schema, the description covers what is destroyed, what survives, the sync failure mode, and the confirmation handshake. An agent has enough to call it correctly and warn the user.

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

Parameters3/5

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

Schema description coverage is 100%, including the agentId prefix-stripping rule, the integrationId-vs-assignment-id caveat, and the confirm echo protocol, so the schema already carries parameter meaning. The description adds only the (somewhat confusing) note that the endpoint 'takes no request body', which does not clarify the three documented parameters.

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 ('Remove an integration from an agent' / 'Unassigns an integration') and immediately disambiguates from delete_integration by noting the integration itself is untouched and remains assignable elsewhere. An agent can distinguish unassignment from deletion without opening a schema.

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?

Establishes clear context for when to use it (detach an integration so the agent can no longer call its tools) and implicitly excludes deletion by contrasting the two outcomes. It does not explicitly name a sibling alternative such as delete_integration or a restore path, so no full when/when-not pairing.

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.