Skip to main content
Glama

Linea transaction

linea_tx
Read-only

Look up a Linea transaction by hash: sender, recipient, value in ETH, nonce, gas limit, the 4-byte function selector and its block. Use to see what was sent or whether it exists; for success or failure and fees paid use linea_receipt, for emitted events linea_logs. Input is a 0x-prefixed 64-hex hash; an unknown hash returns 422, uncharged. Example: hash=0x638169f15ccab7f5491b46b3a883fa1aa5b5399ba5c56fa0110355d47a526a93. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
hashYes0x-prefixed transaction hash (64 hex characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint, openWorldHint, idempotentHint=false) it discloses error semantics (unknown hash returns 422 and is uncharged) and cost behavior ($0.01/call, first 10 free, failed calls free, repeats not free), which usefully explains why idempotentHint is false. It does not describe pagination or return ordering, but for a single-hash lookup that is minor.

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?

Purpose and alternative routing are front-loaded, and the sentence about the input format and example is efficient. The closing pricing sentence is somewhat redundant, restating the charge idea twice ('first 10 free; failed calls free' then 'each call is charged, so repeats are not free').

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?

Although there is no output schema, the description enumerates the returned fields, and for a one-parameter read tool it also covers input format, error behavior, cost, and read-only guarantees. Nothing an agent needs to invoke it correctly 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 coverage is 100% and the schema already says '0x-prefixed transaction hash (64 hex characters)', so the description's restatement adds little beyond formatting emphasis. The concrete example hash and the note that an unknown hash yields 422 are the only genuine additions, which fits the baseline-3 expectation when the schema carries the semantics.

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?

The description opens with a specific verb+resource ('Look up a Linea transaction by hash') and enumerates the returned fields (sender, recipient, value in ETH, nonce, gas limit, selector, block), which lets an agent distinguish it from lineup siblings that return other data shapes.

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?

It states both when to use it ('to see what was sent or whether it exists') and explicit alternatives with their conditions: linea_receipt for success/failure and fees, linea_logs for emitted events. No inference is required to route correctly.

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