Skip to main content
Glama

Crypto & Web Data API for Agents

Read any smart contract function (eth_call) on Base, Ethereum and 5 more chains

evm_call
Read-only

Read any smart contract function (eth_call) on Base, Ethereum and 5 more chains. Calls a view function by its signature, e.g. sig=balanceOf(address)&args=0x...&returns=uint256, on Base, Ethereum, Arbitrum, BSC, Polygon, Optimism or Avalanche. Arguments: address, bool, bytes32, uintN, intN. Return types: those plus string and bytes (comma-separated for several static values). Returns raw hex and decoded values. Not cached. Price $0.005 per call (x402: USDC on Base or Solana).

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>",
      "sig": "<sig>"
    },
    "name": "evm_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesContract address
txNoAlternative to the X-Payment-Tx header
sigYes
argsNoComma-separated argument values
blockNolatest
chainNoOne of ethereum, base, arbitrum, bsc, polygon, optimism, avalanchebase
returnsNoComma-separated return types, e.g. uint256 or string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, so safety and open-world reach are covered. The description adds genuinely useful context beyond that: it is not cached, it returns both raw hex and decoded values, and it discloses pricing ($0.005 per call) and payment mechanics (x402 USDC on Base or Solana). It does not mention failure behavior for reverts or unsupported signatures, 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.

Conciseness4/5

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

Front-loaded with purpose and an inline example signature, then chain list, then type constraints, then cost. Dense but every sentence carries information. It is somewhat crowded — the chain list is repeated twice and the prose-level example is slightly redundant with the schema examples — but nothing is truly wasted.

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 7-parameter, no-output-schema read tool, the description covers purpose, chain scope, argument/return type domains, decoding behavior, caching, and payment. The gaps are secondary: no explanation of what happens on revert or invalid signature, and no indication of response shape beyond 'raw hex and decoded values'. Given annotations cover the read-only profile, this is largely complete.

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?

With 71% schema description coverage, the schema already documents to, args, chain, returns, and tx. The description adds real meaning beyond it: the accepted argument types (address, bool, bytes32, uintN, intN), the return types including string and bytes, and the rule for comma-separated multiple return values. These type-domain constraints are not fully captured in the schema patterns.

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 — reads a view function via eth_call — and enumerates the supported chains (Base, Ethereum, Arbitrum, BSC, Polygon, Optimism, Avalanche). It is clearly distinguishable from siblings like evm_balance, evm_token_balance, and evm_tx, which target specific data rather than arbitrary contract calls.

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

Usage Guidelines3/5

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

The name and description imply the use case (calling arbitrary view functions with a signature), and the example sig=balanceOf(address)&args=0x...&returns=uint256 conveys usage mechanics. However, there is no explicit when-to-use vs when-not-to-use guidance, and no routing to the more specific siblings (evm_balance, evm_token_balance) that an agent should prefer for common reads.

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