Skip to main content
Glama

Sonic transaction receipt

sonic_receipt
Read-only

Transaction receipt on Sonic (eth_getTransactionReceipt): success or reverted, gas used, effective gas price, fee paid in S, number of event logs and any contract created. Use to confirm a payment or call went through; for sender, value and calldata use sonic_tx. Input is a 0x-prefixed 64-hex hash; a pending or unknown hash returns 422, uncharged. Example: hash=0xcc6a5594962b5211496391d0e1e9082f5060f218fad60f907a23e85a7b02bf85. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "hash": "<hash>"
    },
    "name": "sonic_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYes0x-prefixed transaction hash (64 hex characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, open-world, non-idempotent, and the description adds real behavior beyond them: each call is billed, repeats are not free (consistent with idempotentHint=false), failed lookups are free, and pending/unknown hashes return 422 rather than an empty result. The only gap is that it does not say what shape the returned receipt takes or whether logs are inlined or truncated.

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?

Front-loaded with the resource and what it returns, then input format, then error behavior, then pricing – each clause is short and purposeful. The pricing sentence is long and slightly competes with the operational content, keeping it just below top marks.

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 no output schema, the description usefully enumerates the receipt fields an agent can expect, and it covers input format, error handling and cost. What is missing is the response envelope (field names/types, how logs are represented or bounded), which matters for a tool with no structured output contract.

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% and the schema already documents the hash as a 0x-prefixed 64-hex transaction hash, so 'Input is a 0x-prefixed 64-hex hash' largely restates it. The worked example hash and the 422-on-unknown rule add modest value but no new semantics for the single parameter, so this lands at the baseline.

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?

Names a specific verb+resource (transaction receipt on Sonic) and pins it to the underlying RPC (eth_getTransactionReceipt), then enumerates the returned fields (status, gas used, effective gas price, fee in S, log count, contract created). It explicitly separates itself from sonic_tx (sender, value, calldata), so an agent can pick the right tool without opening a 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?

Gives a concrete when-to-use rule ('confirm a payment or call went through') and names the alternative for the complementary data ('for sender, value and calldata use sonic_tx'). It also states the failure case (pending/unknown hash returns 422) and that the failed call is uncharged, so the agent knows what to do on error.

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