Skip to main content
Glama

Set role permission

set_role_permission
Idempotent

Grant or revoke a single (resource, action) permission for a role.

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": {
      "role_id": "<role_id>",
      "resource": "<resource>",
      "action": "<action>",
      "granted": "<granted>"
    },
    "name": "set_role_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
grantedYes
role_idYes
resourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds that both granting and revoking flow through one tool acting on exactly one permission, which is useful, but it says nothing about required authorization, failure behavior for unknown roles, or any side effects.

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?

A single front-loaded sentence with zero filler; the mutation action and the scope qualifier appear before any optional detail. Nothing could be removed without losing meaning.

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 four-parameter mutation with no output schema, the description conveys the operation, its granularity, and both directions (grant and revoke), while annotations cover idempotency and safety. The remaining gap is authorization requirements and the accepted string vocabulary, which for a permission tool is a modest but real omission.

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 the load; it does name all four concepts (role, resource, action, and the grant/revoke flag), which maps the fields for the reader. However, it gives no format or vocabulary for the resource and action strings and never explicitly ties 'granted' to the boolean that selects grant versus revoke.

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 pair (grant/revoke) and resource (a single (resource, action) permission for a role), which is enough to distinguish it from list_role_permissions and set_agent_tool_permission. It stops short of naming a sibling, so it lands at 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?

There is no guidance on when to pick this over set_agent_tool_permission, create_tenant_role, or update_tenant_role, and no stated prerequisites such as requiring an admin role or an existing role_id. The only implicit hint is 'single', suggesting per-permission use rather than bulk.

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