Skip to main content
Glama

Assign an integration to a chatbot

assign_chatbot_integration

Assign an integration to a chatbot

Gives a chatbot access to one integration, so its tools become callable during a chat. The integration must belong to the account that owns the chatbot, which for a reseller key is the customer account, not the reseller. 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. Assigning an integration that is already assigned returns 409. After the row is written the new tool set is pushed to the voice engine; if that push fails the assignment is rolled back and the request returns 502, so the response always reflects the live chatbot.

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

Input Schema

NameRequiredDescriptionDefault
bodyYesThe integration to assign, and optionally the tools to enable. Omit `enabledTools` to accept the recommended default set. Only catalogue-backed integration types accept a tool list.
chatbotIdYesNumeric identifier of the chatbot.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

The description goes well past the annotations (readOnly=false, idempotent=false, destructive=false) by disclosing the failure matrix: 409 for an already-assigned integration, 422 with `tool_not_permitted` for tools outside the permission set, 400 `validation_error` for malformed or unknown names, and 502 with rollback if the push to the voice engine fails. The rollback-after-push detail is exactly the kind of side effect an agent cannot get from annotations, and the 409 disclosure is consistent with idempotentHint=false.

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?

Purpose and account-ownership constraint are front-loaded, and the dense error/rollback information is packed into single clauses without filler. It is a long block with several distinct concerns run together in one paragraph, but nearly every sentence carries actionable content.

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 two-parameter mutation with a nested body and no output schema, the definition covers prerequisites, default semantics, validation rules, conflict behavior, and partial-failure rollback. An agent has everything needed to call it correctly and to interpret a non-2xx response without further documentation.

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 would be 3. The description earns more by spelling out the three-way semantics of `enabledTools` (null = recommended default, empty array = nothing callable, list = exactly those tools) and by pinning tool names to the catalogue `name` values and the `permitted` set. That constrains the string array in a way the schema's type declaration does not.

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

Purpose4/5

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

The description names a specific verb and resource ('assign an integration to a chatbot') and adds an outcome clause ('gives a chatbot access to one integration, so its tools become callable during a chat'). It implicitly separates itself from remove_chatbot_integration and update_chatbot_integration_tools by being the creation step, but it never names a sibling explicitly, so an agent must infer the boundary with assign_agent_integration.

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?

It gives strong preconditions: the integration must already exist on the account that owns the chatbot, and with a reseller key that means the customer account rather than the reseller. It also directs the caller to GET /integrations/{id}/permissions to verify `permitted` before supplying a tool list. What is missing is routing to alternatives for the change/removal cases, which are left implicit.

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.