Skip to main content
Glama

Get Legislation Text

get_legislation_text
Read-onlyIdempotent

Read the text of a whole UK Act or statutory instrument — the body of the law rather than a catalogue entry. Use for short instruments and for reading an Act end to end; for one provision prefer get_legislation_section, which returns just that section. Large Acts run to megabytes, so this reads a bounded amount and says plainly when it stopped short rather than returning a silently clipped statute. UK law exists in VERSIONS that differ in substance: pass version to choose "current" (default — the law as amended and in force today), "enacted" (the original text as passed), or a date YYYY-MM-DD for the text as it stood on that day. Every response states which version it served. Source: legislation.gov.uk, the official database.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesDocument type, e.g. "ukpga". One of: ukpga (UK Public General Acts), uksi (UK Statutory Instruments), asp (Scottish Parliament Acts), anaw/asc (Wales), nia (Northern Ireland), ukla (UK Local Acts).
yearYesYear, e.g. 2018.
numberYesItem number within that year/type, e.g. 12.
versionNoWhich version of the text: "current" (default — the law as amended and in force today), "enacted" (the original text as passed), or a date YYYY-MM-DD for the text as it stood on that day.

TDQS

A4.9/5.0
Behavior5/5

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

Beyond annotations, the description discloses that it reads a bounded amount and 'says plainly when it stopped short rather than returning a silently clipped statute', and that every response states which version it served. These are valuable behavioral details not present in annotations.

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 several sentences long, but every sentence contributes information: purpose, usage guidance, bounded-read behavior, version semantics, response guarantee, and source. It is front-loaded with the core purpose and wastes no words.

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?

Even without an output schema, the description covers what the tool returns (text, bounded amount, version statement) and its source (legislation.gov.uk). For a read-only retrieval tool with rich annotations and full parameter documentation, this is sufficiently complete.

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%, so baseline is 3. The description adds context that 'UK law exists in VERSIONS that differ in substance', reinforcing why the version parameter matters. While most parameter details are already in the schema, this contextual note elevates the score slightly.

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 verb and resource: 'Read the text of a whole UK Act or statutory instrument'. It also explicitly distinguishes itself from siblings by noting it returns the body of the law rather than a catalogue entry, and contrasts with get_legislation_section which returns just a section.

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

Usage Guidelines5/5

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

Provides explicit usage guidance: 'Use for short instruments and for reading an Act end to end; for one provision prefer get_legislation_section, which returns just that section.' It also mentions the bounded reading for large Acts, implying a caveat for very large statutes, and names the alternative tool directly.

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.

TDQS

A3.8/5.0
Disambiguation2/5

The legislation-specific tools are distinct, but the server bundles dozens of unrelated Pipeworx/prediction-market/AI-visibility tools, making the set's purpose unclear. Several near-identical pairs exist: ask_pipeworx and ask_pipeworx_beta are explicitly identical right now, and ai_visibility_check overlaps heavily with scan_competitor_ai_presence. An agent would struggle to know which tool is the right entry point.

Naming Consistency2/5

Naming is mixed: snake_case dominates, but camelCase appears in ask_pipeworx, ask_pipeworx_grounded, generate_llms_txt, and pipeworx_feedback. There is also inconsistency in verb style — get_/search_/list_ coexist with bare verbs like remember, recall, forget, and subscribe. The legislation tools themselves follow a clean get_legislation* pattern, but the wider set does not.

Tool Count2/5

35 tools is too many for a server named 'Legislation Uk' where only 4 tools actually relate to UK legislation. The remaining 31 tools appear to belong to a broader data/prediction-market platform, which suggests severe scope creep or a mislabeled assembly. This bloats the surface area and makes the server harder for an agent to navigate.

Completeness4/5

For the stated UK-legislation purpose, the core read-and-search workflow is covered: search_legislation, get_legislation, get_legislation_section, and get_legislation_text together support discovery, metadata, targeted section lookup, and full-text retrieval with version selection. Obvious gaps remain, such as full-text content search and amendment/change history, but agents can complete the primary task of finding and reading legislation. The unrelated tools neither help nor complete this domain.