Skip to main content
Glama

chain_stuck_tx

Read-only

Stuck / pending transaction doctor (nonce gap + replacement fees) — Diagnose a stuck or pending EVM transaction on base, ethereum, arbitrum, optimism or polygon: confirmed vs pending nonce for the address (transactions queued in the mempool), live base/priority fee, recommended fees for a new transaction, and - when something is pending - the exact replacement fees (at least +10% over the pending tx and above the base fee) plus a ready zero-value self-transfer cancel transaction for the stuck nonce. Optional hash checks one transaction: PENDING, UNDERPRICED (maxFee below base fee), MINED_SUCCESS, MINED_REVERTED or NOT_FOUND (dropped or never broadcast). Verdict CLEAR/STUCK/PENDING/UNDERPRICED/TX_NOT_FOUND/MINED_*. Never signs or broadcasts. Params: address (required), chain (default base), hash (optional tx hash). Price: $0.003 USDC (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": {
      "address": "<address>",
      "chain": "<chain>"
    },
    "name": "chain_stuck_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase
addressYes0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds real behavior beyond them: it will never sign or broadcast, it exposes the exact replacement-fee rule (at least +10% over the pending tx and above the base fee), it lists every verdict value returned, and it discloses the x402 payment cost of $0.003 USDC. That is precisely the kind of operational context an agent needs before invoking a paid diagnostic.

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?

The purpose, supported chains, and returned artifacts are front-loaded, and nearly every clause carries distinct information (fee math, verdict list, no-signing guarantee, price). It is a dense two-sentence block with heavy em-dash nesting, which costs some scannability, but no sentence is filler.

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?

There is no output schema, and the description fully covers the return payload: nonce state, live and recommended fees, replacement fees, a ready-to-use zero-value self-transfer cancel transaction, and the closed set of verdict strings. For a read-only diagnostic with only two parameters, nothing an agent needs to call it correctly appears to be missing.

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%, so baseline is 3, but the schema's own descriptions are weak ('base' for chain, a sample address for address) and the description compensates by stating that chain defaults to base, that address is required, and that hash is an optional tx hash used to check one specific transaction. It notably does not enumerate the accepted chain values even though it mentions five chains in prose.

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 — diagnose a stuck/pending EVM transaction — and enumerates the exact outputs (confirmed vs pending nonce, live base/priority fee, recommended fees, replacement fees, ready cancel transaction). It also names the supported chains and the verdict vocabulary, so an agent can distinguish it from generic tx lookup siblings like chain_tx or chain_tx_find without opening the schema.

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

Usage Guidelines4/5

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

The use case (a stuck or pending transaction, plus optional single-tx hash check) is stated clearly, along with the conditions under which replacement fees and the cancel transaction are returned. It also implicitly bounds scope with 'Never signs or broadcasts', but it never explicitly names an alternative sibling for plain tx status lookups or for broadcasting, which keeps it from a 5.

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