Skip to main content
Glama

t2000_pay

Pays for x402 API requests by automatically handling the 402 payment challenge from your USDC balance, returning the API response and payment receipt.

Instructions

Pay for a paid API request over x402: handles the 402 payment challenge automatically from the agent's USDC balance and returns the API response plus the payment receipt. The USDC transfer is gasless (Sui foundation sponsored). Mirrors t2 pay <url>.

WHAT THIS PAYS: any x402 endpoint — an ASP's Service listed on the t2000 store (find them with t2000_services), or any URL the user hands you that answers 402 with a Sui challenge. t2000 does NOT proxy or resell third-party APIs, so there is no catalog of provider URLs to pick from: use the seller's own endpoint URL.

IMPORTANT: if the user asks for a capability that is not listed in the marketplace and they have not given you an endpoint URL, do not guess a URL and do not claim it is unreachable — say what is listed, and offer to post the work as an Open job (t2000_job_open) for an ASP to claim.

Responses that return media (image or audio URLs) should be surfaced to the user so they can view or play the asset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesFull URL of the x402 endpoint (an ASP Service from t2000_services, or a URL the user supplied)
bodyNoJSON request body (required for POST endpoints)
methodNoHTTP method (most services use POST)POST
headersNoAdditional HTTP headers
maxPriceNoMax USD to pay (default: $1.00). Set higher for commerce services.
Behavior5/5

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

With no annotations, the description carries full burden and delivers. It discloses that the payment is automatic, uses the agent's USDC balance, is gasless (Sui foundation sponsored), and returns both the API response and payment receipt. It also states behavioral limits (does not proxy/resell, no catalog) and that media responses should be surfaced. This is rich contextual info beyond the schema.

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 structured with clear sections (WHAT THIS PAYS, IMPORTANT, media note) and front-loaded with the core function. Every sentence serves a purpose, from the payment mechanism to fallback instructions. It is long but not wasteful; the formatting makes it easy to scan.

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?

Given the complexity of a payment tool, the description is remarkably complete. It covers the return value (API response + receipt), the source of endpoints, important caveats (don't guess URLs, offer job posting), and media handling. Without an output schema, this description sufficiently prepares the agent for usage and edge cases.

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 baseline is 3. The description adds meaningful context beyond the schema by explaining that 'url' can come from t2000_services or user-supplied, and that 'maxPrice' default is $1 (also in schema). It also explains the purpose of the body/method in the context of x402, even if not per-parameter. It doesn't systematically elaborate each param but adds useful context for the most critical one.

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 starts with a specific verb 'Pay' and identifies the resource as 'a paid API request over x402'. It clearly distinguishes from siblings by mentioning it handles 'the 402 payment challenge automatically' and returns 'the API response plus the payment receipt'. This is precise and unique among the many t2000 tools.

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?

The description provides explicit when-to-use guidance: it pays any x402 endpoint from t2000_services or a user-supplied URL. It gives a clear exclusion: does NOT proxy or resell APIs, so use the seller's own endpoint. It also instructs what to do when a capability is not listed and no URL is provided: don't guess, instead offer to post an Open job via t2000_job_open. This is thorough and actionable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mission69b/t2000'

If you have feedback or need assistance with the MCP directory API, please join our Discord server