Skip to main content
Glama

Delegate Grant

delegate_grant

Hand a narrower grant to an agent: a subset of this token's scopes, limits no larger, an expiry no later. Answers a refresh token for the agent, shown once.

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": {
      "scope": "<scope>"
    },
    "name": "delegate_grant"
  }
}

Input Schema

NameRequiredDescriptionDefault
forNoThe agent's OpenProfile.md URL, so the app can see who holds it.
grantNoWhich of the principal's grants to delegate from. Defaults to the token's own grant.
scopeYesSpace-separated scopes, a subset of the parent's.
per_dayNoe.g. "50 USD", a rolling day
lifetimeNoe.g. "500 USD"
per_callNoe.g. "5 USD"
expires_inNoSeconds until the child expires.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already mark this as a non-read-only, non-destructive, closed-world mutation, so the bar is lower. The description adds genuinely useful behavior: the child is bounded by the parent's scopes, limits and expiry, and the returned refresh token is displayed only once and cannot be retrieved later. It does not state the authorization requirements for issuing a child grant or whether the child can later be revoked.

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?

Two sentences, zero filler. The core action and its invariant are front-loaded, and the return-value fact (shown once) is appended where the agent needs it. Nothing could be cut 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 7-parameter mutation with no output schema, the description does the important work: it explains the narrowing invariant that governs most parameters and states what comes back and that it is only shown once. What remains uncovered is the auth/permission context for who may call it and lifecycle handling after issuance.

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 earns an extra point by supplying the constraint semantics the schema lacks: scope must be a subset of this token's, and the money/expiry parameters ('limits no larger', 'expiry no later') are implicitly capped by the parent. It does not clarify the 'grant' parameter's selection behavior or the rolling-window meaning of per_day beyond the schema's example.

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 names a specific verb and resource ('hand a narrower grant to an agent') and immediately pins down the delegation invariant (subset scopes, no larger limits, no later expiry) plus the artifact returned (a refresh token, shown once). It is unmistakably distinct from revoke_grant or my_grants in substance, though it never names a sibling explicitly, so it falls short of the top tier for sibling differentiation.

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?

Usage is implied by the framing: call this when you need to give an agent a restricted credential derived from the current token. There is no explicit when-not guidance, no mention of checking existing grants first, and no reference to revoke_grant for teardown, so the agent must infer the surrounding workflow.

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