Skip to main content
Glama
ezydubs
by ezydubs

list_versions

List point-in-time versions of a New Zealand legislation work by work_id, newest first, to locate a version_id for a specific date.

Instructions

List all point-in-time versions of a work (identified by work_id), newest first by default, each with its website URL; the newest carries is_latest_version: true. Work-level metadata (title, type, status, agencies) is reported once at the top rather than repeated per version. Fetches every page automatically (the API serves at most 100 per page); pass page (and optionally per_page) to fetch a single page instead. Use this to find a version_id for a specific date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoFetch only this page of results. Omit to fetch every page and return all versions.
sortNoOrder versions by date, ascending or descending (default desc = newest first).
work_idYesThe work_id from a search result (e.g. "act_public_2020_31").
per_pageNoPage size (default 100, the API maximum).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/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, and it does well: it discloses automatic pagination, the 100-per-page API limit, default sort order, the is_latest_version flag, and de-duplicated work-level metadata. This goes well beyond a bare 'list versions' statement.

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?

Four sentences, each earning its place: purpose, return shape, pagination behavior, and intended use case. The most important capability is front-loaded before implementation details.

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?

With no output schema and no annotations, the description still tells the agent what results look like, how pagination behaves, and when to use the tool. Nothing essential for correct invocation or interpretation is missing.

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 four parameters in detail. The description reinforces the page/per_page behavior and the work_id source, but adds little beyond what the schema already states.

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 ('List') and resource ('point-in-time versions of a work'), with clear scoping by work_id. It distinguishes itself from siblings by describing what it returns (versions with URLs and is_latest_version flag) versus details, text, or sections.

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?

Explicitly says 'Use this to find a version_id for a specific date,' which gives a concrete use case. It also explains pagination behavior clearly, but does not name alternative tools or explicitly state when not to use it.

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