Skip to main content
Glama

base_eth_call

Read-only

Make a read-only smart-contract call on Base with eth_call without sending a transaction. Costs $0.005 USDC via x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesSmart-contract address on Base mainnet.
dataYes0x-prefixed ABI calldata for a read-only eth_call.
blockNoBase block selector: block number or tag such as latest, safe, finalized, pending or earliest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / block / description
      Added value: +"Base block selector: block number or tag such as latest, safe, finalized, pending or earliest."
    • addedInput schema / properties / data / description
      Added value: +"0x-prefixed ABI calldata for a read-only eth_call."
    • addedInput schema / properties / to / description
      Added value: +"Smart-contract address on Base mainnet."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces the read-only, non-transactional nature. It adds valuable behavioral context beyond the annotations by disclosing the exact cost ('$0.005 USDC via x402'), which is important for an agent deciding whether to invoke it.

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?

Two sentences, no filler. The first sentence defines the core behavior and scope, and the second adds the cost. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read-only tool with rich schema descriptions and safety annotations, this description is complete. It states the network, the method, the non-transactional nature, and the cost, giving an agent everything needed to invoke it correctly.

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 each parameter (to, data, block) is already well-documented in the schema. The description adds no additional parameter-level meaning, which matches the baseline of 3 since the schema carries the documentation burden.

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 a specific operation ('read-only smart-contract call'), the exact RPC method ('eth_call'), the network ('Base'), and explicitly states it does not send a transaction. This clearly separates it from the transaction-oriented sibling tools like base_receipt and base_transaction.

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 characterization and 'without sending a transaction' provide clear context for when this tool is appropriate: any contract state read on Base. It does not explicitly name alternative sibling tools or exclusions, but the usage context is strong enough for an agent to distinguish it from write or transaction-related tools.

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