Skip to main content
Glama

Spend Receipt

spend_receipt

Spend Receipt: one signed receipt per purchase: what your agent bought, why, what it cost (verified on Base from the tx hash or PAYMENT-RESPONSE) and what came back (checked against the seller's advertised output). GOOD_BUY / PAID_NOT_DELIVERED / PAID_PARTLY_DELIVERED / PAYMENT_NOT_CONFIRMED. Ed25519-signed, verifiable offline. Payment Verify + Delivery Check in one call. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/spend-receipt, $0.003 via 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": {
      "url": "<url>"
    },
    "name": "spend_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesfull https URL to check
agentNoagent
job_idNojob id
methodNoHTTP method of the target endpoint (GET or POST)
schemaNoschema
purposeNopurpose
tx_hashNotx hash
deliveredNodelivered
expected_pay_toNopayout wallet you expect (0x...), to catch swapped payees
payment_responseNopayment response
expected_amount_usdNoexpected amount usd

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations only give readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false; the description adds real substance beyond them — Ed25519 signing, offline verifiability, the four outcome states, Base-chain cost verification against a tx hash, and x402 pricing at $0.003 in production versus free in the AYNE playzone. What it does not clarify is the state change implied by readOnlyHint=false and non-idempotency: whether the call merely inspects an existing payment or actually initiates one.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core capability and outcome states are front-loaded, which is good, but the opening 'Spend Receipt:' duplicates the title and 'By OMENZ.' earns no place. The trailing parenthetical mixes a useful free-vs-production distinction with endpoint and pricing detail, making the sentence denser than it needs to be for an agent deciding whether to call it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 11 parameters, no output schema, and openWorldHint=true, the description does a fair job describing what comes back (the four status codes plus a signed receipt) so an output schema is less necessary. However, it leaves the most consequential ambiguity unresolved — whether this tool spends money or only attests to a prior spend — and does not cover half the input surface, which matters for a non-idempotent, open-world call.

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?

Schema coverage is reported at 100%, so the baseline is 3, and several schema descriptions are bare restatements ('agent': 'agent', 'schema': 'schema', 'purpose': 'purpose', 'delivered' with no description at all). The description adds genuine meaning only for the payment side, tying tx_hash and PAYMENT-RESPONSE to on-chain cost verification and flagging expected_pay_to behavior indirectly. It says nothing about method, job_id, expected_amount_usd, or the nested 'delivered' object.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete artifact (a signed per-purchase receipt) and enumerates what it contains: item bought, rationale, verified cost via tx hash or PAYMENT-RESPONSE, and delivery outcome against the seller's advertised output. It also implicitly distinguishes itself from narrower siblings by stating it bundles 'Payment Verify + Delivery Check in one call'. It stops short of a crisp one-line statement of the operation because the front-loaded 'Spend Receipt:' merely restates the title before the substance arrives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'one signed receipt per purchase' suggests it is invoked after a paid call to audit the outcome. There is no explicit when-to-use vs. when-not, and no direct routing to siblings like delivery_check or receipt_put even though the description claims to subsume delivery checking. The playzone/production note clarifies where calls run but not when an agent should choose this tool.

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