Skip to main content
Glama

Beggar Bot

cancel_or_speedup_tx

Build a replacement tx to cancel (0-value self-send) or speed up a stuck pending tx at the same nonce with correctly bumped EIP-1559 fees. Paid: $0.02 USDC via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cancel_or_speedup_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNo0x...
hashNo0x...
modeNocancel|speedup
chainNobase
nonceNon

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose meaningful behavior: the replacement reuses the original nonce, cancel mode is a 0-value self-send, fees are EIP-1559 bumped, and the call costs $0.02 USDC via x402. It stops short of saying whether the tool only builds an unsigned transaction or broadcasts it, and what happens if the nonce is already mined.

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?

The core behavior is front-loaded in a single dense sentence, with the payment note as a short trailing clause. No filler or restatement of the name.

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

Completeness3/5

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

There are no annotations and no output schema, and the tool builds an on-chain transaction, so the description should do more. Most notably, with zero required parameters it never explains whether the caller supplies 'hash', or 'from'+'nonce', or both, nor what the built transaction is returned as.

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%, so the schema already documents all five parameters, establishing a baseline of 3. The description adds some real meaning — that 'nonce' must match the stuck transaction's nonce and that 'mode' selects between a 0-value self-send and a fee bump — but leaves the relationship between 'hash' and 'from'+'nonce' unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — build a replacement tx that either cancels (0-value self-send) or speeds up a stuck pending tx — and specifies the nonce and fee-bump mechanics. It is clearly distinct from the many protocol-specific '*_tx_build' siblings, but it never differentiates itself from the similar-sounding cancel siblings (eip3009_cancel_build, cow_order_cancel_build).

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 context is implied well by 'stuck pending tx at the same nonce,' which tells the agent the precondition. However, there is no explicit when-not guidance and no named alternative for cases where the stuck transaction is an EIP-3009 transfer or a CoW order, both of which have their own cancel 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.