Skip to main content
Glama

Change the tool selection for a chatbot integration

update_chatbot_integration_tools

Change the tool selection for a chatbot integration

Replaces the tool selection for one integration already assigned to a chatbot. 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": {
      "chatbotId": "<chatbotId>",
      "integrationId": "<integrationId>",
      "body": "<body>"
    },
    "name": "update_chatbot_integration_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe complete new tool selection. This replaces the previous selection rather than adding to it.
chatbotIdYesNumeric identifier of the chatbot.
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?

Beyond the annotations (readOnly=false, destructive=false, idempotent=false), the description discloses the full failure surface: 422 tool_not_permitted for tools outside the permitted set, 400 validation_error for malformed or unknown names, 400 for a missing enabledTools key, and 404 for another account's integration. It also explains the partial-failure semantics of the voice-engine push (502 returned but selection saved, so retry only repeats the push), which is exactly the kind of context annotations cannot carry.

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?

The critical semantics are front-loaded in the first three sentences and every paragraph carries information about either the field's meaning or error behavior. It is slightly long, with the required-field sentence repeating the null-means-default point already made two sentences earlier.

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?

With no output schema, the description compensates by covering success side effects (saved then pushed to the voice engine), partial failure and retry behavior, and all relevant error codes. For a three-parameter nested-body mutation tool, nothing an agent needs in order to call it correctly is missing.

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 baseline is 3, but the description adds real meaning: it pins tool names to the `name` values of the integration tool catalogue, ties the permitted subset to GET /integrations/{id}/permissions, and clarifies the difference between null (recommended default), empty array (no tools) and an explicit list. The only redundancy is that it restates the null/empty/list semantics already present in the schema's enabledTools description.

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?

The opening sentence names a specific verb (replaces/changes) and resource (tool selection for one integration already assigned to a chatbot), and the phrase 'already assigned to a chatbot' implicitly separates it from update_agent_integration_tools and from assign_chatbot_integration. An agent can tell what is being mutated 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?

Usage context is clear: it applies to an existing chatbot integration assignment and replaces rather than appends the selection. It does not, however, name any sibling alternative (e.g. the agent-scoped equivalent) or state an explicit when-not-to-use condition, so the routing guidance is implicit rather than spelled out.

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.