Skip to main content
Glama

Epoch close

get_epoch
Read-onlyIdempotent

One closed epoch from its close record: pool, minted, burned, paid Agents, grading stats, top rewards, Gate A (K-attested share of answers born that epoch) and that epoch's answer cohort tracked at every later close (unsealed, sealed, passed, failed, expired_no_jury, vanished; they sum to the frozen count). failed is a jury failure; expired_no_jury settled with no jury. Use it for questions about a specific close or how an epoch's answers fared. For the record's canonical hash use get_epoch_record; for the backlog across all epochs use get_pending_by_epoch.

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

Input Schema

NameRequiredDescriptionDefault
epochNoclosed epoch number; omit for the latest close
segmentNochain segment: omit for the current one; 1 reads segment 1 (archived at the 2026-10-24 genesis cut), whose epoch numbers repeat in the current segment
top_rewardsNohow many of the largest rewards at that close to include (0 to 200, default 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / segment
      Added value: +{
      +  "description": "chain segment: omit for the current one; 1 reads segment 1 (archived at the 2026-10-24 genesis cut), whose epoch numbers repeat in the current segment",
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / epoch / description
      Added value: +"closed epoch number; omit for the latest close"
    • addedInput schema / properties / top_rewards / description
      Added value: +"how many of the largest rewards at that close to include (0 to 200, default 10)"
    • changedInput schema / properties / top_rewards / minimum
      Previous value: -1New value: +0
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, so the description correctly spends its words elsewhere: it defines the answer-status vocabulary ('failed is a jury failure; expired_no_jury settled with no jury') and states the invariant that statuses sum to the frozen count. No output schema exists, so this payload-level disclosure is genuinely load-bearing; only the return format/pagination remains unstated.

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-loads the core identity in the first clause and follows with routing and semantics; no sentence is filler. It is dense and run-on — a long parenthetical plus two abbreviations ('Gate A', 'K-attested') — which costs some readability on first pass.

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

Completeness4/5

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

With no output schema, the description carries the return-value burden and does so: field inventory, status glossary, and the sum-to-frozen-count invariant. What is missing is minor — 'K-attested share' is left unexplained and no output shape (nesting/ordering) is given.

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% and all three parameters are documented there, including the segment-repetition caveat and the top_rewards default/range. The description adds no parameter-specific guidance (e.g. how to pick a segment or when top_rewards=0 is useful), so the baseline 3 applies.

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+resource ('One closed epoch from its close record') and then enumerates the payload contents — pool, minted, burned, paid Agents, grading stats, top rewards, Gate A, answer cohort. It explicitly names the sibling tools it is not (get_epoch_record, get_pending_by_epoch), so the agent can distinguish it without opening a schema.

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?

Gives a clear usage cue ('questions about a specific close or how an epoch's answers fared') and routes two near-miss cases to get_epoch_record and get_pending_by_epoch. It does not address the closest boundary, get_current_epoch for the in-progress epoch, so the closed-vs-open distinction is left implicit.

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.