Skip to main content
Glama

Crypto Bot Audit + Market Data (x402 paid)

Measured block cadence

chain_block_stats
Read-onlyIdempotent

Seconds per block and blocks per hour, taken from the timestamps of two real headers at the edges of a window — one stalled block shows as a wider span instead of being smoothed away. Costs $0.001 USDC per call. Chains: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche. Byte-identical to GET /chain/block-stats?chain=base&blocks=20.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYeschain key: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche [required]
blocksNowindow size in blocks (bounded) (default 20)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
headNo
noteNo
chainNo
edgesNo
labelNo
staleNo
caveatNo
reasonNo
sourceNo
chainIdNo
toBlockNo
fromBlockNo
chainLabelNo
spanSecondsNo
windowBlocksNo
blocksPerHourNo
secondsPerBlockNo

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": {
      +    "blocksPerHour": {
      +      "type": "number"
      +    },
      +    "caveat": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chainId": {
      +      "type": "integer"
      +    },
      +    "chainLabel": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "edges": {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    "fromBlock": {
      +      "type": "integer"
      +    },
      +    "head": {
      +      "type": "integer"
      +    },
      +    "label": {
      +      "type": "string"
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "secondsPerBlock": {
      +      "type": "number"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "spanSeconds": {
      +      "type": "integer"
      +    },
      +    "stale": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "toBlock": {
      +      "type": "integer"
      +    },
      +    "ts": {
      +      "type": "string"
      +    },
      +    "windowBlocks": {
      +      "type": "integer"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world, and non-destructive behavior. The description adds valuable non-obvious behavior: it uses two real header timestamps, does not smooth stalls, charges $0.001 USDC per call, and is byte-identical to a REST endpoint. No contradiction with annotations.

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

Conciseness5/5

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

The description is compact and well-ordered: metric first, then the key behavioral differentiator, cost, supported chains, and REST equivalence. Every sentence earns its place and there is no filler or redundant schema repetition.

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?

Given the output schema exists and annotations cover safety/idempotency, the description is complete enough for an agent to call the tool correctly: it names required chain values, default window parameter, cost, and REST endpoint behavior. The only minor gap, exact bounds for 'blocks', is already disclosed as 'bounded' in the schema.

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 the baseline is 3. The description mostly restates the chain list and window concept already present in the schema; the REST query example ('chain=base&blocks=20') is mildly useful but does not add new parameter constraints or format details beyond the schema.

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 states a specific metric ('Seconds per block and blocks per hour') and the exact method ('timestamps of two real headers at the edges of a window'), which clearly identifies the resource as a raw block-cadence measurement. It also distinguishes itself from smoothed alternatives by noting that a stalled block widens the span rather than being averaged away, helping an agent separate it from siblings like chain_block_series.

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?

It gives concrete operational context: supported chains, cost per call, and byte-identical REST endpoint equivalence, which makes invocation expectations clear. It does not explicitly name alternatives or state when not to use this tool, though the 'instead of being smoothed away' clause implies a preference for raw cadence measurements.

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