Skip to main content
Glama

evm_call

Execute read-only smart contract calls on supported EVM chains without creating a transaction, enabling AI agents to query contract state.

Instructions

Execute a read-only contract call without creating a transaction

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

Input Schema

NameRequiredDescriptionDefault
toYesContract address
dataYesEncoded function call data
fromNoSender address (optional)
chainYes
valueNoValue to send in wei
blockTagNoBlock number or "latest"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the most important behavioral trait, namely that no transaction is broadcast and therefore no gas or state change occurs, but it is silent on failure behavior on revert, rate limits, chain-specific caveats, and what is actually returned (raw hex vs decoded).

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?

A single compact sentence with the key constraint front-loaded and zero filler. It is arguably too terse for the tool's complexity, though under-specification is penalized under completeness rather than here.

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

Completeness2/5

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

With 6 parameters, no annotations, and no output schema, the description should state what a call returns and how reverts or chain errors surface. Instead it stops at the read-only property, leaving the agent unable to predict the response shape or know whether decoding is required.

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 83%, so the schema already documents to, data, from, value, and blockTag. The description adds nothing parameter-specific beyond implying that 'value' is not actually spent because no transaction is created. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource: 'Execute a read-only contract call,' and adds the distinguishing trait 'without creating a transaction.' It does not differentiate from the similarly named sibling evm_call_contract, so the agent must open both schemas to tell them apart.

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

Usage Guidelines2/5

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

The phrase 'without creating a transaction' hints at read-only usage, but there is no explicit when-to-use guidance, no exclusions, and no routing to alternatives such as evm_call_contract or evm_decode_function_result. The agent must infer that this is for state reads or simulations rather than writes.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools