Skip to main content
Glama

Get Role

get_role
Read-onlyIdempotent

Read one access role by its KEY (e.g. "ADMIN"), including the full list of privileges it grants. Returns key, name, description, isDefault (whether new users get this role) and privileges (privilege key + description). Use this to confirm a role key and its privilege keys before gating a route or component on them; list_roles shows every role. Fails with ROLE_NOT_FOUND when no role has the given key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appNoId of the Bridge app to act on for this call (see list_apps). Omit to use the current app.
keyYesRole KEY, e.g. "ADMIN" (see list_roles).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so safety is covered. The description goes beyond that by disclosing the exact return fields and the ROLE_NOT_FOUND failure mode, though it omits whether the lookup is app-scoped in effect.

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?

Three tight sentences with zero filler: identity, usage routing, and failure mode in that order. The key constraint is front-loaded and every clause carries information.

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

Completeness5/5

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

There is no output schema, so the description compensates by enumerating the returned fields (key, name, description, isDefault, privileges) and the error case. For a two-parameter read tool, an agent has everything needed to call it and interpret the result.

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%, so both the app and key parameters are already documented in the schema, including the "ADMIN"-style example. The description reinforces the key semantics but adds no format or case-sensitivity detail beyond what the schema provides, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Read one access role by its KEY") plus the scope of what is returned. It explicitly contrasts itself with list_roles, so an agent can distinguish it from the sibling without opening a schema.

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

Usage Guidelines5/5

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

Provides an explicit use case ("confirm a role key and its privilege keys before gating a route or component on them") and names the alternative (list_roles) for enumerating all roles. Both the when and the alternative are stated, not implied.

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.