Skip to main content
Glama

Run a paid resource (x402)

wafermap_call

Runs one Wafermap resource and pays its exact USD price over x402, in USDG on Robinhood Chain or USDC on Solana, Base, Arbitrum, Polygon, Arc or Soneium. Send a signed x402 v2 PaymentPayload in params._meta["x402/payment"]; without it the tool returns isError with the payment requirements (price, networks, payTo) to sign. The work runs before the payment settles, so failed calls are never charged; a successful call returns the result plus a receipt with the transaction hash in _meta["x402/payment-response"]. Agents without an x402 wallet can use the Wafermap CLI (wafermap mcp), which pays automatically within spending caps.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "resource": "<resource>"
    },
    "name": "wafermap_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoInput object matching the resource's schema from wafermap_resource_schema, e.g. {"network":"base"}.
payerNoOptional: the EVM wallet that will sign the payment. A wallet holding 100,000 $WAFERMAP on Robinhood Chain is quoted 50% less for Wafermap's own resources (checked again against the signer).
resourceYesResource id from wafermap_resources, e.g. "gas-now".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / payer
      Added value: +{
      +  "description": "Optional: the EVM wallet that will sign the payment. A wallet holding 100,000 $WAFERMAP on Robinhood Chain is quoted 50% less for Wafermap's own resources (checked again against the signer).",
      +  "pattern": "^0x[0-9a-fA-F]{40}$",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / input / description
      Previous value: -"Input fields for the resource (see wafermap_resource)."New value: +"Input object matching the resource's schema from wafermap_resource_schema, e.g. {\"network\":\"base\"}."
    • changedInput schema / properties / resource / description
      Previous value: -"Resource id from wafermap_resources."New value: +"Resource id from wafermap_resources, e.g. \"gas-now\"."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and openWorldHint=true, which conveys little about a paid call. The description supplies the behavior that actually matters: work executes before settlement so failed calls are never charged, payment failures surface as isError carrying price/networks/payTo, and successes return a receipt with a transaction hash in _meta["x402/payment-response"]. That is substantive disclosure beyond the annotation surface.

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?

Purpose is front-loaded in the first sentence and each following sentence adds new operational facts (payment payload shape, error behavior, settlement ordering, receipt location, CLI fallback). It is a single dense block rather than a structured list, which slightly hurts scanability, but there is no filler or repetition.

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?

For a payment-gated tool with no output schema and a nested _meta convention, the description still covers what an agent needs: how to pay, what happens without payment, when charges occur, what a success returns, and an escape hatch when no wallet exists. Nothing necessary to invoke it correctly appears to be missing.

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 would be 3, but the description adds semantics the schema cannot: the x402 payment payload is carried in params._meta rather than a declared property, and its presence or absence determines the entire success/failure branch. It also clarifies the multi-network payment options in prose rather than leaving them to the schema.

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 opening sentence names a specific action (run one Wafermap resource), the payment mechanism (x402), and the assets/networks involved. It is immediately distinguishable from siblings like wafermap_discover or wafermap_resources, which only enumerate; this one executes and settles payment.

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?

The description clearly states the calling contract: send a signed x402 v2 PaymentPayload in params._meta["x402/payment"], and if absent you get isError with the payment requirements to sign. It also offers an explicit fallback path (the Wafermap CLI) for agents without an x402 wallet, but it never names sibling tools (wafermap_resources, wafermap_resource_schema) as prerequisites for obtaining the resource id or input shape, so routing still requires inference.

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