Skip to main content
Glama

List legislation reference vocabulary

uklaw_list_reference
Read-onlyIdempotent

Decode the vocabulary the other uklaw_* tools take and return: legislation type codes (ukpga, uksi, eur, …) with their labels, categories and enacted keywords; type groups; extents; version keywords; document status; annotation letters (F, C, I, M, E, P, X); effect record fields; provision path forms and shorthand; accepted citation formats; Publication Log vocabulary and read modes; data coverage; and the attribution lines. Offline — no request to legislation.gov.uk.

Input Schema

NameRequiredDescriptionDefault
topicYesWhich table to return: types, type_groups, extents, versions, document_status, annotation_types, effects, provision_paths, citation_formats, publication_log, coverage, or attribution.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
topicNoThe topic returned.
entriesNoReference entries for the topic.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavioral context by confirming the operation is offline with no network request to legislation.gov.uk, reinforcing the openWorld hint. It does not discuss output size or caching, but with an output schema present that omission is minor.

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 content is front-loaded with the core purpose ('decode the vocabulary') and then a dense, information-bearing enumeration of covered tables. It is a single long sentence, but every clause maps to a distinct table the caller can request, so little is wasted.

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 one enum parameter, full schema coverage, an output schema, and clear read-only/idempotent/offline annotations, the description covers everything an agent needs. It comprehensively enumerates the returnable tables and confirms the offline nature, leaving no material gap for a reference-lookup tool.

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 single enum parameter is fully documented in the schema, which sets a baseline of 3. The description earns above baseline by expanding each enum value into concrete content, e.g. naming the annotation letters (F, C, I, M, E, P, X) and clarifying that 'types' returns labels, categories, and enacted keywords.

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 (decode/list) and resource (the reference vocabulary that other uklaw_* tools consume and produce), and enumerates exactly which tables it exposes. An agent can immediately tell this apart from siblings like uk law_search_legislation or uklaw_get_document, which perform lookups rather than return the shared vocabulary.

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 framing 'Decode the vocabulary the other uklaw_* tools take and return' strongly implies the usage context: consult this before or alongside the other tools to interpret codes. The 'Offline — no request to legislation.gov.uk' note tells the agent it is a local reference call. However, it never states explicit when-not conditions or names a sibling alternative, so it stops short of full routing guidance.

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.