Skip to main content
Glama

attenuate_token

Derive a restricted API token from your current grant by specifying a subset of capabilities and an optional expiry that cannot exceed the parent token's lifetime. Returns the new secret once.

Instructions

Derive a weaker API token from the caller's grant without token:admin (Levy/Madden attenuation). capabilities must be a non-empty subset of what the caller holds. A derived expires_at cannot outlive the parent bearer. Returns the new token secret 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": {
      "capabilities": "<capabilities>"
    },
    "name": "attenuate_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNo
expires_atNo
capabilitiesYes

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?

Annotations only declare the generic mutation profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false). The description adds genuinely non-obvious behavior: the capability-subset constraint, the expiry ceiling inherited from the parent bearer, and the critical fact that the secret is returned only once and cannot be re-read.

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?

Three tight sentences that front-load the purpose and then add constraints in order of importance; nothing is wasted. The 'Levy/Madden attenuation' parenthetical is jargon that adds little for an agent deciding how to call it.

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 state-mutating token-derivation tool with no output schema, it covers the key gaps: the derived-token constraints and the one-time return of the secret stand in for a return-value section. Only the unspecified 'label' parameter and failure behavior are missing.

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?

With 0% schema description coverage, the description carries the burden and does so for two of three parameters: capabilities must be a non-empty subset of the caller's holdings, and expires_at cannot outlive the parent bearer. The 'label' parameter is left completely undefined.

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 ('Derive a weaker API token from the caller's grant') with a clear scope condition (no token:admin required). It is distinguishable from rotate/delegate conceptually, though it never names the sibling tools to contrast with.

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 'without token:admin' and 'weaker token', giving an agent a reasonable sense of when to reach for it, but there is no explicit statement of when NOT to use it or which sibling (delegate_token, rotate_token) is the alternative.

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