Skip to main content
Glama

Unichain block number

unichain_block
Read-only

Latest block number and block details on Unichain, or any block by decimal number: hash, timestamp, transaction count, gas used and limit, base fee in gwei and producer. Use for timestamps and confirmation counts; for current fees use unichain_gas. A block that does not exist yet returns 422, uncharged. Example: number=latest. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
numberNoBlock number, or 'latest' (default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds cost and error behavior the annotations do not cover: $0.01/call via x402 USDC or a card key, first 10 free, failed calls free, and the 422 response for a nonexistent block. It also flags that repeats are not free despite the read-only nature, which matters for an agent that might retry or poll.

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 the purpose and returned fields, then usage routing, then error and pricing notes; almost every sentence carries distinct information. It is dense and slightly crammed with commercial terms, but none of those sentences is redundant.

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?

There is no output schema, so the description carries the burden of describing return values, and it does so by naming the fields returned. Combined with block-number semantics, the 422 case, and the cost model, an agent has everything needed to invoke this correctly for a one-parameter read.

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

Parameters4/5

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

Schema description coverage is 100%, so the sole parameter is already documented, and the baseline would be 3. The description adds real meaning beyond the schema by specifying the number is decimal and giving a concrete call example (number=latest), which removes ambiguity about encoding.

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 verb and resource: latest block number and block details on Unichain, or any block by decimal number, and enumerates the returned fields (hash, timestamp, transaction count, gas used and limit, base fee in gwei, producer). It explicitly distinguishes itself from the sibling unichain_gas, so an agent can pick between them without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use guidance ('Use for timestamps and confirmation counts') and names the alternative for the other case ('for current fees use unichain_gas'). It also documents the edge case of requesting a block that does not exist yet (422, uncharged), which is the main way this call can go wrong.

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