Skip to main content
Glama

chain_heartbeat

Read-only

$0.005 via x402: one pre-action heartbeat replaces chain-id + block-tip + block-freshness + gas + fee-history + finality calls. One call covers chain ID + block number + gas, with one round trip and more data. Returns an identity-checked HEALTHY/CONGESTED/STALE verdict across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis and Robinhood Chain.

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_heartbeat"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase|ethereum|optimism|arbitrum|polygon|gnosis|robinhood (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

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds real behavior beyond that: a paid x402 flow at $0.005, the convention that omitting x_payment returns price and terms, a single round trip, and an identity-checked verdict with three enumerated states. It does not disclose rate limits, caching, or what the verdict thresholds are, which keeps it short of a 5.

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 description opens with a price and billing mechanism rather than the capability, and the middleware list is stated twice ("chain-id + block-tip + block-freshness + gas + fee-history + finality" then "chain ID + block number + gas"), which is redundant and slightly inconsistent in scope. All three sentences do carry information, but the ordering buries the purpose.

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 only two optional parameters, no output schema, and no formal enum on the chain field, the description carries the return-value burden well by naming the verdict set and the covered chains, and it explains the two-step payment handshake. What is missing is verdict semantics (what makes a chain STALE or CONGESTED) and the freshness window, which matter for an agent deciding whether to act on the result.

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 both parameters are already documented, giving a baseline of 3. The description reinforces the supported chain set and the meaning of omitting x_payment, but adds no format or behavioral nuance the schema does not already carry.

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 names a concrete composite read (chain ID + block number + gas + fee history + finality) and states its output shape as a HEALTHY/CONGESTED/STALE verdict across seven named chains, which lets an agent distinguish it from single-purpose siblings like chain_id, chain_gas_price, and chain_fee_history. The coined term "heartbeat" is only explained indirectly, so the reader must finish the second sentence before the purpose is unambiguous.

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?

"One pre-action heartbeat" implies a use-before-acting scenario, which is genuine usage context. However, there is no explicit when-not guidance, and the closest sibling for multi-value chain reads (chain_batch_reads) is never mentioned or excluded, leaving the agent to infer which bundling tool to prefer.

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.