Skip to main content
Glama

EVM transaction

evm_transaction
Read-onlyIdempotent

Use when you need a transaction by hash on Base, Ethereum, Arbitrum, Polygon or Optimism: from, to, value, nonce, gas and fee fields, block, confirmations, method id and input (first 1 KB). Returns the paid x402 request for your input (GET /evm/tx, $0.002 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. Raw transaction fields (from, to, value, input); to know whether it succeeded (status, gas used, logs) use evm_receipt; to check a payment amount use pay_check. First call each day returns the data itself, free; later calls return the paid request.

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": "evm_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYesTransaction hash (0x + 64 hex); looked up on the chosen chain only; not found there: refused before any charge
chainNoChain to look the transaction up on; default basebase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / chain / description
      Previous value: -"Chain; default base"New value: +"Chain to look the transaction up on; default base"
    • changedInput schema / properties / hash / description
      Previous value: -"Transaction hash (0x + 64 hex)"New value: +"Transaction hash (0x + 64 hex); looked up on the chosen chain only; not found there: refused before any charge"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations: it discloses the x402 pay-per-call model at $0.002, that bad input is refused before any charge, that input is truncated to the first 1 KB, and the unusual first-call-of-the-day-free-then-paid behavior. These are non-obvious traits an agent could not infer from the structured fields.

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 when-to-use clause and the returned field list, which is the right order. It loses a little to redundancy, since the 'returns the paid x402 request' idea is stated twice (once near the start, once as the closing sentence) and could be merged.

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?

For a 2-parameter read tool with no output schema, the description covers return fields, truncation, chain scoping, failure handling (refused before charge), the payment mechanism, and sibling routing. Nothing an agent needs to invoke it correctly or interpret the result is missing.

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 both the hash pattern and the chain enum/default are already fully documented in the schema. The description restates the chain list and the 'looked up on the chosen chain only' nuance is already in the schema text, so it adds little beyond the structured data; baseline 3 applies.

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 ('a transaction by hash') plus the exact supported chains, and enumerates what comes back (from, to, value, nonce, gas/fee fields, block, confirmations, method id, first 1 KB of input). It also explicitly contrasts with evm_receipt for status/logs, so an agent can separate the two without opening either 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 explicit routing: use this when you need raw transaction fields, use evm_receipt when you need success status/gas used/logs, use pay_check for payment amounts. It also states the preconditions and the payment path (call the returned URL with an x402 or MPP client) rather than leaving invocation to inference.

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