Skip to main content
Glama

Search changes

search_changes
Read-onlyIdempotent

Search the record of changes (each commit message: the law, its dates, what it did) rather than the text of the law. For example "temporary", "COVID", "Bundesrat". With start and end, the changes in force from start to end, both days included.

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": "search_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoThe latest in-force date to include, YYYY-MM-DD or "today". Defaults to no end, so changes not yet in force are included.
kindNolaws (default; "law" is read the same): law only. judgments: court decisions (case law) only. all: both. A jurisdiction that names case law (a path ending in /caselaw) reads it too.
queryYesWords to look for in the change notes, as plain text; upper and lower case match alike.
startNoThe earliest in-force date to include, YYYY-MM-DD. Defaults to the start of the record.
offsetNoRows to skip: the next_offset the answer before gave in "page" (default 0).
max_resultsNoAt most this many (default 30, at most 200).
jurisdictionNoOptional jurisdiction: a country by its name in English or its own language ("germany", "Deutschland", "UK") or its ISO code ("de"), or a path prefix, for example "germany", "united-states/federal" or "united-kingdom/uk/legislation/uksi".

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / jurisdiction / description
      Previous value: -"Optional jurisdiction prefix, for example \"germany\", \"united-states/federal\" or \"united-kingdom/uk/legislation/uksi\"."New value: +"Optional jurisdiction: a country by its name in English or its own language (\"germany\", \"Deutschland\", \"UK\") or its ISO code (\"de\"), or a path prefix, for example \"germany\", \"united-states/federal\" or \"united-kingdom/uk/legislation/uksi\"."
  2. Changed7 schema fields changed
    • changedInput schema / properties / end / description
      Previous value: -"An in-force date, YYYY-MM-DD, or \"today\". Defaults to today."New value: +"The latest in-force date to include, YYYY-MM-DD or \"today\". Defaults to no end, so changes not yet in force are included."
    • changedInput schema / properties / kind / description
      Previous value: -"law (default): bodies of law only. judgments: court decisions (case law) only. Case law is also read when the jurisdiction names it (a path ending in /caselaw)."New value: +"laws (default; \"law\" is read the same): law only. judgments: court decisions (case law) only. all: both. A jurisdiction that names case law (a path ending in /caselaw) reads it too."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "law",
      -  "judgments"
      -]New value: +[
      +  "laws",
      +  "judgments",
      +  "all",
      +  "law"
      +]
    • changedInput schema / properties / max_results / description
      Previous value: -"At most this many (default 30)."New value: +"At most this many (default 30, at most 200)."
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Rows to skip: the next_offset the answer before gave in \"page\" (default 0).",
      +  "type": "integer"
      +}
    • addedInput schema / properties / query / description
      Added value: +"Words to look for in the change notes, as plain text; upper and lower case match alike."
    • changedInput schema / properties / start / description
      Previous value: -"An in-force date, YYYY-MM-DD, or \"today\". Defaults to today."New value: +"The earliest in-force date to include, YYYY-MM-DD. Defaults to the start of the record."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so safety needs no restating. The description adds genuine behavioral context the annotations cannot: what corpus is searched (commit messages, not law text) and that start/end are interpreted as in-force dates with both endpoints inclusive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the key contrast are front-loaded, and there is little wasted material. However, the final sentence ("With start and end, the changes in force from start to end, both days included") is telegraphic and grammatically broken, costing clarity for a small gain.

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 a seven-parameter search with a full schema, rich annotations and an output schema, the description covers purpose, corpus, and date-range semantics adequately. It leaves pagination (offset/max_results) and jurisdiction scoping entirely to the schema, which is acceptable given the output schema documents the paging fields.

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 coverage is 100%, so the schema already documents all seven parameters in detail. The description contributes only the inclusive-range reading of start/end ("both days included"), which adds modest meaning on top of the schema's "earliest/latest in-force date to include". Baseline 3 is appropriate.

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?

States a specific verb and resource — searching the record of changes (commit messages with law, dates, effect) — and explicitly contrasts it with searching the text of the law, which separates it from search_law. It stops short of naming the sibling, but the distinction is unambiguous.

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 a clear selection rule: use this for change notes rather than law text, illustrated with example query terms ("temporary", "COVID", "Bundesrat"). No explicit exclusions or named alternatives beyond that contrast, so it is clear context without 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.