Skip to main content
Glama

rbac_check_permission

Read-only

Checks whether the current user has a given permission (input: permission). Returns true or false with the reason.

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": {
      "permission": "<permission>"
    },
    "name": "rbac_check_permission"
  }
}

Input Schema

NameRequiredDescriptionDefault
permissionYesPermission to check (e.g. 'schema:manage', 'data:write').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, non-destructive and closed-world, so safety is covered. The description adds genuinely new behavioral information beyond the annotations: the call returns a boolean plus the reason, which matters because no output schema exists. It stops short of describing what the reason contains or failure modes such as unknown permission strings.

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 behavior and return shape. The parenthetical '(input: permission)' is redundant with the schema and is the only element that does not earn its place.

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 one-parameter boolean check with no output schema, the description supplies what an agent most needs: the subject scope and the return shape. Minor gaps remain on the format of the 'reason' field and on behavior for unrecognized permission strings.

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 coverage is 100% and the single permission parameter already carries a description with example values ('schema:manage', 'data:write'). The description's '(input: permission)' restates the schema rather than adding format, validity, or lookup semantics, so baseline 3 applies.

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 and resource: checks a given permission for the current user, and explicitly scopes the subject as 'the current user', which separates it from sibling tools like rbac_get_my_access and apikey_get_scope. It does not name a sibling directly, keeping it 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 Guidelines3/5

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

The phrasing implies a pre-flight access check ('checks whether the current user has...'), but the description never states when to prefer this over rbac_get_my_access or apikey_get_scope, nor any when-not conditions. Usage must be inferred.

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.