Skip to main content
Glama

get_block

Retrieve block details from the 0G blockchain by block number or hash. Select mainnet or testnet to query.

Instructions

Get block information by number or hash

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoNetwork to query (default: testnet)testnet
blockIdentifierYesBlock number or hash
Behavior2/5

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

With no annotations, the description carries full burden. It implies a read-only operation via 'Get' but does not disclose network default behavior, error handling for invalid identifiers, or whether the returned information includes transactions. The description adds minimal behavioral context beyond the basic operation.

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 a single sentence with no unnecessary words. It is concise and front-loads the core purpose effectively.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read tool with two parameters, the description is minimally adequate. It tells the user what the tool does and how to specify a block, but without an output schema, it does not describe the returned block information structure or fields. It also does not mention the network parameter even though it exists 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 adds no extra meaning beyond the schema; it simply repeats 'number or hash' already present in the blockIdentifier description. The network parameter is only documented in the schema, and the description does not clarify usage.

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 clearly states the verb 'Get' and the resource 'block information', and specifies the identifier types (number or hash), which distinguishes it from sibling tools that handle balances, transactions, or network info. However, it does not explicitly differentiate from alternatives or elaborate on what information is returned.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus siblings like get_transaction or get_network_info. There are no exclusions, prerequisites, or context about suitable use cases.

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/opencolin/0g-mcp-server'

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