Skip to main content
Glama

delegate_token

Exchange a durable delegation grant for a short-lived token acting as its subject, capped by the grant's expiry and capabilities and the parent bearer.

Instructions

Exchange a durable delegation grant for a short-lived token acting as its subject. The token defaults to 15 minutes, cannot exceed one hour or its grant/parent bearer, and is limited to the intersection of grant and delegate capabilities.

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": {
      "grant_id": "<grant_id>"
    },
    "name": "delegate_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNo
grant_idYes
expires_atNo
capabilitiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A3.8/5.0
Behavior4/5

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

The description adds substantial behavior beyond the annotations: a 15-minute default lifetime, a one-hour ceiling, the inheritance constraint against grant/parent bearer, and the capability-intersection attenuation rule. It does not disclose what the response contains or any auth/permission prerequisites, keeping it short of a 5.

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 tightly packed sentences with the core action first and constraints following; every clause conveys new, decision-relevant information with no waste.

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 token-minting operation with no output schema and no annotation depth, the description covers lifetime and scoping well, but omits what the returned token looks like and the status of the underlying grant, leaving a small but real gap.

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 0%, so the description must carry parameter meaning; it does explain grant semantics, expiry constraints (default 15 min, max one hour), and the attenuation behavior for capabilities. However, label is never referenced and expires_at/capabilities are only indirectly described, so it only partially compensates for the empty schema.

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: exchange a delegation grant for a short-lived token acting as its subject. It is clear what the tool produces, though it never names its closest siblings (attenuate_token, rotate_token) to distinguish itself explicitly.

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 delegation-flow context implies when this is used (turning a durable grant into a scoped short-lived token), but there is no explicit when-to-use or when-not-to-use guidance and no pointer to attenuate_token or rotate_token as alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools