Skip to main content
Glama

Set agent tool permission

set_agent_tool_permission
Idempotent

Set a per-tool rule for an agent: allow / disallow / approval. tool_name '*' is the agent's default. Optionally scope to one category ("brain").

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
tool_nameYesMCP tool name, or '*' for the agent's default rule.
permissionYes
category_idNo
category_slugNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety and idempotency profile is covered. The description adds real semantic content beyond that: the three-value permission vocabulary and the meaning of "*" as the agent-wide default rule. It does not say whether a new rule overrides an existing one, how agent rules interact with role permissions, or whether category scoping narrows precedence — gaps that matter for a permissions mutation.

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 compact sentences, with the core operation and the rule vocabulary front-loaded before the scoping caveat. Every clause carries information and there is no filler, though the parenthetical example could be slightly better integrated.

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 five-parameter permissions mutation with no output schema, the definition covers the essential semantics (rule values, wildcard default, category scoping) so an agent can probably invoke it. It still omits override/precedence behavior and the agent_id/category parameter relationship, which are the details most likely to cause a wrong call.

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 description coverage is only 20%, so the description must carry weight, and it does: it explains tool_name's wildcard default, names the permission enum values, and clarifies that category_id/category_slug "optionally scope to one category" (with a concrete example, "brain"). It leaves agent_id unexplained and does not state whether category_id and category_slug are alternative ways to specify the same scope.

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 uses a specific verb and resource ("Set a per-tool rule for an agent") and enumerates the possible rule values (allow / disallow / approval), so the agent knows exactly what operation this is. It does not explicitly name a distinguishing sibling such as set_role_permission, so it falls short of a 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?

There is no when-to-use or when-not-to-use guidance: nothing tells the agent how this differs from set_role_permission (role-level rules) or list_agent_tool_permissions (reading them). The only routing hints are embedded parameter notes ("'*' is the agent's default", "Optionally scope to one category"), which describe mechanics rather than tool selection.

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