Skip to main content
Glama

assign_permission_set

DestructiveIdempotent

Assign a permission set to ONE person (user_id), a ROLE (role) or an AGENT (agent_id), or remove it (remove=true). A person with own sets gets only those — the role's sets no longer apply to them. An agent's sets apply to EVERY call the agent makes, on top of the person's (strictest wins) — so work handed to an agent via delegate_task cannot escape the lock. Admins 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": {
      "set_id": "<set_id>"
    },
    "name": "assign_permission_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNoRole to assign the set to (instead of user_id or agent_id)
removeNotrue removes the assignment instead of adding it
set_idYesID of the set
user_idNoID of the user
agent_idNoID of the agent

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"ID of the agent"
    • addedInput schema / properties / remove / description
      Added value: +"true removes the assignment instead of adding it"
    • addedInput schema / properties / role / description
      Added value: +"Role to assign the set to (instead of user_id or agent_id)"
    • addedInput schema / properties / set_id / description
      Added value: +"ID of the set"
    • addedInput schema / properties / user_id / description
      Added value: +"ID of the user"
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (destructive, idempotent, not read-only), the description discloses real semantics: a person's own sets fully supersede role-inherited sets, agent sets stack on top of the person's with 'strictest wins', and delegation through delegate_task cannot bypass the lock. It also states the admin authorization requirement, which annotations do not carry.

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?

Four short sentences, front-loaded with the operation and targets before the behavioral consequences. Emphatic capitalization (ONE, ROLE, AGENT, EVERY) is deliberate emphasis rather than padding. The delegate_task clause is slightly tangential but earns its place by explaining an escape-prevention guarantee.

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 destructive, idempotent mutation with no output schema, the description covers targets, removal, inheritance semantics, and authorization. It leaves unaddressed edge cases such as behavior for an unknown set_id or a target that does not exist, but nothing essential for calling it correctly is missing.

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 is 3, but the description adds meaning the schema does not: the targets are mutually exclusive ('ONE'), and it explains the resulting permission effect of each target type. The 'instead of user_id or agent_id' exclusivity is partly duplicated from the schema, which keeps it from a full 5.

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 states a specific verb and resource ('Assign a permission set') and enumerates the three target kinds (user_id, role, agent_id) plus the remove=true inverse. It is unambiguous what the tool does. It stops short of naming the sibling that defines or edits the set itself (e.g. set_permission_set), so sibling differentiation is only implicit.

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 clear usage conditions: exactly one target must be chosen, remove=true flips the operation, and 'Admins only' states the prerequisite. delegate_task is referenced to explain the consequence of agent-scoped sets rather than as an alternative tool to route to, and there is no explicit 'do not use this to define a set' exclusion.

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.