Skip to main content
Glama

Crypto Bot Audit + Market Data (x402 paid)

Chain ID and network ID agree?

chain_network_id
Read-onlyIdempotent

eth_chainId versus net_version for one chain. A mismatch is how a wallet ends up signing Base transactions for Mainnet, so this is a two-call safety check, not trivia. Costs $0.001 USDC per call. Chains: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche. Byte-identical to GET /chain/network-id?chain=base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYeschain key: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche [required]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
noteNo
agreeNo
chainNo
staleNo
caveatNo
reasonNo
sourceNo
chainIdNo
chainLabelNo
netVersionNo
expectedChainIdNo
matchesOurConfigNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "agree": {
      +      "type": "boolean"
      +    },
      +    "caveat": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chainId": {
      +      "type": "integer"
      +    },
      +    "chainLabel": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "expectedChainId": {
      +      "type": "integer"
      +    },
      +    "matchesOurConfig": {
      +      "type": "boolean"
      +    },
      +    "netVersion": {
      +      "type": "string"
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "stale": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "ts": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds valuable behavior beyond annotations: it performs two internal calls, costs $0.001 USDC, and explains the real-world consequence of a mismatch. This enriches the behavioral model without contradicting annotations.

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?

The description is compact – three sentences that front-load the core purpose, then add cost and chain list. No filler or redundant phrases. It could be slightly tighter (e.g., merging chain list with schema) but is well-structured and easy to scan.

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 tool with an output schema, the description covers the essential context: what it does, cost, supported chains, and an endpoint reference. It doesn't explain the output structure, but that's already provided by the output schema. No critical missing detail for an agent to invoke it correctly.

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 description coverage is 100% – the single parameter 'chain' is fully described with an explicit list of accepted values. The description repeats that list and adds the example endpoint URL, but does not introduce new syntactic meaning. Since the schema already carries full parameter semantics, a baseline of 3 is appropriate; slight credit for the endpoint mapping, but not enough for a 4.

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?

The description clearly states the tool's function: comparing eth_chainId and net_version for a given chain. It explains the purpose (safety check against signing on the wrong network) and distinguishes it from other chain_* tools by focusing on ID agreement rather than balances, blocks, or calls. The verb 'check' and resource 'chain ID vs network ID' are specific and unambiguous.

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?

The description gives strong context for when to use it ('two-call safety check'), notes the cost, and lists supported chains. It doesn't explicitly name alternatives or say when not to use it, but there are no direct siblings (e.g., no other tool checks chain ID agreement), so the guidance is adequate. The endpoint equivalence adds helpful practical context.

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