Skip to main content
Glama

Payment settlement reliability report

submit_settlement_reliability_report
Idempotent

Analyse a log of x402 payment attempts: settlement rate, every failure reason mapped to its cause, and whether any authorization was left unconsumed. When a payment log needs the failure mix and the settlement rate quantified. Do not choose this when you need on-chain verification of each payment, which needs the chain. Example requests: Why are my x402 payments failing? | Report the settlement rate of these payment attempts. | Which failure reasons dominate my payment log? | Are my payments settling reliably enough to depend on?

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": {
      "inputs": "<inputs>",
      "authorized_by": "<authorized_by>"
    },
    "name": "submit_settlement_reliability_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
quote_idNoThe quote_id from POST /v1/jobs; required when priced.
buyer_tokenNoThe buyer_token returned with your first purchase. It opens the purchase history for that buyer, including earlier deliverables.
authorized_byYesIdentifier of the human or agent authorizing this job.
accepted_priceNoThe quoted amount, echoed exactly; checked against the quote.
idempotency_keyNoRetry key; the same key returns the same job.
payment_signatureNox402 payment payload; required for a priced capability (see submit_job).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / buyer_token
      Added value: +{
      +  "description": "The buyer_token returned with your first purchase. It opens the purchase history for that buyer, including earlier deliverables.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / properties / accepted_price / description
      Previous value: -"The amount accepted, exactly as quoted (for example \"5.00\" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit."New value: +"The quoted amount, echoed exactly; checked against the quote."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry key. Re-sending the same key returns the same job instead of running it twice."New value: +"Retry key; the same key returns the same job."
    • changedInput schema / properties / payment_signature / description
      Previous value: -"Base64-encoded x402 payment payload (the value the HTTP interface puts in the PAYMENT-SIGNATURE header), signed for the amount in the payment requirement the first call returned. Required for a priced capability; nothing is charged until the work completes."New value: +"x402 payment payload; required for a priced capability (see submit_job)."
    • changedInput schema / properties / quote_id / description
      Previous value: -"The quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued."New value: +"The quote_id from POST /v1/jobs; required when priced."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "access_token": {
      -      "description": "Per-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job.",
      -      "type": "string"
      -    },
      -    "artifacts": {
      -      "type": "array"
      -    },
      -    "capability_id": {
      -      "type": "string"
      -    },
      -    "job_id": {
      -      "type": "string"
      -    },
      -    "quote": {
      -      "type": "object"
      -    },
      -    "state": {
      -      "enum": [
      -        "received",
      -        "rejected",
      -        "quoted",
      -        "authorized",
      -        "executing",
      -        "deferred",
      -        "queued",
      -        "verifying",
      -        "completed",
      -        "failed",
      -        "timed_out",
      -        "cancelled"
      -      ]
      -    },
      -    "verification": {
      -      "description": "Independent verification. verification.ok = false means the job failed, not a partial success.",
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "job_id",
      -    "state"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Retry key. Re-sending the same key returns the same job instead of running it twice.",
      +  "type": "string"
      +}
    • addedInput schema / properties / payment_signature
      Added value: +{
      +  "description": "Base64-encoded x402 payment payload (the value the HTTP interface puts in the PAYMENT-SIGNATURE header), signed for the amount in the payment requirement the first call returned. Required for a priced capability; nothing is charged until the work completes.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / state / enum
      Previous value: -[
      -  "received",
      -  "rejected",
      -  "quoted",
      -  "authorized",
      -  "executing",
      -  "deferred",
      -  "verifying",
      -  "completed",
      -  "failed",
      -  "timed_out",
      -  "cancelled"
      -]New value: +[
      +  "received",
      +  "rejected",
      +  "quoted",
      +  "authorized",
      +  "executing",
      +  "deferred",
      +  "queued",
      +  "verifying",
      +  "completed",
      +  "failed",
      +  "timed_out",
      +  "cancelled"
      +]
  5. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety and retry profile is covered by structured data. The description adds the analytical scope and the offline-vs-chain boundary, but says nothing about the paid-job lifecycle (quote, payment signature, authorization, async deliverable), which is the main behavioral risk for this call.

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 first sentence front-loads the purpose and the second and third handle selection and exclusion, which is the right order. The four example requests are somewhat repetitive but plausibly useful for query matching, so the length is defensible rather than wasteful.

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 nested-schema tool with no output schema, the description effectively describes the return values (settlement rate, mapped failure causes, unconsumed authorizations), which is the important completeness gap. What remains unstated is that this creates a priced job requiring a quote and payment signature, though those parameters carry their own schema descriptions.

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 description coverage is 86%, so the schema documents the nested attempts log, quote_id, buyer_token, authorized_by and payment_signature. The description only indirectly implies the input is an attempts log and adds no format, sizing, or pricing detail beyond that, so the baseline of 3 applies.

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 gives a specific verb plus resource ('Analyse a log of x402 payment attempts') and enumerates the three computed outputs: settlement rate, failure reasons mapped to cause, and unconsumed authorizations. It also carves out the sibling boundary against on-chain verification tools, so an agent can distinguish it 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 Guidelines5/5

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

It states the selecting condition ('When a payment log needs the failure mix and the settlement rate quantified') and an explicit exclusion ('Do not choose this when you need on-chain verification of each payment'). The four example requests reinforce the same routing decision with realistic phrasings.

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