Skip to main content
Glama
Legal Knowledge MCP Server

Legal Knowledge MCP Server

by Angioz

legal_search_uk

Search UK legislation, including Acts, Statutory Instruments, and regulations via legislation.gov.uk to find official legal sources by query, type, and year.

Instructions

Search UK legislation including Acts, Statutory Instruments, and regulations via legislation.gov.uk.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "legal_search_uk"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoType of legislation (ukpga=UK Public General Act, uksi=Statutory Instrument, asp=Act of Scottish Parliament)
yearNoYear of legislation
limitNoMaximum results to return (default: 10)
queryYesSearch terms for UK legislation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the behavioral burden. 'Search' establishes a read-only operation and legislation.gov.uk identifies the upstream source, but nothing is said about authentication, rate limits, pagination, sorting, or whether results are full text or metadata only. That is a meaningful gap for a tool with zero annotation coverage, though the low-risk read nature keeps it from being worse.

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?

A single front-loaded sentence with no filler; the jurisdiction and covered document types appear immediately. Every clause earns its place and nothing is repeated from structured fields.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter search tool with full schema coverage, the scope statement is adequate. However, with no output schema, the description could reasonably say what a result looks like or whether pagination exists; that omission leaves it minimally viable rather than complete.

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 all four parameters, including the type enum values and the default limit, are already documented in the schema. The description adds no syntax, format, or interaction detail beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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 gives a specific verb ('Search') and resource ('UK legislation'), and enumerates the covered materials: Acts, Statutory Instruments, and regulations. Naming legislation.gov.uk pins the jurisdiction, which implicitly separates it from sibling tools like legal_search_france or legal_search_us_code. It stops short of explicitly stating the boundary, so a 4 rather than a 5.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of when not to use it, and no named alternative such as legal_query_eurlex for EU material. The UK scope implies its domain, but the agent must infer routing from the jurisdiction alone. No exclusions or prerequisites are stated.

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