Skip to main content
Glama

Change the tool selection for an assigned integration

update_agent_integration_tools

Change the tool selection for an assigned integration

Replaces the tool selection for one integration already assigned to a voice agent. The enabledTools field decides which of the integration actions the assistant may call: null means the recommended default set for that integration type, an empty array means the assistant may call nothing, and a list of tool names means exactly those tools and no others. Tool names are the name values from the integration tool catalogue. A list may only name tools the permissions of the integration allow (permitted in the catalogue, see GET /integrations/{id}/permissions); a tool outside them is refused with 422 and error code tool_not_permitted, while a malformed list or an unknown tool name stays a 400 validation_error. The field is required: a body without an enabledTools key is rejected with 400, while an explicit null restores the recommended default set. The new selection is saved and then pushed to the voice engine; if the push fails the request returns 502 but the saved selection is kept, so a retry only has to repeat the push. An integration of another account answers 404 as if it were not assigned.

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>",
      "body": "<body>"
    },
    "name": "update_agent_integration_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe complete new tool selection. This replaces the previous selection rather than adding to it.
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.
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.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing persist-then-push semantics, the 502 partial-failure mode where the saved selection survives and only the push needs retrying, per-error-code outcomes (400 validation_error, 422 tool_not_permitted, 404 cross-account), and the fact that a missing key differs from an explicit null. Nothing here contradicts readOnlyHint=false or idempotentHint=false; the replace-plus-push model is consistent with them.

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 core semantics and dense with useful detail, but the opening line duplicates the title verbatim, and the single long block bundles value semantics, permission rules, error codes, and push behavior together. Grouping by concern would make the important bits easier to find.

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 three-parameter nested-body mutation with no output schema, this covers everything an agent needs: required-field behavior, the tri-state meaning of the list, the permission constraint that triggers 422, the partial-failure and retry contract, and the cross-account 404. Nothing material is left to inference.

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 already 100%, so the schema carries the argument descriptions; the prose adds real meaning on top by explaining that tool names are `name` values from the integration tool catalogue and that out-of-scope names are refused. It never expands on agentId/integrationId beyond the schema, and the 'not the assignment id' clarification is already in the schema.

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 — 'Replaces the tool selection for one integration already assigned to a voice agent' — and pins the scope to existing assignments on voice agents, which distinguishes it from the chatbot counterpart in the sibling list. An agent can identify the operation without opening the 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?

Gives clear operating context: the call replaces rather than appends, null restores defaults, empty array disables everything, and a list selects exactly those tools. It also points to the permission lookup endpoint as a prerequisite check. It stops short of naming an alternative tool (e.g. the chatbot variant or a permission-setting tool) for a different condition, so it is strong but not a full routing guide.

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.