Skip to main content
Glama

EVM Transaction Hash Lookup

evm_transaction_hash_lookup
Read-only

Look up an EVM transaction by transaction hash and return normalized transaction facts, including status, block number, sender, recipient, value, gas usage, and contract method selector. This is a factual post-transaction lookup on Ethereum or Base; live chain state may change between calls and does not simulate, send, sign, or evaluate whether the transaction was safe or appropriate to execute. USE WHEN: an agent already has an EVM transaction hash and needs to inspect the corresponding on-chain transaction. DO NOT USE WHEN: the agent needs a pre-execution transaction decision, a gas-price lookup, a wallet-balance lookup, or the latest block. A syntactically valid hash that is not found on the selected network returns NOT_FOUND as a factual result rather than a validation error.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chain": "base",
      "tx_hash": "0x31afe178dc3a50cfc75da882a58a079b917247ae1330410a80b191d6af99a9c4"
    },
    "name": "evm_transaction_hash_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesEVM network to query.
tx_hashYesTransaction hash (0x + exactly 64 hex chars).

Output Schema

NameRequiredDescriptionDefault
gasYesGas usage and fee details of the transaction.
chainYesEVM network queried.
statusYesTransaction execution status.
tx_hashYesTransaction hash that was queried.
contractYesContract interaction details detected from calldata.
value_weiYesTransaction value in wei.
to_addressYesTransaction recipient address (null for contract creation).
observed_atYesUTC observation timestamp in ISO-8601 format with Z suffix.
block_numberYesBlock number where the transaction was included.
from_addressYesTransaction sender address.
value_nativeYesTransaction value in native units (ETH).
transaction_typeYesType of transaction.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "chain": "base",
      +    "tx_hash": "0x31afe178dc3a50cfc75da882a58a079b917247ae1330410a80b191d6af99a9c4"
      +  }
      +]
  2. Changed1 schema field changed
    • addedOutput schema / properties / observed_at / format
      Added value: +"date-time"
  3. Changed1 schema field changed
    • changedOutput schema / properties / observed_at / description
      Previous value: -"UTC observation timestamp (milliseconds since epoch)."New value: +"UTC observation timestamp in ISO-8601 format with Z suffix."
  4. Changed2 schema fields changed
    • addedOutput schema / properties / contract / description
      Added value: +"Contract interaction details detected from calldata."
    • addedOutput schema / properties / gas / description
      Added value: +"Gas usage and fee details of the transaction."
  5. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-idempotent/non-destructive, and the description adds real value on top: it explains that live chain state may change between calls (rationalizing idempotentHint=false), that it does not simulate, send, or sign, and that a well-formed but absent hash yields NOT_FOUND rather than a validation error. It stops short of noting reorg/finality caveats or rate limits, so it is strong but not exhaustive.

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 purpose, then USE/DO NOT USE blocks, then the NOT_FOUND edge case — a sensible ordering. Slightly overlong in the negative-capability clause ('does not simulate, send, sign, or evaluate whether the transaction was safe or appropriate to execute'), which could be tightened.

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

Completeness5/5

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

An output schema exists, yet the description still names the returned facts, so an agent knows what to expect. With reading-only semantics, two fully documented required params, and explicit not-found behavior, nothing material is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the enum for chain is already documented, so the schema does most of the work. The description still adds meaning by tying the hash format to the 'selected network' and clarifying that validity of format and existence on chain are separate concerns (NOT_FOUND vs. validation error).

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 and resource ('look up an EVM transaction by transaction hash') plus the exact fields returned (status, block number, sender, recipient, value, gas usage, method selector) and the supported networks. It is immediately distinguishable from siblings such as evm_gas_price_lookup or evm_latest_block_lookup.

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?

Provides explicit 'USE WHEN' (agent already holds a hash and needs on-chain facts) and 'DO NOT USE WHEN' clauses naming the alternatives: pre-execution decision, gas-price lookup, wallet balance, latest block. The routing condition is unambiguous.

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