Skip to main content
Glama

Set the tool permissions of an integration

set_integration_permissions
Idempotent

Set the tool permissions of an integration

Stores which tools the agents of the account may use through this integration, exactly as the dashboard does. Choose a preset (read, read_write, full) or custom with the exact tool keys from tools[].key of the GET of this path. Only the permissions change; the rest of the stored configuration stays as it is. Every agent and chatbot the integration is assigned to then gets its tool list rebuilt, so the change takes effect in their next conversation: agentsResynced counts the agents that were updated, agentsFailed the ones that could not be updated now (the saved permissions still apply to them). A tool selection of an agent (enabledTools) that names a tool outside the new permissions is not changed, but the tool stays unavailable to the agent. An unusable choice is refused with 422 and error code validation_error. Integration types without tool permissions answer 404.

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": {
      "id": "<id>",
      "body": "<body>"
    },
    "name": "set_integration_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesIdentifier of the integration. A non-numeric value is rejected with 400.
bodyYesThe new choice: a preset, or `custom` with the exact tool keys agents may use.

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?

Well beyond what the annotations declare (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses the real side effect: every assigned agent and chatbot has its tool list rebuilt and the change lands in their next conversation. It names the response fields `agentsResynced` and `agentsFailed`, explains the partial-failure semantics, notes that an agent's `enabledTools` naming an out-of-scope tool is left untouched but becomes unavailable, and specifies the 422 `validation_error` and 404 failure modes.

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 content is dense and front-loaded: the action, the allowed inputs, the scope constraint, then side effects and errors. It is a single undivided paragraph with several long clauses, so a reader must parse carefully, but almost every sentence carries distinct information and little is redundant.

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 mutation tool with a nested body, no output schema, and cross-resource effects, the description supplies everything an agent needs: the accepted input model, the invariant that other config is untouched, the resync consequence, the meaning of both returned counters, and the two error conditions. Nothing material is missing.

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%, so the schema already documents `id`, `preset` (including each enum value) and `tools`. The description mostly restates that model, adding only the pointer to `tools[].key` from the GET endpoint and the custom-only requirement, which is a modest increment over the structured fields. Baseline 3 is appropriate here.

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 description opens with a specific verb and resource ('Set the tool permissions of an integration') and immediately bounds the scope ('Only the permissions change; the rest of the stored configuration stays as it is'). This clearly separates it from the read sibling (get_integration_permissions), from list_integration_tools, and from the broader update_integration, so an agent can select it without opening any 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?

It tells the agent how to make the choice (a preset, or 'custom' with the exact tool keys taken from `tools[].key` of the GET of this path), which implicitly routes the agent to the GET sibling first. It does not explicitly say when to prefer this over update_integration or per-agent alternatives like update_agent_integration_tools, so the routing is clear but not exhaustive.

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.