Skip to main content
Glama

Get Recent UK Legislation

ukleg.legislation.recent
Read-onlyIdempotent

Get the most recently published or updated pieces of UK legislation. Returns recently enacted Acts, Statutory Instruments, and other legislation with title, type, year, chapter number, publication date, and brief description. Filter by legislation category: use primary for Acts of Parliament, secondary for Statutory Instruments, or specific type codes (ukpga, uksi, asp, asc, nia). Useful for tracking new laws, regulatory changes, and parliamentary activity. Data source: legislation.gov.uk — The National Archives, Open Government Licence v3.0, no auth required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoFilter by legislation category. Use primary for all primary legislation (Acts), secondary for all Statutory Instruments, or a specific code like ukpga, uksi, asp. Omit or use any for all types.
limitNoNumber of recent legislation items to return (1–20, default 10).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the description only needs to add context. It adds the data source, licence, and 'no auth required', which is genuinely useful. It does not contradict annotations.

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?

The description is well-structured: purpose first, then output fields, filtering guidance, use case, and source/licence. It is about 100 words and every sentence adds information, with no redundancy. It is not extremely tight but earns its length.

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?

This is a simple, read-only list tool with optional parameters and an output schema. The description covers the key context (data source, licensing, use case) and, given the low complexity plus existing annotations and output schema, nothing critical is missing. It does not mention pagination or ordering, but that is not essential here.

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 each parameter is already documented in the schema. The description adds a few extra type code examples (asc, nia) and echoes primary/secondary meanings already present in the schema, but no significant new meaning. Baseline 3 is appropriate.

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 description states a specific verb and resource ('Get the most recently published or updated pieces of UK legislation') and lists return contents, making the purpose clear. However, it does not explicitly distinguish itself from the sibling ukleg.legislation.search — the distinction is left to the name 'recent' rather than described in text.

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?

The description gives clear usage context: 'Useful for tracking new laws, regulatory changes, and parliamentary activity.' This tells an agent when to use it, but it does not explicitly say when not to use it or name alternatives like search or details, so it falls short of a full 5.

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.