Skip to main content
Glama

cast_tx

Looks up transaction details by hash on a specified RPC network, with options to return full JSON or a single field.

Instructions

Get transaction details by hash (cast tx).

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_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonNoOutput as JSON
fieldNoSpecific transaction field to extract
rpcUrlYesRPC URL of the network
txHashYesTransaction hash to look up

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. "Get" implies a read, but it says nothing about return shape, whether a missing hash errors or returns null, or how the 'field' and 'json' options alter output. For a lookup tool with zero annotation coverage this is a significant gap.

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?

One short sentence, front-loaded with the verb and resource, with no filler or repetition. It is efficient but very thin, and the parenthetical CLI hint adds little for an agent.

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

Completeness3/5

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

The tool is simple (4 params, 2 required) and the schema is fully annotated, so the core contract is covered. However, with no output schema and no annotations, the description should clarify whether the call returns a full transaction object, a single extracted field, or JSON versus formatted text — an ambiguity the schema hints at but does not resolve.

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 txHash, rpcUrl, json, and field are all already documented in the schema. The description adds only the confirmation that the hash identifies a transaction; it contributes no meaning about the 'field' extraction mode or the rpcUrl network selection.

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 gives a specific verb and resource ("Get transaction details") plus the lookup key ("by hash"), which is enough to tell it apart from most siblings like cast_block or cast_balance. It does not explicitly contrast with the closely related cast_receipt (transaction vs. receipt), which an agent may confuse, so it falls short of a 5.

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 guidance on when to use this tool versus alternatives such as cast_receipt, cast_block, or cast_rpc, and no mention of prerequisites like a valid archive node or a specific network. The parenthetical "(cast tx)" merely echoes the CLI command rather than routing the agent.

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