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).

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. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds genuinely new behavioral context: the `total` field is the upstream corpus match count rather than response row count, and coverage reflects only what SCTS publishes. These are non-obvious traits an agent could not derive from structured fields.

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 key routing fact (SCOTS corpus, alternative is search_uk_caselaw) is front-loaded and each clause carries information, but the single dense paragraph runs long and the total-field explanation is buried mid-block rather than separated from the corpus caveat.

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 carries the return-shape burden and does so: title, court, judges, date, document_link, plus a note on the misleading `total`. Coverage limitations and the cross-corpus boundary are both stated, leaving nothing essential missing for correct invocation.

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 all six parameters are already documented in the schema with formats, ranges and the court enum list. The description reiterates the limit/total relationship but adds no syntax or semantics beyond what the schema provides, so the baseline of 3 is appropriate.

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 (search) plus resource (Scottish court and tribunal judgments from SCTS), enumerates the courts/chambers covered, and names the sibling it is not (search_uk_caselaw for England & Wales/UK material). An agent can route between this and search_uk_caselaw without opening either schema.

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 context (SCOTS law vs other UK corpora, pointing at search_uk_caselaw) and a clear next-step (fetch the PDF via get_scottish_judgment). It also warns about thin sheriff court/tribunal coverage, so the agent knows the results may be sparse for lower courts.

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.