Skip to main content
Glama

chain_call

Read-only

Read-only contract call (eth_call) — Run a read-only eth_call with your ABI-encoded calldata (to=, data=, optional from= and block=); returns raw result, 32-byte words and uint/address/string decodings; reverts return 422 with the revert data (not charged). Chains: base (default), ethereum, arbitrum, optimism, polygon via chain=. 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": {
      "chain": "<chain>",
      "to": "<to>",
      "data": "<data>"
    },
    "name": "chain_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
dataYes0x18160ddd
chainYesbase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond annotations by disclosing return format (raw result, 32-byte words, decodings), revert behavior (422 with revert data, not charged), supported chains, and pricing. This gives the agent a thorough understanding of the tool's behavior and costs.

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 dense but front-loaded with the key purpose and efficiently packs return details, error handling, chains, and price into one paragraph. No unnecessary fluff, though slightly better structuring could improve readability.

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 read-only eth_call tool with annotations and no output schema, the description covers what it does, returns, error behavior, chain options, and pricing. The only gap is the erroneous mention of from/block parameters, which slightly undermines completeness.

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% but only provides example values. The description adds meaning: 'ABI-encoded calldata', to= as contract address, and a list of supported chains via chain=. However, it incorrectly mentions optional from= and block= parameters that are absent from the schema, which could mislead the agent.

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: 'Read-only contract call (eth_call)' and clarifies it runs an eth_call with ABI-encoded calldata. This clearly distinguishes it from specialized sibling tools like chain_code or chain_erc20_balance.

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?

Clearly indicates when to use this tool: for read-only contract calls with custom calldata. It does not explicitly mention alternatives or when not to use it, but the context is sufficiently clear for an agent to infer that specialized tools exist for common operations.

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