Skip to main content
Glama

Get Explanatory Notes

get_explanatory_notes
Read-onlyIdempotent

Read the Explanatory Notes for a UK Act — plain-language commentary written by the government department responsible, explaining what a section is meant to do and why. NOT part of the law and not endorsed by Parliament — use for context on intent, never as the text of the law itself (use get_legislation_section for that). Pass section to get the commentary for just that section; omit it for an overview plus the notes' own table of contents. Not every Act has notes (Appropriation, Consolidated Fund, Finance and Consolidation Acts never get them) and not every section gets its own paragraph — some are grouped or unremarked. Notes are written for the Act AS ENACTED and are not updated for later amendments. Source: legislation.gov.uk (HTML only — there is no XML/data feed for notes).

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 for the Data Protection Act 2018.
sectionNoOptional: section number, e.g. "5", to get just that section's commentary. Omit for an overview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the read-only/idempotent/no-destruction profile, and the description goes well beyond them: notes are not part of the law, not endorsed by Parliament, written for the Act as enacted and never updated for amendments, HTML-only with no XML feed, and coverage may be grouped or absent per section. These are exactly the caveats an agent needs to avoid citing notes as law.

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?

Dense but front-loaded: the identity and the law-vs-commentary caveat come first, and every following clause (section behavior, availability exceptions, amendment staleness, source format) carries distinct decision-relevant information. It is longer than typical but has little filler.

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, the description still conveys the return shape (overview plus table of contents vs. single-section commentary) and the data-source limits. Given the read-only annotations, nothing an agent needs to call this correctly is missing.

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 description coverage is 100%, so baseline is 3, but the description adds real behavior: passing section returns commentary just for that section, while omitting it returns an overview plus the notes' own table of contents. That return-shaping difference is not stated in the schema and materially informs the call.

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 precise verb and resource ('Read the Explanatory Notes for a UK Act') and immediately defines what the resource is (plain-language government commentary on a section's intent). It explicitly distinguishes itself from the sibling get_legislation_section, so an agent can separate the two without opening either schema.

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?

Gives explicit when-to-use ('use for context on intent'), explicit when-not ('never as the text of the law itself'), and names the alternative tool for that case. It also documents availability conditions up front (Appropriation, Consolidated Fund, Finance and Consolidation Acts never get notes), which prevents futile calls.

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.