Skip to main content
Glama

evm_multicall

Batch multiple smart contract read/write calls into one atomic transaction via Multicall3 to reduce gas costs, allow selective failures, and return decoded results.

Instructions

Execute multiple contract calls in a single transaction

Batch multiple read/write operations for gas efficiency. Uses Multicall3 for atomic execution.

FEATURES:

  • Atomic execution of multiple calls

  • Gas savings vs individual transactions

  • Allow selective call failures

  • Automatic result decoding

  • Works with any contract

PARAMETERS:

  • chain: Target blockchain

  • calls: Array of calls with target, callData, allowFailure

  • requireSuccess: Require all calls to succeed (default true)

  • gasLimit: Gas limit per call (optional)

Returns results array with decoded data and gas savings.

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>",
      "calls": "<calls>"
    },
    "name": "evm_multicall"
  }
}

Input Schema

NameRequiredDescriptionDefault
callsYes
chainYes
gasLimitNo
requireSuccessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It adds useful behavior details such as atomic execution, selective call failures, automatic result decoding, and gas savings, but it does not cover prerequisites like signer/auth requirements, full failure semantics, or what happens to a transaction when requireSuccess is true.

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?

The description is front-loaded and organized into clear sections for features and parameters. Some repetition exists between the opening sentence and the atomic-execution feature, but the structure is readable and not bloated.

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

Completeness3/5

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

For a four-parameter batch tool with no annotations and no output schema, the description covers purpose, features, parameters, and return shape reasonably. However, it leaves out important operational context such as transaction signing prerequisites, detailed failure behavior, and precise parameter encoding expectations.

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 0%, so the description must compensate. It lists all four parameters and the nested call fields, but it does not clarify formats such as address and calldata encoding, and its note that gasLimit is 'per call' is ambiguous given the top-level schema property.

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: execute multiple contract calls in a single transaction. It clearly distinguishes the batch operation from individual transactions by explaining the gas-efficiency purpose and Multicall3 atomic execution.

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 description implies when to use it—batching multiple read/write operations for gas efficiency—but does not explicitly say when to prefer it over a single-call tool such as evm_call or when not to use it. Usage guidance is present but remains implicit rather than conditional.

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