Skip to main content
Glama

base_block

Fetch a block on Base by decimal number, or the latest one when omitted: hash, timestamp, transaction count, gas used and limit, base fee in gwei and producer. Use for timestamps and confirmation counts; for current fees use base_gas. A block that does not exist yet returns 404, uncharged. Side effects: none on any outside system (it only reads or computes), but each successful call costs $0.001 in USDC on Base or another supported network, paid with x402, or the same amount in prepaid card credits when the request carries an API key from /credits. That payment is why the tool is not marked read-only or idempotent: repeating a call charges again. Failed calls are never charged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numberNoBlock number, or 'latest' (default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Unusually strong: it explains WHY the unusual annotations (readOnlyHint=false, idempotentHint=false) are set – repeated calls cost $0.001 via x402/credits, so retries are non-idempotent. It also discloses 404-unpaid and never-charge-on-failure semantics. This is exactly the kind of context annotations cannot convey; no output schema exists, so return values are covered by the description's field list.

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?

Purpose and the base_gas alternative are front-loaded; the payment mechanics run long but each clause explains a real behavioral trait (pricing, charge-on-repeat, no charge on failure). Slightly dense, but nothing extraneous enough to cut.

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?

Given a single optional parameter, no output schema, and annotations that invert the usual safety hints, the description covers return fields, error behavior, cost, and payment rails. An agent has everything needed to call it correctly and to reason about retry cost.

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 coverage is 100%, so the baseline is 3, but the description adds the 'decimal number' format hint and clarifies omission yields the latest block, supplementing the schema's terse 'Block number, or latest (default)'.

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 (fetch) and resource (a block on Base) with the exact returned fields enumerated, and explicitly differentiates itself from the sibling base_gas. An agent can distinguish it from base_receipt/base_gas without opening any 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 positive usage guidance ('use for timestamps and confirmation counts') and names the alternative for the adjacent need ('for current fees use base_gas'). It also covers the error case (nonexistent block returns 404, uncharged), so the agent knows how to react too.

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