Skip to main content
Glama

Foundry: prepaid AI compute in USDF

Pay an x402 URL

x402_pay

Calls a URL that asks for an x402 payment and pays it for you: the gateway pays the seller in USDC from its own float on Base or Solana and charges this key in USDF cost plus 5% at most, no minimum (the seller's amount and a fee of at most 5% of it; never free credit), within the key's and its agent's limits. Needs Authorization: Bearer sk_.... Returns the seller's answer with the payment and its receipt; a payment is charged only once the chain shows it, and one that never settles costs nothing. quote: true answers what it would cost and pays nothing. Third-party tools to call this way are listed under marketplace in list_tools (GET /v1/tools?source=marketplace).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe seller's URL (https)
bodyNoThe request body: text, or JSON sent as application/json
quoteNoAnswer the price and pay nothing
methodNoDefault GET, or POST when a body is given
headersNoHeaders for the seller (the payment headers are the gateway's)
networkNoPay on this network only
max_priceNoThe most to pay in USDF, the fee included ("0.05")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the funding mechanism (gateway's USDC float on Base or Solana), the billing model (USDF cost plus at most 5%, no minimum, within key/agent limits), the auth requirement (Bearer sk_...), and the settlement risk model (charged only once the chain shows it; an unsettled payment is free). The readOnlyHint=false annotation is consistent with this spend operation.

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?

Front-loads the core action, then layers in payment, auth, and settlement details. It is information-dense and slightly rambling in its parenthetical asides, but nearly every clause carries distinct behavioral value.

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?

Despite having no output schema, it describes the return value (the seller's answer with the payment and its receipt), covers auth, fee exposure, network selection, and cancellation semantics. Nothing an agent needs to call this financial operation safely is missing.

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?

With 100% schema description coverage, the schema already documents all seven parameters, including quote and max_price. The description corroborates the fee ceiling and network options but adds little parameter meaning beyond what the schema states, so the baseline of 3 applies.

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?

States a specific verb and resource (calls a URL demanding an x402 payment and pays it), naming the capital source, networks, and billing currency. It is clearly separable from siblings like quote, quote_tool, and receipt, and even notes the intra-call escape hatch (quote: true pays nothing).

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?

Gives clear context for when to invoke it (a URL that asks for an x402 payment) and points at list_tools (?source=marketplace) to discover suitable third-party endpoints, plus the quote: true mode for price checks without paying. It stops short of explicitly saying when NOT to use it versus the standalone quote/quote_tool siblings.

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