Skip to main content
Glama

evm_get_chain_id

Retrieves the chain ID for a specified EVM blockchain, helping identify the correct network before sending transactions or interacting with contracts.

Instructions

Get the chain ID for the specified blockchain

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": "evm_get_chain_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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 disclosure burden. 'Get' implies a harmless read, but the description says nothing about the return type (numeric vs hex string) or what happens when an unsupported chain is passed, so gaps remain for an unannotated tool.

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?

One short, front-loaded sentence with no filler. It is efficient but somewhat generic; 'specified blockchain' could have been tightened to name the parameter and its accepted values.

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 one-parameter lookup there is little to explain, but with no output schema the agent gets no hint of the return shape, and the description does not disambiguate from evm_get_chain_info. Just enough to call it, not enough to call it confidently.

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?

The single 'chain' parameter has 0% schema description coverage, but its enum fully enumerates the seven accepted values, so the schema does most of the work. The description's 'for the specified blockchain' only restates what the enum already conveys and adds no format or default detail.

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: 'Get the chain ID' for a named blockchain. An agent can tell it returns a chain identifier rather than general network data, though it never distinguishes itself from the close sibling evm_get_chain_info.

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?

No when-to-use or when-not-to-use guidance, and no alternative named. With evm_get_chain_info and evm_get_network_info in the sibling list, the description leaves the agent to guess whether this narrow lookup is the right call.

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