Skip to main content
Glama

Authorize a spend and atomically reserve the budget (PAID $0.25)

v1_agent_treasury_authorize

Authorize an agent spend and atomically reserve the budget to prevent overspending, with idempotent requests and configurable TTL.

Instructions

Authorize a spend and atomically reserve the budget (PAID $0.25)

Remote route: POST /v1/agent/treasury/authorize (0.25 USD x402/base/usdc on eip155:8453).

Input Schema

NameRequiredDescriptionDefault
scopeNo
intentNo
policyNo
agent_idNo
principalNo
requestIdNo
amount_usdNo
ttl_secondsNo
policy_versionNo
idempotency_keyNo

Output Schema

NameRequiredDescriptionDefault
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, not destructive, not idempotent, open-world), and the description adds genuinely new context: this is a paid call costing $0.25 via x402 on base USDC (eip155:8453) through POST /v1/agent/treasury/authorize. It still doesn't explain what a reservation does (expiry via ttl_seconds, whether it can be released, what happens on repeat calls given idempotentHint=false), which is the main behavioral gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and the key action is front-loaded, but the first sentence duplicates the title verbatim rather than using the space for new information. The payment/route detail is compact and useful; the redundancy is the main cost.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paid, non-idempotent mutation with 10 undocumented parameters and no sibling routing guidance, the description is thin. The existence of an output schema reduces the need to describe return values, but the input contract and call-time conditions remain unexplained.

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

Parameters1/5

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

There are 10 parameters with 0% schema description coverage, and the description explains none of them. Critical fields like scope, policy, amount_usd, ttl_seconds, and idempotency_key are left entirely opaque, and the agent must guess their formats and roles.

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 states a specific verb and resource ('Authorize a spend and atomically reserve the budget'), and the atomic-reserve framing plausibly separates it from treasury_commit and treasury_release. However, it never names those siblings or explicitly contrasts the reserve vs commit vs release lifecycle, so the differentiation is only implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to call this instead of v1_agent_treasury_commit, v1_agent_treasury_release, or v1_budget_preflight, and no prerequisites or exclusions. The only contextual cue is the price tag, which tells the agent it costs money but not when the operation is the right one.

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