Skip to main content
Glama

Optimism transaction summary

optimism_transaction_summary
Read-onlyIdempotent

Human-readable summary of a OP Mainnet transaction: status, block and time, sender and recipient, ETH value, gas used and fee, method selector, and decoded ERC-20 transfers with token symbols and amounts. Costs $0.005 USDC on Base via x402.

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

Input Schema

NameRequiredDescriptionDefault
hashYesTransaction hash on OP Mainnet

Output Schema

NameRequiredDescriptionDefault
toNostring, e.g. "0x7Ca0b75E67E33c0014325B739A8d019C4FE445F0"
feeNostring, e.g. "0.0000051521641113"
fromNostring, e.g. "0xdC45DB93c3fC37272f40812bBa9C4Bad91344b46"
hashNostring, e.g. "0x7fe4cdd3b21df2ea239247f074de5c417fca54f3a59200b0ebc25fd67
chainNostring, e.g. "optimism"
valueNostring, e.g. "0"
statusNostring, e.g. "success"
gasUsedNonumber, e.g. 1030371
timestampNostring, e.g. "2026-10-22T15:30:05.000Z"
blockNumberNonumber, e.g. 158542114
nativeSymbolNostring, e.g. "ETH"
methodSelectorNostring, e.g. "0x4e309099"
tokenTransfersNoarray
contractCreatedNonull, e.g. null

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "blockNumber": {
      +      "description": "number, e.g. 158542114"
      +    },
      +    "chain": {
      +      "description": "string, e.g. \"optimism\""
      +    },
      +    "contractCreated": {
      +      "description": "null, e.g. null"
      +    },
      +    "fee": {
      +      "description": "string, e.g. \"0.0000051521641113\""
      +    },
      +    "from": {
      +      "description": "string, e.g. \"0xdC45DB93c3fC37272f40812bBa9C4Bad91344b46\""
      +    },
      +    "gasUsed": {
      +      "description": "number, e.g. 1030371"
      +    },
      +    "hash": {
      +      "description": "string, e.g. \"0x7fe4cdd3b21df2ea239247f074de5c417fca54f3a59200b0ebc25fd67"
      +    },
      +    "methodSelector": {
      +      "description": "string, e.g. \"0x4e309099\""
      +    },
      +    "nativeSymbol": {
      +      "description": "string, e.g. \"ETH\""
      +    },
      +    "status": {
      +      "description": "string, e.g. \"success\""
      +    },
      +    "timestamp": {
      +      "description": "string, e.g. \"2026-10-22T15:30:05.000Z\""
      +    },
      +    "to": {
      +      "description": "string, e.g. \"0x7Ca0b75E67E33c0014325B739A8d019C4FE445F0\""
      +    },
      +    "tokenTransfers": {
      +      "description": "array"
      +    },
      +    "value": {
      +      "description": "string, e.g. \"0\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description still adds real value beyond them by disclosing a cost and payment mechanism ('Costs $0.005 USDC on Base via x402'), which an agent must know before calling. It does not say what happens for an unknown/pending hash or whether payment is charged on failure, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler: the returned fields come first and the cost/payment note is appended separately. Everything earns its place and nothing is front-loaded incorrectly.

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, so return values need no further explanation, yet the description still previews them. Combined with the pricing disclosure and full-coverage parameter schema, an agent has everything needed to select and invoke it correctly.

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?

With a single parameter at 100% schema description coverage, the schema already documents the hash and its 0x+64-hex pattern. The description only restates 'transaction hash on OP Mainnet' without adding format, pending-vs-mined, or invalid-hash behavior, so the 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+resource ('Human-readable summary of a OP Mainnet transaction') and then enumerates exactly what the summary contains (status, block/time, sender/recipient, ETH value, gas, method selector, decoded ERC-20 transfers). The chain scoping plus the 'summary of a single transaction' framing cleanly separates it from siblings such as optimism_contract_info, optimism_gas_prices, or the eth_/base_/arbitrum_ transaction_summary variants.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the tool for one known transaction hash on OP Mainnet. There is no explicit when-to-use statement, no exclusion ('not for balances or token snapshots — use optimism_wallet_balances / optimism_token_snapshot'), and no note that other chains require the sibling tools.

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