Skip to main content
Glama

Eth call, Sei contract call

sei_call
Read-only

eth_call: read-only contract call on Sei 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=0xe15fC38F6D8c56aF07bbCBe3BAf5708A2Bf42392, 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": "sei_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

A3.6/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful context the annotations cannot convey: an 8 KB calldata cap, a reverted call returning 422 with the reason and going uncharged, a price of $0.01 per call, and the first 10 calls being free. That is solid added value, though with the core behavior already given by annotations it lands at a 3.

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 dense: the meaning comes first, then the usage note, then limits, then pricing. Some redundancy remains between 'without a transaction or gas', 'Reads or computes only and changes nothing', and 'each call is charged, so repeats are not free', which restates the billing point already made earlier.

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?

With no output schema, the description correctly explains that the result is decoded for you and is controlled by the 'returns' parameter. It also covers cost, size limits, and error behavior. For a five-parameter read tool, this is nearly complete; only pagination-like or return-shape details are omitted, and those are largely immaterial for a single call.

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 coverage is 100%, and the per-parameter descriptions already explain 'to', 'args', 'data', 'from', and 'returns', including the signature-with-result-types form. The description only reinforces this with a concrete example (to=0xe15f..., data=0x18160ddd) and confirms that encoding and decoding happen automatically, so it does not add much beyond the schema.

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?

States a specific verb and resource: a read-only eth_call against a Sei contract at the latest block, with no transaction or gas. It distinguishes itself from tools that read specific values by saying to use it for view functions that have no dedicated tool, but it never clarifies how it relates to the sibling named eth_call, which is the closest ambiguity.

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 condition for selecting this tool and implicitly excludes cases covered by sei_balance, sei_token_balance, and similar tools. It also supplies a concrete worked example (USDC totalSupply). It stops short of naming alternatives explicitly.

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