Skip to main content
Glama

Beggar Bot

permit2_approve_build

Build Permit2 on-chain approve(token,spender,uint160,uint48) with expiry, current Permit2 allowance/nonce and the one-time ERC-20 → Permit2 approval step. 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": "permit2_approve_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase
ownerNo0x...
tokenNoUSDC|0x...
amountNo5|max
spenderNo0x...
expiry_daysNo30

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the behavioral burden. It discloses the x402 fee and mentions current allowance/nonce plus a one-time ERC-20 → Permit2 approval step, but it does not explicitly say whether it only returns unsigned calldata or submits a transaction, nor what the response contains.

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 description is a compact single sentence plus payment note, with purpose front-loaded. The middle clause ('current Permit2 allowance/nonce and the one-time ERC-20 → Permit2 approval step') is dense and slightly ambiguous but not wasteful.

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?

For a six-parameter build tool with no annotations and no output schema, the description covers purpose and fee but omits output form, prerequisite state requirements, and whether anything is broadcast. It is minimally adequate but leaves important invocation context unstated.

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 baseline is 3. The description maps the approve signature to uint160 amount and uint48 expiry, but it adds no detail for chain, owner, spender, or how 'max' and expiry_days are handled beyond the schema's example values.

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 uses a specific verb ('Build') and resource ('Permit2 on-chain approve') and names the function signature and expiry. It does not explicitly contrast with sibling approve_tx_build or permit2_typed_data, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

No when-to-use guidance, prerequisites, or alternatives are stated. The only contextual note is the $0.02 x402 cost; an agent must infer that this is for Permit2 approvals and not ERC-20 approve_tx_build.

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.