Skip to main content
Glama

Beggar Bot

approve_tx_build

Build an unsigned ERC-20 approve tx (exact or unlimited) with current allowance, spender EOA-phishing check, USDT reset warning, fees and signing hash. 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": "approve_tx_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase
ownerNo0x...
tokenNoUSDC|0x...
amountNo5|unlimited
spenderNo0x...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses that the tx is unsigned, that it returns current allowance, fees and signing hash, that it runs a spender EOA-phishing check, and that USDT requires a reset. It also discloses the $0.02 USDC x402 payment cost. Missing: what happens when the phishing check fails and whether any auth/API key is needed.

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?

One dense, front-loaded sentence with the core capability first, differentiating behaviors next, and the payment note last. No filler or redundant restatement of the tool name.

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

Completeness4/5

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

For a build-only tool with no output schema, the description covers what the result contains (allowance, fees, signing hash) and flags the paid x402 requirement. The notable gap is that all five parameters are optional yet no defaults or fallback behavior are described.

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 optional parameters. The description adds only marginal meaning, restating the exact-or-unlimited amount choice and hinting that the spender value feeds the phishing check; it does not explain defaults for chain, owner, or token.

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?

States a specific verb ('Build') and resource ('unsigned ERC-20 approve tx') with a scope qualifier ('exact or unlimited') that distinguishes it from a revoke or permit2 flow. It stops short of naming which sibling to prefer, but the purpose is unmistakable.

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 by the verb-and-resource phrasing: an agent can infer this is for creating an ERC-20 allowance. There is no explicit when-to-use versus permit2_approve_build or revoke_tx_build, and no stated prerequisites such as needing an owner address.

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.