Skip to main content
Glama

Contract Read

contract-read
Read-only

Generic read-only call to any contract on Base: provide an address and hex calldata (4-byte selector, e.g. 0x18160ddd = totalSupply, optionally followed by ABI-encoded args) and get the raw return data plus best-effort uint/address/bool/string decoding. Read-only (never sends a transaction). Use this for arbitrary view functions not covered by a dedicated tool. Price: 0.0030 USDC per call (premium: always paid).

Input Schema

NameRequiredDescriptionDefault
dataYesHex calldata starting with a 4-byte function selector (e.g. "0x18160ddd")
addressYesContract address (0x...) on Base

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description reinforces this with 'never sends a transaction.' More usefully, it discloses the return behavior (raw data plus best-effort uint/address/bool/string decoding) and the per-call price with its premium payment model, which the annotations do not provide. It does not cover revert or error behavior, keeping it below 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?

It is one dense paragraph that front-loads the core action, then adds usage, return behavior, and pricing. Every sentence earns its place, though the pricing clause and example selector make it slightly denser than ideal.

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 two-required-parameter generic call tool with no output schema, the description covers purpose, input shape, return decoding, read-only safety, and cost. It is complete enough to invoke correctly, with only error/revert semantics 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 description coverage is 100%, so both parameters are already fully documented by the schema. The description adds only a small amount of meaning beyond that: that the selector may be optionally followed by ABI-encoded arguments and an example selector mapping. Baseline 3 is appropriate.

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?

It states a specific verb and resource: read-only eth_call to any contract on Base, returning raw return data plus best-effort decoding. It also explicitly distinguishes itself from the dedicated sibling tools by saying it is for arbitrary view functions not covered by one, so an agent can route correctly 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?

It gives clear when-to-use guidance: arbitrary view functions not covered by a dedicated tool, and it reaffirms that the call is read-only and never sends a transaction. No sibling is named explicitly as an alternative, but the exclusion rule is clear enough to select the tool.

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