Skip to main content
Glama

x402_cosmos-lcd_get_v1_chain_blocks_height

Retrieve a specific Cosmos chain block by height via the LCD REST API, enabling height-based block lookup and chain data inspection.

Instructions

cosmos-lcd — Cosmos LCD REST API via rest.cosmos.directory: latest/recent blocks, node info, denom metadata and governance proposals for many Cosmos chains. [GET /v1/{chain}/blocks/{height}] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/osmosis/blocks/76268505

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": "x402_cosmos-lcd_get_v1_chain_blocks_height"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does disclose meaningful behavior beyond the schema — that this is a paid call at $0.005 USDC settled on specific eip155 chains (8453, 137, 42161, 480) — which is valuable. But it says nothing about what happens for unknown/out-of-range heights, whether the block must be finalized, or error/payment-failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Effects and the important identity (path template, example) are present, but the front-loaded resource list is bulk that serves the API family rather than this tool. The single run-on sentence mixes scope, price, and example without clear separation.

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?

Given no annotations, no output schema, and a schema that omits the two path parameters, the description does adequately convey the path shape, an example, and cost. It is still incomplete on return shape (what a block object contains) and on behavior for edge-case heights, which matters for a paid call.

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% for the four generic body/query/restart/operationId params, but the schema omits the path parameters entirely; the description's {chain}/{height} template and the osmosis/76268505 example supply that missing meaning. A small deduction for not clarifying height format (numeric vs. 'latest') or chain identifier form.

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 bracketed path template [GET /v1/{chain}/blocks/{height}] plus the concrete example /v1/osmosis/blocks/76268505 make the verb+resource specific: fetch a block at a given height for a named chain. The prose intro, however, describes the whole cosmos-lcd API surface (blocks, node info, denoms, proposals) rather than this endpoint, so part of the description points away from the tool's actual purpose.

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?

Nothing states when to use this height-specific endpoint versus the sibling blocks_latest endpoint, and no prerequisites or selection criteria are given. Enumerating other API resources is not usage guidance for this tool.

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

Deploy Server

Other Tools