Skip to main content
Glama

Issue Authority Delegation

issue_authority_delegation

[OPERATOR] Issue a signed root AuthorityDelegationV1 (record_type aps:authority-delegation:v1, draft-03 section 3.1) from this server's key to a subject.

Instructions

[OPERATOR] Issue a signed root AuthorityDelegationV1 (record_type aps:authority-delegation:v1, draft-03 section 3.1) from this server's key to a subject. This is the record revoke_delegation can revoke and check_authority_delegation can verify. Legacy create_delegation records cannot be revoked under SDK 8. Scope grants use the aps-hierarchical-v1 profile (for example commerce:checkout or commerce:*). Spend is bounded by default: give spend_unit, spend_per_action and spend_cumulative, or set spend_unbounded true. The record is tracked in this process's in-memory revocation store, which is lost on restart. Returns the signed record as JSON for the caller to keep and present. The issuer is always aps:ed25519:<this server's public key>. Holding the server key is the only authorization checked, so the tool is refused on a remote server (MCP_TRANSPORT=sse or MCP_REMOTE=1).

Input Schema

NameRequiredDescriptionDefault
grantsYesScope grants, aps-hierarchical-v1 profile, for example ['commerce:checkout'].
subjectYesIdentifier of the agent receiving authority, for example a DID or an agent id.
ttl_hoursNoValidity length from now, in hours.
spend_unitNoExact-match accounting unit, for example iso4217:USD:minor.
depth_remainingNoHow many further delegation hops the subject may create.
spend_unboundedNoSet true to issue with no spend limit. Refused together with spend fields.
values_requiredNoValues floor identifiers the subject must hold, for example F-001.
spend_cumulativeNoMost the whole delegation subtree may spend, as an integer in spend_unit.
spend_per_actionNoLargest single action, as an integer in spend_unit.
reputation_ceilingNoReputation ceiling, aps-score-0-100-v1 profile.
reversibility_ceilingNoMost irreversible action class the delegation permits.compensable

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv8.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the write/no-idempotent profile; the description adds substantial context beyond them: the record lives in this process's in-memory revocation store and is lost on restart, authorization is solely possession of the server key, remote invocation is refused, and the return is a signed JSON record the caller must retain. That is exactly the behavior an agent needs before committing to a mutation.

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?

Dense but front-loaded: identity and record type first, then alternatives, then spend policy, then the operational caveats. Nearly every sentence carries decision-relevant information, though the server-key/issuer sentence and the persistence warning could perhaps be tightened.

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?

With 11 parameters, no output schema, and a mutation annotation profile, the description covers what the structured fields cannot: return shape (signed JSON the caller keeps), durability limits of the revocation store, and the authorization/deployment preconditions. Nothing essential to a correct invocation is 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?

Schema coverage is 100%, so the baseline is 3. The description earns above baseline by explaining the spend policy as bounded-by-default and naming the three spend fields versus spend_unbounded, plus the aps-hierarchical-v1 grant syntax. It adds framing but does not touch depth_remaining, values_required, or the ceilings, which the schema already documents.

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 artifact: issuing a signed root AuthorityDelegationV1 with record type and spec section. It explicitly distinguishes itself from create_delegation (legacy, non-revocable under SDK 8) and names revoke_delegation and check_authority_delegation as the lifecycle partners, so an agent can place it precisely among siblings.

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?

Gives the condition that selects this tool over the legacy alternative ('Legacy create_delegation records cannot be revoked under SDK 8') and names the tools that consume the output. It also states an explicit exclusion: the tool is refused on a remote server (MCP_TRANSPORT=sse or MCP_REMOTE=1).

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