Skip to main content
Glama

Grant a role

grant_role

Grants a role to an identity (a person, a group, a service account, an app) on a scope, until a date; only what one holds oneself, never to oneself. Access for an address in the company's domain: it waits for their first sign-in.

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": {
      "who": "<who>",
      "role": "<role>",
      "scope": "<scope>",
      "reason": "<reason>"
    },
    "name": "grant_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
whoYesAn address, group:<name>, service_account:<name>, app:<project>/<service> or task:<project>/<task>.
daysNoDuration, in days.
roleYesA built-in role (owner, admin, developer, reader, access, data-reader, connection-caller, connection-writer, service-caller, data-writer) or one of the organization's (review_access { view: "roles" }).
scopeYes{}: the organization; otherwise down to a table, or a connection.
untilNoEnd date (included): 2026-11-30.
reasonYesWhy ("Q4 audit"): it goes to the log and is read in the sentence.
organizationNoThe organization.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / role / description
      Previous value: -"A built-in role (owner, admin, developer, reader, access, data-reader, connection-caller, connection-writer, service-caller) or one of the organization's (review_access { view: \"roles\" })."New value: +"A built-in role (owner, admin, developer, reader, access, data-reader, connection-caller, connection-writer, service-caller, data-writer) or one of the organization's (review_access { view: \"roles\" })."
  2. Changed1 schema field changed
    • changedInput schema / properties / role / description
      Previous value: -"A built-in role (owner, admin, developer, reader, access, data-reader, connection-caller, connection-writer) or one of the organization's (review_access { view: \"roles\" })."New value: +"A built-in role (owner, admin, developer, reader, access, data-reader, connection-caller, connection-writer, service-caller) or one of the organization's (review_access { view: \"roles\" })."
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the mechanical profile (not read-only, not idempotent, not destructive), while the description supplies the genuinely behavioral facts: no privilege escalation beyond the caller's own holdings, self-grants prohibited, and deferred activation ('waits for their first sign-in') for company-domain addresses. These are exactly the consequences an agent cannot infer from the schema or hints.

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 sentences, front-loaded with the verb and target, with no filler. The clipped phrasing ('only what one holds oneself, never to oneself') is dense enough to require a second read, which slightly costs clarity but not length.

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 seven-parameter mutation with a nested scope object and no output schema, the description covers the semantics that matter most: what is granted, to whom, over what, for how long, and under what restrictions. It omits what a successful call returns and does not mention revoke_role as the undo path, which would be useful given the until/days expiry model.

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 100% and every parameter, including the nested scope object and its path/table/column variants, is documented inline. The description restates the identity kinds and the duration idea but adds no syntax, defaults, or precedence rules (e.g. days versus until) beyond what the schema already says, so the baseline of 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?

The description names a specific verb (grants), the resource (a role), the target (an identity, enumerated as person/group/service account/app), and the placement (on a scope, until a date). The verb 'grants' inherently distinguishes it from the sibling revoke_role, and the added constraints on who may be granted sharpen the picture further.

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 strong preconditions — 'only what one holds oneself, never to oneself' — which tell an agent when the call is legitimate and when it will be refused. What it does not do is route the agent between this tool and alternatives such as request_access or invite_member, so the guidance is contextual rather than comparative.

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