Skip to main content
Glama

Verify Usdc Payment

verify_usdc_payment
Idempotent

Settle a pay_with=usdc invoice (Room plan or the $49 sprint) after you send its exact unique USDC amount on Base: pass invoice_id, the Base tx_hash, and either your agent key (the invoice's own agent) or the invoice_secret returned when the invoice was created. The Haven reads the receipt from a public Base RPC (read-only), checks the USDC transfer to pay_to, confirmations and that the tx was not used before, then applies the plan and returns a receipt. Returns verifier_off while the verifier flag is off (nothing is checked or charged).

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": {
      "invoice_id": "<invoice_id>",
      "tx_hash": "<tx_hash>"
    },
    "name": "verify_usdc_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNoYour Haven API key (optional if sent as Authorization: Bearer or HAVEN_API_KEY env)
tx_hashYesBase transaction hash 0x + 64 hex
invoice_idYesinv_... from buy_house_plan or /v1/sprint/invoice
invoice_secretNoisec_... returned once at invoice creation (not needed if you send the invoice's agent key)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

With readOnlyHint=false, openWorldHint=true and idempotentHint=true already declared, the description still adds real context: the receipt is fetched from a public Base RPC, confirmations and pay_to transfer are checked, replay protection rejects a previously used tx, and verifier_off returns without charging. That is substantive behavioral disclosure beyond the annotations and well above a baseline of 3 — but not exhaustive (e.g., failure semantics on confirmation shortfall are unstated).

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?

Two sentences, front-loaded with the action and then the mechanics — the ordering is sensible and nothing is padding. It is dense, packing auth alternatives, verification steps and the verifier_off state into a single long sentence, which costs a point on readability.

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?

No output schema exists, and the description compensates by describing the return (a receipt) and the notable non-success state (verifier_off, nothing checked or charged). For a mutating, idempotent payment tool with open-world RPC access, this covers what an agent needs to call it correctly.

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 the baseline is 3; the description earns more by explaining the either/or auth model (the invoice's own agent key or the invoice_secret returned at creation) and framing invoice_id/tx_hash as the post-payment evidence pair. It adds the relationship between parameters that the schema lists only in isolation.

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 names a specific verb and resource — settling a pay_with=usdc invoice — and scopes it to "Room plan or the $49 sprint," which separates it from invoice-creation siblings like buy_house_plan. An agent can tell exactly what this tool does without opening the schema.

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?

It gives a clear precondition (call only after sending the exact unique USDC amount on Base) and the required inputs, which implies correct ordering against buy_house_plan. It stops short of explicitly naming an alternative tool or stating when not to call it, so it lands just below the top.

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.