Skip to main content
Glama

Beggar Bot

read_contract

Batch contract reads by human signature: up to 25 view calls like balanceOf(address)(uint256), ABI-encodes args, decodes return values, optional historical block. Any contract on Base/Ethereum/OP/Arbi 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": "read_contract"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNosingle call: contract
sigNosingle call: signature
argsNosingle call: comma args
blockNooptional block number
callsNoJSON [{to, sig:'fn(types)(returns)', args:[]}]
chainNobase|ethereum|...

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 full burden and does substantial work: it discloses the 25-call batch ceiling, that args are ABI-encoded and return values decoded, supported chains, and — critically — the $0.02 USDC x402 payment requirement. It omits failure/revert behavior and per-call vs per-request pricing nuance, keeping it from a 5.

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?

Two dense sentences, front-loaded with the core action and batching limit, with no filler. Chain abbreviations ('OP/Arbi') are slightly cryptic but the compactness is otherwise earned.

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 complex tool (batching, ABI codec, multi-chain, paid access) with no annotations and no output schema, the description covers inputs, limits, chains, and payment but says nothing about return shape or partial-failure behavior, leaving gaps an agent would want filled.

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 description adds real meaning beyond the terse schema hints: the 'balanceOf(address)(uint256)' example clarifies the sig type/return format and the 'up to 25 view calls' note clarifies the calls array bound, neither of which the schema spells out clearly.

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 — batched contract reads by human-readable signature — and adds concrete scope (up to 25 view calls, ABI encode/decode, optional historical block). It does not name a sibling (e.g., abi_decode or contract_selectors) to differentiate, so it stops short of a 5.

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?

'View calls' implicitly excludes state-changing calls and the chain list bounds applicability, giving implied usage context. However, there is no explicit when-to-use/when-not guidance or routing to alternatives like abi_decode for raw data, leaving selection to inference.

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.