Skip to main content
Glama

Query Leadership Schedule

cardano_query_leadership_schedule
Read-onlyIdempotent

Calculate a stake pool's leadership schedule for an epoch from VRF key, epoch nonce, relative stake, and slot parameters, returning elected block-production slots.

Instructions

Calculate the leadership schedule for a stake pool operator.

Args:

  • vrf_signing_key_file (string): Path to VRF signing key file

  • epoch_nonce (string): 64-character hex epoch nonce

  • epoch_start_slot (number): Slot number at the start of the epoch

  • epoch_length (number, optional): Epoch length in slots (default: 432000)

  • relative_stake (number): Pool's relative stake as a decimal (e.g., 0.001)

  • active_slot_coeff (number, optional): Active slot coefficient (default: 0.05)

Returns: List of slots where the pool is elected to produce blocks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
epoch_nonceYes64-character hex epoch nonce
epoch_lengthNoEpoch length in slots
relative_stakeYesPool's relative stake as a decimal
epoch_start_slotYesSlot number at the start of the epoch
active_slot_coeffNoActive slot coefficient
vrf_signing_key_fileYesPath to VRF signing key file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare the full safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's main added value is the return format ('List of slots where the pool is elected to produce blocks'), which is useful since no output schema exists. It does not mention that the VRF signing key file is sensitive local material or note any constraints on the computation.

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 one-sentence purpose before the conventional Args/Returns docstring sections. Well organized and appropriately sized, though the Args block duplicates schema content rather than adding to it.

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 'Returns' line is necessary and it is supplied clearly. For a deterministic computation tool with fully documented params and annotation-covered safety, the description is complete; only edge cases (e.g., invalid key path or malformed nonce) go unmentioned.

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 schema already documents all six parameters with types, defaults, and descriptions; baseline is 3. The description's Args block largely restates the schema, adding only a scale example for relative_stake ('e.g., 0.001'), which is a small value-add but not enough to exceed the baseline.

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?

States a specific verb and resource: 'Calculate the leadership schedule for a stake pool operator.' This is unambiguous about what the tool produces. It doesn't explicitly differentiate from siblings, though no sibling tool computes a block production schedule, so the gap is minor.

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

Usage Guidelines3/5

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

The phrase 'for a stake pool operator' implies the audience and use case (an SPO planning block production) but never states when to call this versus other query tools or what prerequisites exist. Usage is only inferable from context, not spelled out.

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