Skip to main content
Glama

Search Scottish Judgments

search_scottish_judgments
Read-onlyIdempotent

Search Scottish court and tribunal judgments from the Scottish Courts and Tribunals Service (SCTS), published at scotcourts.gov.uk/judgments/ from 1999 onward: Court of Session, High Court of Justiciary, the National Personal Injury Court, Sheriff Appeal Courts, Sheriff Court civil/criminal, and the Scottish Upper Tribunal chambers. Returns title, court, judges, date and a document_link to the judgment PDF (fetch it with get_scottish_judgment). The total field is the true corpus match count (pagination.count.total upstream), it is not the number of rows in this response, which is capped by limit. Coverage is whatever SCTS itself has chosen to publish on this index, not every decision ever made, sheriff court and tribunal coverage in particular is thin next to the higher courts. This is SCOTS law; England & Wales, UK Supreme Court and UK tribunal decisions are a different corpus (search_uk_caselaw).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, 1-based (default 1).
courtNoCourt or Chamber to narrow to. Must match one of: Court of Session, High Court of Justiciary, National Personal Injury Court, Sheriff Appeal Court Civil, Sheriff Appeal Court Criminal, Sheriff Court Civil, Sheriff Court Criminal, Upper Tribunal - General Regulatory Chamber, Upper Tribunal - Health and Education Chamber, Upper Tribunal - Housing and Property Chamber, Upper Tribunal - Local Taxation Chamber, Upper Tribunal - Social Security Chamber, Upper Tribunal - Tax Chamber. An unrecognised value is rejected here rather than silently returning zero rows.
limitNoJudgments per page, 1-50 (default 20).
queryNoFree-text search over the judgment (e.g. a party name, a distinctive phrase, "negligence"). Optional, omit to browse by court/date alone.
to_dateNoLatest date of opinion/decision, YYYY-MM-DD.
from_dateNoEarliest date of opinion/decision, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Free-text search over the judgment (e.g. a party name, a distinctive phrase, \"negligence\"). Optional — omit to browse by court/date alone."New value: +"Free-text search over the judgment (e.g. a party name, a distinctive phrase, \"negligence\"). Optional, omit to browse by court/date alone."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, and the description goes well beyond them: it discloses the return fields (title, court, judges, date, document_link), explains that `limit` caps rows while `total` is the true upstream match count, and warns about publication bias in coverage. That `total` vs row-count distinction is exactly the kind of non-obvious behavior an agent would otherwise misread.

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?

Front-loaded with what is searched and where, then the return shape, then the important `total` caveat, then corpus boundaries. The enumerated court list and coverage caveat are long but each carries real routing or expectation-setting value. Slightly dense in the first sentence, but no 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 supplies the return fields, the meaning of the count field, the PDF hand-off path, and the corpus boundaries. For a six-parameter open-world search with a sibling fetch tool, nothing an agent needs in order to call it correctly or interpret results is missing.

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%, with the court enum fully enumerated and date formats specified in-schema, so the description does not need to restate them. It adds only marginal parameter-level meaning, notably that result rows are capped by `limit` and that the court list is validated upstream. Baseline 3 is appropriate when the schema carries the parameter burden.

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 and resource ('Search Scottish court and tribunal judgments'), names the source (SCTS, scotcourts.gov.uk/judgments/), the date range covered (1999 onward) and enumerates the courts included. It explicitly distinguishes itself from the sibling corpora ('search_uk_caselaw' for England & Wales, UK Supreme Court and UK tribunals) and points to 'get_scottish_judgment' for PDF retrieval.

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 routing: this tool for SCOTS law, search_uk_caselaw for England & Wales/UK-wide decisions, get_scottish_judgment for fetching the PDF. It also sets expectations about fit with a coverage caveat (SCTS-published index only, thin sheriff court and tribunal coverage), so an agent knows when results may be sparse rather than assuming the corpus is exhaustive.

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.