Skip to main content
Glama

Set agent tool permission

set_agent_tool_permission
Idempotent

Set (create or update) a tool permission rule for an agent. Use tool_name '*' for the agent's default rule.

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": {
      "agent_id": "<agent_id>",
      "tool_name": "<tool_name>",
      "permission": "<permission>"
    },
    "name": "set_agent_tool_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYes
brain_idNo
tool_nameYes
permissionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, and the description's 'create or update' adds little beyond the idempotent hint. It says nothing about what happens to an existing conflicting rule, whether a wildcard rule is overridden by specific rules, permission requirements, or the resulting state.

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?

Two short sentences, front-loaded with the core action and the upsert semantics immediately after. No filler, though the second sentence is a parameter note placed where broader usage guidance would be more valuable.

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

Completeness3/5

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

For a small four-parameter mutation with no output schema, the description covers the core action and the one non-obvious parameter convention. However, the unexplained optional brain_id and the lack of any statement about rule precedence or resulting state leave gaps an agent must guess at.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the burden for all four parameters, yet it explains only tool_name's wildcard meaning. agent_id, brain_id (optional and entirely unexplained), and the allow/disallow/approval values receive no added meaning beyond their bare schema types.

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?

States a specific verb+resource ('Set ... a tool permission rule for an agent') and clarifies it is an upsert ('create or update'), which differentiates it from the read-only sibling list_agent_tool_permissions. It stops short of naming any sibling explicitly, so 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only guidance is the parameter-level hint that tool_name '*' targets the agent's default rule. There is no statement of when this tool should be chosen over alternatives, no prerequisites (e.g., the agent must exist, needed scopes), and no when-not-to-use cases.

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.

Resources