Skip to main content
Glama

gb_recent_legislation

Read-onlyIdempotent

Find UK legislation published since a specific date, sorted newest first. Filter by document type to narrow results.

Instructions

UK legislation published since since_iso (ISO 8601 date), newest-first.

Maps to the Atom search feed sorted/filtered by publication year, optionally scoped to one doc_type. legislation.gov.uk's public search feed does not support a generic dateFrom filter across all types, so this tool filters the requested year's feed by the published date client-side.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNomax items to return (1..100).
doc_typeNorestrict to one UK document-type code (e.g. ``"ukpga"``, ``"uksi"``).
since_isoYesa date in ISO 8601 (e.g. ``"2026-01-01"``). Only the year is used to select the feed to scan; items are then filtered to on/after this date.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint and destructiveHint=false, but the description adds a valuable behavioral trait: it explains that the public feed does not support a generic dateFrom filter, so the tool fetches the yearly feed and filters client-side. This discloses a limitation and implementation nuance that an agent should know, going beyond the structured hints.

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?

The description is three sentences, front-loaded with the main verb and resource. It includes necessary implementation details without fluff. Every sentence adds value: purpose, mapping to feed, and filtering rationale.

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 an output schema present and robust annotations, the description completes the picture by explaining the feed source, the client-side filtering rationale, and the optional scoping. This is adequate for an agent to select and invoke the tool correctly, including understanding the year-based limitation.

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% and the description adds meaningful semantics beyond the schema. It clarifies that 'since_iso' uses only the year to choose the feed and then filters to on/after the date, and that doc_type scopes the feed. This extra context helps the agent understand parameter behavior beyond the raw schema descriptions.

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?

The description opens with a specific action and resource: 'UK legislation published since since_iso (ISO 8601 date), newest-first.' This clearly identifies the tool as a date-filtered list of legislation, distinguishing it from siblings like gb_search which searches generally. The optional doc_type scoping further refines the purpose.

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 provides clear context: this is for retrieving legislation by publication date, optionally restricted to a document type. It explains the underlying feed mechanism and client-side filtering, but it does not explicitly name alternatives or state when not to use it. This is strong context without explicit exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matematicsolutions/gb-eli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server