Skip to main content
Glama

NOVAI block by height or hash

novai_get_block

Fetch a committed block by height or hash. Returns block height, hash, parent hash, round, state root, and transaction count, or null if not found.

Instructions

Fetch a single committed block by height or by hash. Provide exactly one of height or hash. Returns the block height, block hash, parent hash, round, state root, and transaction count, or null if no such block is known. Note: the endpoint retains a bounded recent window of blocks by height, so very old heights can return null even though they were valid blocks. Lookups by hash work for any block the node still indexes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
heightNoBlock height. Provide either height or hash, not both.
hashNoBlock hash, 64 hex characters. Provide either height or hash, not both.
Behavior3/5

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

No annotations provided, so the description carries the burden. It discloses that the endpoint retains a bounded recent window for height lookups and that hash lookups work for any indexed node. It does not explicitly state read-only nature or authentication needs, but the 'get' action implies no side effects. Adequate but not comprehensive beyond the given limitations.

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?

Three sentences with no wasted words. The most critical information (parameter rule, return contents, and caveats) is front-loaded and efficiently presented. Perfectly concise.

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?

Despite no output schema, the description fully enumerates return fields (height, hash, parent hash, round, state root, transaction count) and explains the null case. It covers both parameter modes and their limitations, leaving no ambiguity for a single block fetch tool.

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 description's contribution is limited. The description repeats the mutual exclusivity and adds the behavioral context about lookup limitations, providing some value beyond the schema. Baseline of 3 is appropriate as the schema already documents parameter meanings.

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 name and title clearly indicate a block fetch by height or hash. The description specifies a verb ('Fetch') and resource ('single committed block'), distinguishing it from sibling tools like 'get_transaction' by resource type. However, no explicit sibling differentiation is provided.

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?

The description states 'Provide exactly one of height or hash' and explains the limitation that very old heights return null, guiding when to use which parameter. It does not explicitly mention when not to use this tool or compare to alternatives, but the context is clear for the intended use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0x-devc/novai-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server