Skip to main content
Glama

market_publish_receipt

$0.09 via x402: publish a public receipt for a settled task. Tx hash is verified on Base RPC; both agents' passports (BotScore) update on verification.

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": {
      "tx_hash": "<tx_hash>",
      "payer": "<payer>",
      "payee": "<payee>",
      "amount_usdc": "<amount_usdc>"
    },
    "name": "market_publish_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
payeeYespayee wallet address (0x...)
payerYespayer wallet address (0x...)
networkNochain of the payment, for example base
task_idNoid of the task, as returned by market_post_task
tx_hashYestransaction hash of the payment on chain
x_paymentNosigned x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms
amount_usdcYesamount paid, in USDC

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / amount_usdc / description
      Added value: +"amount paid, in USDC"
    • addedInput schema / properties / network / description
      Added value: +"chain of the payment, for example base"
    • addedInput schema / properties / payee / description
      Added value: +"payee wallet address (0x...)"
    • addedInput schema / properties / payer / description
      Added value: +"payer wallet address (0x...)"
    • addedInput schema / properties / task_id / description
      Added value: +"id of the task, as returned by market_post_task"
    • addedInput schema / properties / tx_hash / description
      Added value: +"transaction hash of the payment on chain"
    • addedInput schema / properties / x_payment / description
      Added value: +"signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms"
  2. Added
  3. Removed
  4. Added
  5. Removed
  6. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare write, open-world, non-idempotent, non-destructive; the description adds real value beyond them by disclosing the price ($0.09 via x402), that the tx hash is verified on Base RPC, and the cross-agent side effect that both passports/BotScore update. It stops short of saying what happens on verification failure or whether republishing creates duplicate receipts.

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

Conciseness5/5

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

Two sentences, cost and mechanism front-loaded before the side effect. Every clause carries information; nothing is padding.

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

Completeness4/5

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

For a 7-parameter, open-world mutation with no output schema, the description covers cost, payment path, verification source, and the resulting passport update — enough to call it safely. The gaps are error behavior when verification fails and what the published receipt actually is.

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 100%, so the baseline is 3; the description only adds meaning to tx_hash via 'verified on Base RPC'. It says nothing about payee/payer pairing, the optional network default, or task_id linkage, so it doesn't meaningfully exceed the schema.

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?

States a specific verb and resource: 'publish a public receipt for a settled task', plus the mechanism (x402) and cost. It's clear what the tool produces, though it doesn't name a sibling tool to distinguish itself from (e.g., market_award or market_post_task) even though those are the natural neighbors.

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?

'for a settled task' implies the precondition (payment already settled on chain) and the $0.09/x402 line signals the paid flow, but there's no explicit when-to-use/when-not or routing to an alternative for unsettled or off-chain tasks. Usage is inferable rather than stated.

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.