Skip to main content
Glama

chain_caip

Read-only

CAIP chain, account and asset ID parser — Parse, validate and build chain-agnostic IDs used by x402, WalletConnect and agent wallets: CAIP-2 chains (eip155:8453), CAIP-10 accounts (eip155:8453:0x...), CAIP-19 assets (eip155:1/erc20:0x...), plain chain ids (8453 or 0x2105) and network names (base, base-sepolia, solana). Returns chain name, chain id and hex, testnet flag, native currency, explorer, a short x402 v1-style network name, native USDC contract and its CAIP-19 id, plus EIP-55 checksum status for EVM addresses (VALID, INVALID or NOT_CHECKSUMMED). Optional address builds a CAIP-10 id for a chain. Offline; registry covers 19 common chains, unknown chains are still format-checked. 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": {
      "id": "<id>"
    },
    "name": "chain_caip"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYeseip155:8453

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well past the readOnly/openWorld annotations: it discloses that the tool is offline, that the registry covers only 19 chains while unknown chains are still format-checked, what the response fields are (chain id/hex, testnet flag, native currency, explorer, USDC contract, EIP-55 status), and the semantics of the three checksum outcomes. It even surfaces the paid-call requirement ($0.001 USDC via x402), which is a behavior an agent must know before invoking.

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?

Purpose and accepted formats are front-loaded, and the sentence is dense but each clause carries information an agent needs (formats, outputs, registry limits, cost). It is overpacked into a single run-on block and would read better split into usage, returns, and pricing lines.

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 properly takes on the return-value burden by listing every field returned and the checksum status vocabulary. Coverage limits, offline behavior and pricing are also stated, leaving only the unsupported 'optional address' claim as a completeness defect.

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 parameter already has a schema example (eip155:8453), and the description usefully expands that into the full set of accepted formats, which is real added meaning. However, it also advertises an 'optional address' input that does not appear anywhere in the input schema, creating a mismatch that could confuse an agent trying to build a CAIP-10 id.

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?

Names specific verbs (parse, validate, build) against a specific resource (CAIP chain/account/asset IDs) and enumerates the accepted ID shapes with concrete examples (eip155:8453, eip155:1/erc20:0x...). It also carves out its niche relative to chain-listing siblings by framing itself as the CAIP parser used by x402, WalletConnect and agent wallets.

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 context for when to reach for it: any time an input is a CAIP-2/CAIP-10/CAIP-19 id, a bare chain id, or a network name, plus the note that an address can be supplied to build a CAIP-10 id. It does not name an alternative sibling (e.g. chain_chains) or state when-not-to-use, so routing is implied rather than explicit.

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