Skip to main content
Glama

get_chain_call

Read-only

Simulate any read-only Ethereum contract call via eth_call — pass a contract address and encoded calldata, get the raw return value, across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. The universal contract-read primitive for agents that need a view function not covered by a dedicated endpoint. Live public RPC; one paid call.

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": "get_chain_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
x_paymentNoSigned x402 payment payload

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuine beyond-annotation context: the call is a live simulation against a public RPC, the return is raw (undecoded) data, and it costs 'one paid call' — an operationally important cost signal. It stops short of describing latency, failure modes, or how reverts surface, which keeps it below 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the mechanism and inputs, followed by differentiation and then operational cost. No filler; the chain enumeration and the 'raw return value' detail both earn their space.

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 single-purpose read primitive with annotations covering safety, no output schema, and a clear statement of what is returned, the description is nearly complete. The residual gap is that the address/calldata inputs described in prose do not appear in the schema, so an agent must infer the actual parameter names or shapes.

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% for the single listed parameter, so the baseline is 3. The description does add substantive meaning about what the call needs (a contract address and encoded calldata), but those inputs are not reflected in the input schema at all, and the one parameter that is present (x_payment) is never explained beyond the phrase 'one paid call'. This creates some ambiguity about how the descriptive inputs map to the actual request shape.

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?

The description names the exact mechanism (eth_call simulation), the inputs an agent supplies (contract address and encoded calldata), the output (raw return value), and the supported chains. It also positions the tool against its siblings by calling itself 'the universal contract-read primitive' for view functions 'not covered by a dedicated endpoint', so it is clearly distinguishable from tools like get_chain_erc20_balance or get_chain_code without opening a schema.

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

Usage Guidelines5/5

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

It gives an explicit when-to-use condition: a view function not covered by a dedicated endpoint, which also implies the when-not (use the dedicated endpoint when one exists). The chain list further scopes usage to the six supported networks, leaving little 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.