Skip to main content
Glama

Set category access

set_category_access
Idempotent

Grant/revoke an agent's access to a category (§7). can_write=false means read/recall only.

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>",
      "category_id": "<category_id>"
    },
    "name": "set_category_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idYes
can_writeNo
category_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already disclose that this is a non-read-only, idempotent, non-destructive mutation, so the burden is lower. The description adds useful semantics for can_write (false = read/recall only), but leaves ambiguous how a full revocation is expressed, what happens when can_write is omitted, and what the call returns in a multi-tenant permission system.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two very short sentences with the primary semantics front-loaded; nothing is padded or repeated from the title. The trailing §7 reference is terse but does not bloat the text.

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

Completeness4/5

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

For a three-parameter permission toggle with annotations covering the safety profile and no output schema, this is close to adequate. The remaining shortfall is the undocumented default for the optional can_write and the unexplained §7 cross-reference, which an agent cannot resolve from the definition alone.

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 0%, so the description must carry all parameter meaning, and it only explains one of three parameters (can_write). agent_id and category_id are largely self-evident from their names, but the optional can_write has no stated default, which is the single most consequential gap for a caller.

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 gives a specific verb pair ("Grant/revoke") and a concrete resource ("an agent's access to a category"), which is enough to distinguish it from the read-only sibling list_category_access. It stops short of full specificity because "revoke" is not clearly mapped to any parameter behavior.

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

Usage Guidelines3/5

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

Usage is only implied: the tool is for changing per-agent, per-category permissions, so an agent can infer it should call this rather than list_category_access when it wants to modify access. There is no explicit when-to-use/when-not-to-use statement, no prerequisite mention (e.g., that the agent and category must already exist), and no named alternative for reading current access.

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