Skip to main content
Glama

Eth call, Unichain contract call

unichain_call
Read-only

eth_call: read-only contract call on Unichain at the latest block, without a transaction or gas: send ABI-encoded calldata, or a function signature such as balanceOf(address) with args and the call is encoded and its result decoded for you. Use to read any view function that has no dedicated tool (the example reads USDC totalSupply). Calldata up to 8 KB; a call that reverts is 422 with the reason, uncharged. Example: to=0x078D782b760474a361dDA0AF3839290b0EF57AD6, data=0x18160ddd. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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>",
      "data": "<data>"
    },
    "name": "unichain_call"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes0x contract address to call
argsNoArguments for a function signature in data: comma separated, or a JSON array for arrays and tuples
dataYes0x ABI-encoded calldata (4-byte selector plus arguments), or a function signature: totalSupply(), balanceOf(address), or with its result types, balanceOf(address) returns (uint256)
fromNoOptional 0x sender address for calls that check msg.sender
returnsNoResult types to decode when data is a signature without them, for example uint256 or address,uint8

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / args
      Added value: +{
      +  "description": "Arguments for a function signature in data: comma separated, or a JSON array for arrays and tuples",
      +  "type": "string"
      +}
    • changedInput schema / properties / data / description
      Previous value: -"0x ABI-encoded calldata: 4-byte selector plus arguments"New value: +"0x ABI-encoded calldata (4-byte selector plus arguments), or a function signature: totalSupply(), balanceOf(address), or with its result types, balanceOf(address) returns (uint256)"
    • addedInput schema / properties / returns
      Added value: +{
      +  "description": "Result types to decode when data is a signature without them, for example uint256 or address,uint8",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

With annotations already declaring read-only and non-destructive, the description still adds a lot of operational context the schema cannot: latest-block semantics, no gas or transaction required, an 8 KB calldata ceiling, 422 plus revert reason on failure, and that failed calls are uncharged. The pricing line ($0.01/call, first 10 free, repeats not free) is exactly the kind of side-effect/cost disclosure an agent needs before retrying, and it is consistent with idempotentHint=false.

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 front-loaded with the core definition and then layers limits, error behavior, a concrete example, and pricing, with no filler sentences. It is dense to the point of being a single run-on block, which slightly hurts scanability, but nothing is redundant.

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 tool with no output schema, the description covers what an agent needs: inputs accepted, block context, failure mode, size limit, and cost. The one remaining ambiguity is the exact shape of a successful return value (raw hex versus decoded), which is only implied by "its result decoded for you".

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?

Schema coverage is 100%, so the baseline is 3, but the description goes further by explaining the two-mode relationship between `data` and `args` (raw ABI calldata versus a signature like balanceOf(address) that gets encoded and whose result is decoded for you). That clarifies how the parameters interact rather than merely restating them; only the `from` and `returns` parameters go unmentioned in the prose.

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?

"eth_call: read-only contract call on Unichain at the latest block, without a transaction or gas" states a specific verb, resource, chain, and execution context in one clause. It also distinguishes itself from the chain-specific siblings implicitly by naming the chain, and from `*_is_contract` / `contract_abi` by promising calldata execution and result decoding rather than metadata lookup.

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?

"Use to read any view function that has no dedicated tool" gives a clear selection rule against the other tools in the catalog, and the revert/422 note tells the agent what a bad call looks like. It stops short of naming a sibling or telling the agent which tool to prefer when a dedicated tool does exist, so it is not a full when/when-not map.

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