Skip to main content
Glama
Ethereum MCP
by ETHCF

set_chain

Sets the default blockchain for subsequent queries across Etherscan tools, enabling network switching by chain name or chain ID.

Instructions

Set the default blockchain for subsequent queries. Affects all Etherscan tools.

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

Input Schema

NameRequiredDescriptionDefault
chainYesChain name (e.g., 'ethereum', 'polygon', 'base', 'arbitrum') or chain ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations present, the description carries the full behavioral burden; it does disclose the important trait that the setting is global and affects all Etherscan tools, which is genuinely useful. It omits whether the setting persists across sessions, what the initial default is, whether an Etherscan key must be configured first, and how invalid chain values are handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Two short sentences, zero filler, with the core action stated first and the scope of effect immediately after. Nothing could be removed without losing information.

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 one-parameter state setter with no output schema, the definition covers the action and its blast radius, which is most of what an agent needs. It falls slightly short on initial/default state and failure behavior for an unrecognized chain, but those are secondary for a tool this simple.

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 single parameter's description already documents that chain accepts a name or chain ID with examples. The tool description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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?

The description gives a specific verb and resource ("Set the default blockchain") and scopes the effect ("subsequent queries"). An agent can immediately tell this is a session-state setter rather than a data-fetching tool like get_l2_chain or get_chain_tvl, though it doesn't name any sibling explicitly.

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?

"For subsequent queries" implies this should be called before Etherscan data calls, which is useful implied guidance. However, there is no explicit when-to-use statement, no mention of when it is unnecessary (e.g. a default chain already in effect), and no guidance on whether it must be called at all before Etherscan tools work.

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