Skip to main content
Glama

cast_receipt

Retrieve a transaction receipt by hash from an RPC network, optionally wait for confirmations or extract a specific field as JSON for on-chain verification.

Instructions

Get a transaction receipt by hash (cast receipt).

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": {
      "txHash": "<txHash>",
      "rpcUrl": "<rpcUrl>"
    },
    "name": "cast_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonNoOutput as JSON
fieldNoSpecific receipt field to extract
rpcUrlYesRPC URL of the network
txHashYesTransaction hash to get the receipt for
confirmationsNoNumber of confirmations to wait for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden and provides none: it does not say what happens if the transaction is pending or unknown, that the call hits a live RPC endpoint, or that the confirmations parameter can block. The only behavioral hint is the word "receipt" itself.

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?

It is a single short sentence with the key information front-loaded, so there is no bloat. The trailing parenthetical "(cast receipt)" merely restates the tool name and earns no place.

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 lookup tool with fully described parameters this covers the core intent, and the absence of an output schema means return values arguably need a word or two. The gaps are around edge behavior (pending/unknown transactions) and blocking via confirmations, which leaves it adequate but not thorough.

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 100%, so all five parameters are already documented in structured form and the baseline is 3. The description's "by hash" corroborates txHash but adds no semantics for rpcUrl, confirmations, field extraction, or JSON output beyond what the schema states.

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 states a specific verb and resource: "Get a transaction receipt by hash," which tells an agent exactly what is retrieved and how it is keyed. It does not distinguish this from the sibling cast_tx, which also looks up a transaction by hash but returns a different object, so sibling differentiation is missing.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no mention of prerequisites, and no pointer to alternatives such as cast_tx for transaction data or cast_logs for events. The agent must infer the use case entirely from the tool name and the word "receipt."

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.