Skip to main content
Glama

chain_chains

Read-only

EVM chain registry lookup — Look up an EVM chain by chain id (decimal or hex), name or slug: chainId, hex id, CAIP-2 id, official name, slug, native currency, layer (L1/L2/sidechain), rollup stack (OP Stack, Arbitrum Nitro, ZK Stack...), block explorer, testnet flag and whether Polyform's /v1/chain/* tools support it. q=all, mainnets or testnets lists the whole curated registry (36 chains). Offline, instant. Price: $0.001 USDC (Base, via x402).

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": {
      "q": "<q>"
    },
    "name": "chain_chains"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYes8453

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful context beyond that — offline, instant, and a $0.001 USDC cost paid via x402 on Base — which tells the agent there is a monetary cost per call and no network dependency, though it gives no detail on rate limits or failure modes for unknown chains.

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?

Front-loaded with the verb and resource, then the parameter forms, then the return fields, then cost — a sensible priority order with no filler sentences. It is dense to the point of being a run-on list, which slightly reduces scannability.

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

Completeness5/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 takes on the job of enumerating return fields (chainId, CAIP-2 id, name, slug, native currency, layer, rollup stack, explorer, testnet flag, Polyform support flag), plus cost and offline behavior. Nothing needed to call it correctly or interpret the result is missing.

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?

The schema documents only one string parameter q with a bare example "8453", so the description carries the real burden and does so: it specifies decimal chain id, hex id, name, slug, and the special q=all/mainnets/testnets values that exist nowhere in the schema. Minor gap: it does not state whether matching is case-sensitive or what error an unknown q returns.

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 ("EVM chain registry lookup — look up an EVM chain") and enumerates the accepted key types (chain id decimal/hex, name, slug), which cleanly separates it from the sibling chain_* query tools that operate on addresses, blocks, or contracts.

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?

Gives clear usage context: use it to resolve any chain identifier into full metadata, and lists the special q values (all, mainnets, testnets) that enumerate the 36-chain registry. It also notes the tool advertises which chains the /v1/chain/* tools support, but stops short of naming a when-not-to-use case or an explicit alternative.

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