Skip to main content
Glama

x402_evmrpc_get_v1_chain_block_number

Fetch the current block number for a supported EVM chain through a paid read-only JSON-RPC call, useful for chain-height checks without API keys.

Instructions

evmrpc — Paid read-only EVM JSON-RPC across ethereum, base, polygon, arbitrum, optimism, bsc — no API key needed. 13 routes: block/tx/receipt/balance/nonce/gas/chain-id/code, eth_call, eth_getLogs, estimate-gas, and raw JSON-RPC passthrough (read methods only). $0.003/call on Base/Polygon/Arbitrum/World. [GET /v1/{chain}/block-number] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/base/block-number

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

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.5/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose valuable traits — read-only, no API key, per-call payment ($0.005 USDC on four chains) — but says nothing about response shape (hex vs decimal block height), whether it returns only the latest block, error/retry behavior, or latency. The pricing is also stated twice inconsistently ($0.003/call in the general sentence vs $0.005 for this endpoint), which muddies the cost model.

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

Conciseness2/5

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

Nearly all of the text is family-level boilerplate (13 routes, chains, eth_call, eth_getLogs) that does not apply to this endpoint, and the tool-specific part is deferred to the end in bracket notation. Pricing is repeated twice with different figures, adding noise rather than clarity.

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 simple GET endpoint with no output schema and no annotations, the description covers cost and supported chains but leaves out what the response actually contains and how the chain argument is validated. Adequate to attempt a call, but not sufficient to predict the result or handle failures.

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%, so the baseline is 3. The description adds modest value by showing the chain selector as a path segment ({chain}) and giving a concrete example (/v1/base/block-number), plus the payment chain IDs eip155:8453+137+42161+480, but does not explain the body/query/restart/operationId parameters that the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The actual operation is only identifiable from the bracketed endpoint marker "[GET /v1/{chain}/block-number]" and the example "/v1/base/block-number"; the leading sentence describes the whole evmrpc family (13 routes, six chains) rather than this tool. An agent can infer it fetches a chain's block number, but the purpose is buried behind family-level framing and no sibling differentiation is given.

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?

There is no statement of when to call this versus siblings such as x402_evmrpc_get_v1_chain_balance_address or the other listed routes; the route enumeration is family context, not selection guidance. The only usable hints are "read-only" and "no API key needed," which describe constraints rather than when-to-use conditions.

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