Skip to main content
Glama

chain_finality

Read-only

Chain finality and head health (5 EVM chains) — Latest, safe and finalized block for Ethereum, Base, Arbitrum, Optimism or Polygon: block numbers, timestamps, finality lag in blocks and seconds, finalityStatus NORMAL/DELAYED/UNSUPPORTED and headStatus LIVE/SLOW/STALLED. Use it to decide when a deposit is irreversible or to detect a stalled chain or RPC. chain= ethereum|base|arbitrum|optimism|polygon, a comma list, or all (default ethereum). Price: $0.002 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": {
      "chain": "<chain>"
    },
    "name": "chain_finality"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesbase

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive, open-world profile, and the description adds genuinely new behavioral context: the finalityStatus/headStatus state vocabulary and the $0.002 USDC x402 payment cost on Base. Rate limits and caching/freshness behavior are not disclosed, keeping it below 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.

Conciseness4/5

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

Front-loaded with purpose and return fields, then usage, then parameter syntax and price — a sensible ordering. The first sentence is dense with enumeration but every element (chains, fields, status vocabularies) is functional rather than filler.

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?

With no output schema, the description fully compensates by describing the returned metrics and both status enumerations. Given the tool's moderate complexity and single parameter, an agent has everything needed to call it and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema's own chain description is just the word "base", which conveys almost nothing, so the description carries the load by listing ethereum|base|arbitrum|optimism|polygon, noting comma-list support, the "all" value, and the default of ethereum. That is meaningfully more than the schema provides for a required single parameter.

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?

States a specific resource (chain finality and head health) with explicit scope (5 EVM chains) and enumerates exactly what is returned: latest/safe/finalized block numbers, timestamps, finality lag in blocks and seconds, finalityStatus and headStatus. This is clearly distinguishable from plain block-reading siblings like chain_block or chain_block_number.

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?

"Use it to decide when a deposit is irreversible or to detect a stalled chain or RPC" gives concrete decision contexts for selecting this tool. It stops short of naming when-not to use it or calling out a specific sibling alternative for simple block lookups.

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