Skip to main content
Glama

chain_id

Read-only

$0.001 via x402: EIP-155 chain ID (eth_chainId) for any of 6 chains — confirm which chain an RPC is on before signing. Multi-chain; 6 chains vs OneSource's Ethereum-only (Ethereum-only).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "chain_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase|ethereum|optimism|arbitrum|polygon|gnosis (default base)
x_paymentNosigned x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / x_payment / description
      Added value: +"signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms"
  2. Added
  3. Removed
  4. Added
  5. Removed
  6. Added

TDQS

A3.6/5.0
Behavior4/5

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

The annotations only declare readOnlyHint and openWorldHint. The description adds genuinely useful behavior the annotations do not: a $0.001 x402 cost and a two-step payment handshake where the first call returns terms. That paywall context is what an agent most needs before invoking. It does not spell out rate limits or the exact response shape, but the chainId return is self-evident.

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

Conciseness3/5

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

The core sentence is front-loaded and efficient, but the definition opens with a price tag rather than the tool's job, and closes with a redundant, malformed comparison ('6 chains vs OneSource's Ethereum-only (Ethereum-only)'). Those fragments dilute rather than inform.

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?

There is no output schema, so the description must convey the return value — 'EIP-155 chain ID (eth_chainId)' does that adequately. For a simple two-parameter read tool with annotations, this covers cost, payment flow, and semantics. Only the sloppy competitor clause detracts.

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%, so both parameters ('chain' and 'x_payment') are already fully documented. The description reinforces the multi-chain scope of 'chain' but adds no format or syntax detail beyond the schema. The two-step payment behavior it mentions is also already in the x_payment field description, so this is baseline 3.

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 states a specific verb and resource: it returns the EIP-155 chain ID (eth_chainId) across 6 named chains. That is unambiguous, and it is clearly distinct from value-returning siblings such as get_chain_nonce or chain_native_balance. It loses a point because the trailing '(Ethereum-only)' fragment is garbled and repeats the same phrase instead of clarifying.

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?

It gives one concrete use case — confirm which chain an RPC is on before signing — which implies when to reach for it. It never states when NOT to use it, and it names no sibling tool as an alternative. The only comparison offered is to a competitor product ('OneSource'), not to another tool in this catalog.

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.