Skip to main content
Glama

chain_call

Read-only contract call via eth_call (no transaction sent): pass to + ABI-encoded data, get the raw return hex plus best-effort uint/address/string decodes and revert reason. Example: {to:"0x8335…2913", data:"0x18160ddd", chain:"base"}. $0.002 USDC.

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": {
      "to": "<to>",
      "data": "<data>"
    },
    "name": "chain_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
dataYes
fromNo
blockNo
chainNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

No annotations exist, so the description carries the whole burden. It does disclose the safety profile (read-only, nothing broadcast), the return payload (raw hex, best-effort decodes, revert reason), and the price ($0.002 USDC), which is real added context. It says nothing about supported chains, behavior on revert vs transport failure, or rate limits, leaving meaningful gaps for an unannotated tool.

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?

The core semantics are front-loaded in the first clause, followed by return behavior, a concrete example, and cost. Every element is load-bearing; the example concretely disambiguates 'data' in a way prose would not.

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?

With no output schema, the description correctly takes on the return-value explanation and does it well. Remaining gaps are the unmentioned 'from'/'block' parameters and the absence of any chain list, but nothing essential to calling it correctly is missing.

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 0%, so the description must compensate and it only partly does: it explains 'to' as a target address, 'data' as ABI-encoded calldata, and 'chain' via the 'base' example. The optional 'from' and 'block' parameters get no mention at all, so two of five parameters remain opaque.

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 via eth_call') and immediately scopes it with 'no transaction sent', which separates it from mutating siblings like estimate_gas or contract_info. An agent knows exactly what operation this performs without opening the schema.

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?

The read-only, no-transaction framing makes the use case clear and implicitly distinguishes it from write-path siblings. It stops short of naming an alternative tool or stating when not to use it, so it is short of a full 5.

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