Skip to main content
Glama

Eth Read Contract

eth_read_contract
Read-onlyIdempotent

Read-only (eth_call) against any Ethereum contract, executed by our own Reth node. ERC-20 helpers balanceOf / allowance / decimals / symbol / name / totalSupply are built in; any other function can be called by passing its 4-byte selector plus ABI-encoded parameter. Nothing is signed or written. When to use: an agent needs an on-chain value without trusting a third-party API - a USDT/USDC balance, token decimals, an allowance, or any view function. Do not use: to send a transaction (this never writes), or for a historical balance. Returns: ok, contract, function, selector, output_type, value, value_human for known-decimals tokens.

Input Schema

NameRequiredDescriptionDefault
argumentNoEthereum address argument (balanceOf / allowance)
contractYes0x + 40 hex contract address
functionYesbalanceOf | allowance | decimals | symbol | name | totalSupply, or a label for a raw selector
selectorNoExplicit 4-byte selector hex for non-ERC-20 calls
argument2NoSecond address argument (allowance)
parameterNoABI-encoded parameter hex (with an explicit selector)
output_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent and non-destructive, so the safety profile is covered. The description still adds real context - execution by the service's own Reth node, 'Nothing is signed or written', and the return field list - which goes beyond the annotations. No contradiction with openWorldHint=false.

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?

Front-loads the core mechanism, then when/when-not, then returns - a good ordering with little waste. Slightly dense with back-to-back parentheticals and a long Returns list, but every clause carries information.

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 compensates by enumerating return fields (ok, contract, function, selector, output_type, value, value_human). Together with the schema and use-case guidance this is nearly complete for a 7-parameter tool; minor ambiguity remains around how 'function' labels interact with a supplied selector.

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 86%, so the baseline is 3. The description adds meaning beyond the schema by explaining the two calling modes: built-in ERC-20 function labels versus arbitrary calls requiring a 4-byte selector plus ABI-encoded parameter, which is not stated in the property descriptions.

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 (eth_call) against any Ethereum contract') plus the built-in ERC-20 helpers and the raw selector path. This is sufficient for an agent to distinguish it from adjacent read tools like eth_get_account or tron_read_contract 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 Guidelines5/5

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

Gives explicit when-to-use scenarios ('an on-chain value without trusting a third-party API - a USDT/USDC balance, token decimals, an allowance') and explicit exclusions ('Do not use: to send a transaction, or for a historical balance'). The agent has nothing to infer about applicability.

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.