Skip to main content
Glama

Attest an x402 delivery

attest_delivery
Read-onlyIdempotent

Neutral delivery verification for agentic commerce: after an x402 payment to another service, it checks what was delivered and returns a signed, offline-verifiable receipt binding payment, delivery and content (settlement receipt hash and decoded transaction fields, response sha256, structural conformance to the advertised schema, grounded verdicts on the response's factual claims). The claim checks use a language model for stance; the other checks are rule-based. delivery_verdict, with a rationale: consistent (proceed), degraded (use with caution; refuted claims flagged), inconsistent (not reliable; the receipt is dispute evidence) or unverifiable (nothing contradicted or confirmed). Limits: it judges consistency with what was advertised, never service quality. Payment binding records which receipt was presented; on-chain confirmation is a separate step. Claim checks share the usual source-coverage limits. Paid per call (x402).

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": {
      "service": "<service>",
      "response_text": "<response_text>"
    },
    "name": "attest_delivery"
  }
}

Input Schema

NameRequiredDescriptionDefault
serviceYesURL (or name) of the paid service whose delivery is being verified.
max_claimsNoMax claims in the delivered content to ground (1-20).
request_textNoWhat was asked of the service (optional; bound by hash when given).
response_textYesThe delivered payload, verbatim (JSON or prose).
payment_receiptNox402 settlement receipt from the paid call (X-PAYMENT-RESPONSE / PAYMENT-RESPONSE value, base64 or raw JSON).
advertised_schemaNoJSON schema the service advertised for its output (from its 402 offer or Bazaar listing).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / payment_receipt / maxLength
      Added value: +16384
    • addedInput schema / properties / request_text / maxLength
      Added value: +10000
    • addedInput schema / properties / response_text / maxLength
      Added value: +100000
    • addedInput schema / properties / service / maxLength
      Added value: +500
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/non-destructive, and the description adds a great deal beyond that: which checks use an LLM (claim stance) versus rule-based logic, the four-way verdict taxonomy with actionable interpretations, that the receipt serves as dispute evidence, that it is paid per call, and that claim checks inherit source-coverage limits.

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?

The core purpose is front-loaded and nearly every clause carries information (limits, verdict semantics, model usage, pricing). The middle section is a dense run-on with long parenthetical lists, which costs some readability but not substance.

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 no output schema and a six-parameter nested-object input, the description fully explains what comes back (receipt contents, verdict plus rationale) and how to interpret each verdict. It also flags payment/on-chain boundaries an agent needs before calling 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, but the description adds real meaning: it explains that payment binding records which receipt was presented, that request_text is bound by hash when given, and what aspects of the response are checked (sha256, schema conformance, claims). It stops short of mapping these to individual parameter names.

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: after an x402 payment, it checks what was delivered and returns a signed, offline-verifiable receipt binding payment, delivery and content. The scope (delivery consistency vs. service quality) and output artifact (signed receipt with delivery_verdict) are both named, so it is distinguishable from claim-level siblings like verify_claim and check_citations.

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 a clear trigger condition ('after an x402 payment to another service') and two explicit exclusions: it never judges service quality, and on-chain confirmation is a separate step. It does not name sibling tools or state when to prefer verify_claim/extract_claims instead, which keeps it just short of a 5.

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.