Skip to main content
Glama

alalanet — check before your agent installs, connects or pays

Report what you got after paying

report_purchase
Idempotent

After you paid an x402 endpoint on Base or Solana: report the outcome (delivered, partial, wrong_content, not_delivered) with the payment tx (the transaction field of the PAYMENT-RESPONSE header). No key needed: alalanet verifies on chain that the tx paid this service's known payTo in USDC/USDT within 7 days and signs the report into the public log, one report per payment. Deliveries from different paying wallets raise the seller's Trust Score; failures trigger a recheck ahead of the host's other listings. This is how agents learn which sellers deliver.

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_url": "<service_url>",
      "tx": "<tx>",
      "network": "<network>",
      "outcome": "<outcome>"
    },
    "name": "report_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
txYespayment transaction hash (PAYMENT-RESPONSE header transaction, or your wallet)
networkYeseip155:8453 or base (Base); solana or solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp (Solana)
outcomeYesdelivered, partial, wrong_content or not_delivered
service_urlYeshttps URL of the x402 endpoint you paid
preflight_idNoid of the preflight attestation you got before paying, if any
result_sha256Nosha256 hex of the response you received

Output Schema

NameRequiredDescriptionDefault
idYes
noteYes
outcomeYes
paymentYes
serviceYes
log_indexYes
attestationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / network / description
      Previous value: -"eip155:8453 (Base) or solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp (Solana)"New value: +"eip155:8453 or base (Base); solana or solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp (Solana)"
  2. Changed7 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / attestation / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / attestation / properties
      Removed value: -{
      -  "event": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "content": {
      -        "type": "string"
      -      },
      -      "created_at": {
      -        "type": "integer"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "kind": {
      -        "type": "integer"
      -      },
      -      "pubkey": {
      -        "type": "string"
      -      },
      -      "sig": {
      -        "type": "string"
      -      },
      -      "tags": {
      -        "items": {
      -          "items": {
      -            "type": "string"
      -          },
      -          "type": [
      -            "null",
      -            "array"
      -          ]
      -        },
      -        "type": [
      -          "null",
      -          "array"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "pubkey",
      -      "created_at",
      -      "kind",
      -      "tags",
      -      "content",
      -      "sig"
      -    ],
      -    "type": "object"
      -  },
      -  "event_json": {
      -    "type": "string"
      -  },
      -  "how_to_verify": {
      -    "type": "string"
      -  },
      -  "log_index": {
      -    "type": "integer"
      -  },
      -  "log_key": {
      -    "type": "string"
      -  },
      -  "log_origin": {
      -    "type": "string"
      -  },
      -  "pending": {
      -    "type": "boolean"
      -  },
      -  "proof": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "checkpoint": {
      -        "type": "string"
      -      },
      -      "hashes": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": [
      -          "null",
      -          "array"
      -        ]
      -      },
      -      "index": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "leaf_hash": {
      -        "type": "string"
      -      },
      -      "root_hash": {
      -        "type": "string"
      -      },
      -      "tree_size": {
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "index",
      -      "tree_size",
      -      "root_hash",
      -      "leaf_hash",
      -      "hashes",
      -      "checkpoint"
      -    ],
      -    "type": [
      -      "null",
      -      "object"
      -    ]
      -  },
      -  "server_pubkey": {
      -    "type": "string"
      -  },
      -  "signer": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / attestation / required
      Removed value: -[
      -  "event",
      -  "event_json",
      -  "log_index",
      -  "log_origin",
      -  "log_key",
      -  "server_pubkey",
      -  "signer",
      -  "how_to_verify"
      -]
    • removedOutput schema / properties / payment / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / payment / properties
      Removed value: -{
      -  "amount": {
      -    "type": "string"
      -  },
      -  "asset": {
      -    "type": "string"
      -  },
      -  "from": {
      -    "type": "string"
      -  },
      -  "network": {
      -    "type": "string"
      -  },
      -  "time": {
      -    "type": "integer"
      -  },
      -  "to": {
      -    "type": "string"
      -  },
      -  "tx": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / payment / required
      Removed value: -[
      -  "network",
      -  "tx",
      -  "from",
      -  "to",
      -  "asset",
      -  "amount",
      -  "time"
      -]
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say write, open-world, idempotent, non-destructive; the description adds substantial behavior beyond that: no API key required, on-chain verification that the tx paid this service's known payTo in USDC/USDT within 7 days, the report is signed into a public log, and there are downstream consequences (Trust Score movement, recheck and ranking effects). The one-report-per-payment rule also concretizes the idempotent hint.

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 action and precondition are front-loaded in the first clause, and nearly every sentence carries either a constraint or a consequence. It is a dense single paragraph with one slightly promotional closer ("This is how agents learn which sellers deliver"), though that line does convey motive.

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?

With an output schema present, return values need no explanation, and the description covers verification, cost (none), limits, and side effects. It stops short of saying what happens when verification fails (rejected report vs. unverified log entry), which would matter for an agent reporting a bad outcome.

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 all six parameters are already documented in the schema, and the description's parameter detail (tx source, the four outcome values, networks) largely restates it. It adds only light framing such as 'the payment tx' tying tx to the PAYMENT-RESPONSE header; baseline 3 applies when the schema does the heavy lifting.

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 (report) and resource (the outcome of a paid x402 endpoint call), enumerates the four outcome values, and specifies the exact evidence required (the transaction field of the PAYMENT-RESPONSE header). The post-payment framing makes it trivially distinguishable from preflight_payment, payment_status, and check_service.

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?

"After you paid an x402 endpoint on Base or Solana" gives a clear temporal precondition, and "one report per payment" bounds the invocation. It never explicitly names a sibling as the alternative (e.g., use preflight_payment before paying), so the routing guidance is strong but not fully spelled out.

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