Skip to main content
Glama
legislation.gov.uk MCP Server

legislation.gov.uk MCP Server

by legislation

search_effects

Read-onlyIdempotent

Find legislative effects such as amendments, repeals, and insertions by source and/or target legislation. Discover what an Act changed or what changed a specific Act.

Instructions

Search for legislative effects (amendments, repeals, insertions, etc.) by source and/or target legislation.

Use source parameters to find effects made BY a piece of legislation (e.g. "what did Act X amend?"). Use target parameters to find effects made TO a piece of legislation (e.g. "what amends Act Y?"). You can combine both to find specific effects between two pieces of legislation.

For step-by-step examples, see cookbook://search-effects. For legislation type codes, see types://guide.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_effects"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number for paginated results (default: 1)
appliedNoFilter by applied status: true for effects already applied to the revised text, false for unapplied effects
sourceTypeNoType of the affecting (source) legislation (e.g., ukpga, uksi)
sourceYearNoYear of the affecting (source) legislation
targetTypeNoType of the affected (target) legislation (e.g., ukpga, uksi)
targetYearNoYear of the affected (target) legislation
sourceNumberNoNumber of the affecting (source) legislation
targetNumberNoNumber of the affected (target) legislation

Output Schema

NameRequiredDescriptionDefault
metaYesPagination metadata
effectsYesList of legislative effects

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered elsewhere. The description adds directional scoping context but does not address notable behavior gaps an agent would care about — notably what happens when no parameters are supplied (all fields are optional, so does it return every effect?) and how results are bounded. With annotations carrying the safety burden, 3 is the right level.

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?

Purpose is front-loaded in the first clause, followed by short, scannable usage sentences and two pointer references. No sentence is redundant against the schema or the annotations.

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

Completeness4/5

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

For an 8-parameter search tool with a declared output schema, the description covers what the tool returns conceptually and how to scope it, so return-value explanation is unnecessary. The remaining gap is the all-optional-parameter case, which an agent must guess at when calling with no filters.

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 source/target type, year and number are already documented, giving a baseline of 3. The description goes beyond that by explaining the semantic relationship between the source and target parameter families (affecting vs affected) and by showing that they compose to answer bidirectional questions, which the flat schema does not convey.

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+resource ('Search for legislative effects') and immediately enumerates the resource domain (amendments, repeals, insertions), then defines the two axes of scoping (source vs target). This is enough for an agent to distinguish it from search_legislation or get_legislation, which return legislation itself rather than the relationships between it.

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?

Gives explicit direction semantics with worked intent examples: source = effects made BY ('what did Act X amend?'), target = effects made TO ('what amends Act Y?'), and states both can be combined. It also routes to supplementary resources (cookbook://search-effects, types://guide). It stops short of exclusions or of naming a sibling tool it should be preferred over, so not a full 5.

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