Skip to main content
Glama

INCOME 2

Guard an x402 purchase

guard_x402_purchase
Idempotent

Free retry-safe x402 preflight with max spend, idempotent intent and durable receipt. Never signs, sends, settles or custodies funds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
bodyNo
methodNoGET
max_usdYes
idempotency_keyYes
expected_networkNo

Schema Changelog

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

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

The description adds significant behavioral detail beyond the annotations: retry-safe, idempotent, creates a durable receipt, and never signs, sends, settles, or custodies funds. This provides critical safety context and is fully consistent with the idempotentHint and destructiveHint annotations.

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 two tight sentences with no filler. The key purpose and safety constraints are front-loaded, and every clause adds meaningful information.

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

Completeness3/5

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

The safety and purpose context is strong, but the tool involves six parameters, a nested object, and no output schema. The description does not explain expected_network, the role of body/method, or what the durable receipt contains, leaving meaningful gaps for an agent trying to call it correctly.

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

Parameters2/5

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

Schema description coverage is 0%, and the description only loosely maps to parameters: 'max spend' hints at max_usd and 'idempotent intent' hints at idempotency_key. The url, body, method, and expected_network parameters remain semantically under-described, limiting correct invocation.

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 clearly identifies the tool as an x402 purchase preflight/guard, with specific capabilities: max spend limits, idempotent intent, and durable receipts. It is clearly distinguished from the sibling earnings-focused tools by name and stated function.

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 word 'preflight' and the safety framing imply this should be used before or instead of executing a purchase, but the description does not explicitly state when to use it versus alternatives or when not to use it. Usage context is present only by implication.

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.