Skip to main content
Glama

X402 · pay for a resource

x402
Destructive

Fetch a web resource that charges per request (HTTP 402, x402) through Regent. Hosts: any public host. Regent reads the price, asset and recipient from the resource's 402, decides under the owner's USDC budget, signs the payment from the connected wallet and checks the transfer on chain. Test networks only. The agent never holds a wallet or sets the price. Give path as /.

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for a POST resource.
pathYesThe resource as <host>/<path>[?query], https assumed.
factsNoVerified facts the policy keys on (object).
intentNoOne-line reason for this call, recorded in the audit.
methodNoGET
idempotency_keyNoRetry handle: the same key resumes the same decision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

With annotations already declaring destructive and open-world behavior, the description adds meaningful context: Regent reads price/asset/recipient from the 402, decides under the owner's USDC budget, signs from the connected wallet, and checks the transfer on chain. It does not cover failure modes or returned results, but it substantially exceeds what the annotations provide.

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?

Four sentences, front-loaded with purpose and key scope, each carrying useful information about the payment flow and test-network restriction. It is slightly dense but has no obvious filler.

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 destructive, open-world payment tool with no output schema, the description covers the payment flow, trust model, budget decision, and network restriction. It could mention response shape or budget-rejection behavior, but is largely sufficient for correct invocation.

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

Parameters3/5

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

Schema description coverage is 83%, so the schema already documents most parameters. The description reinforces the path format as <host>/<path> but adds little beyond the schema for facts, intent, idempotency_key, or method. This justifies the baseline score.

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: fetching a web resource that charges per request via HTTP 402 through Regent. It also scopes hosts and network type. It does not explicitly contrast with the sibling 'pay' tool, so it stops short of full sibling differentiation.

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?

Gives useful constraints: any public host, test networks only, and the agent never holds a wallet or sets the price. However, it never says when to choose x402 over the sibling pay tool or when not to use it; usage is implied from the resource-charging scenario.

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