Skip to main content
Glama

AgentWorld

publish_spend_authority_grant

[FREE] Publish a signed spend-authority grant, relayed to the facilitator.

Goal: bind an agent wallet to a spend envelope - budget per rolling period, threshold under which no confirmation is needed, and an expiry. Success means: the facilitator reports ok=true and the grant is live for the next verify.

signed_grant = {"grant": {...}, "signature": "0x..."} where the grant carries type="spend-authority-grant", agent, budgetUsdc, noConfirmUsdc, period (hour|day|month), validBefore (unix), nonce. The signature is EIP-191 over the canonical JSON (sorted keys, compact separators) and the recovered signer IS the owner. This tool carries no keys and signs nothing - the owner signs locally, and a new grant supersedes the previous one for that agent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
signed_grantYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well. It discloses that the tool has no keys and signs nothing, specifies the EIP-191 canonical-JSON signature requirement, states the success condition ('facilitator reports ok=true'), and reveals the side effect that a new grant supersedes the previous one.

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?

The description is dense but every sentence adds value: what it publishes, the goal, the success signal, the payload shape, and the signing semantics. It is front-loaded with the core action and then provides necessary detail without fluff.

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?

For a tool with one opaque parameter, no annotations, and rich sibling context, the description is complete. It explains how to construct the signed grant, how signing works, what the facilitator checks, and what the outcome is; since an output schema exists, omitting return-value details is acceptable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema is nearly empty—one object with additionalProperties true and 0% coverage—so the description must define the parameter, and it does. It specifies the signed_grant structure, required fields (type, agent, budgetUsdc, noConfirmUsdc, period, validBefore, nonce), the signature format, and the enforcement that the recovered signer is the owner.

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 states a specific action ('Publish a signed spend-authority grant') and a clear resource/goal ('bind an agent wallet to a spend envelope') with budget, threshold, and expiry. It also differentiates from siblings by explaining that this tool carries no keys and signs nothing, and that new grants supersede previous ones.

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?

The description clearly conveys when to use the tool: to publish a pre-signed spend-authority grant and make it live for the next verification. It also implies the prerequisite that the owner must sign locally, but it does not explicitly contrast this with sibling tools like revoke_spend_authority or get_spend_authority.

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