get_scottish_judgment
Pack: scotcourts · Endpoint: https://gateway.pipeworx.io/scotcourts/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_scottish_judgment for the schema, then POST the same URL with its arguments for the data.
Resolve a Scottish Courts judgment PDF and confirm it is actually reachable. Pass document_link exactly as returned by search_scottish_judgments (a relative /media/… path or absolute URL), or a case name / citation to look one up first. SCTS judgments are PDF-only — this tool returns the verified PDF URL, HTTP status, content-type and size, and text_extracted: false; it does NOT extract or return the judgment text (no PDF-text pipeline exists in this catalog). Fetch pdf_url to read the actual judgment.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
document_link | string | no | The documentLink / document_link value from search_scottish_judgments, e.g. “/media/id5nvoe1/court-of-session-judgement-appeal-by-sca-against-mma-27-october-2020.pdf”. |
query | string | no | Alternative to document_link: a case name or distinctive phrase to look up the judgment by, if you do not already have its document_link. |
Example call
Arguments
{
"document_link": "/media/id5nvoe1/court-of-session-judgement-appeal-by-sca-against-mma-27-october-2020.pdf"
}
curl
curl -X POST https://gateway.pipeworx.io/scotcourts/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_scottish_judgment","arguments":{"document_link":"/media/id5nvoe1/court-of-session-judgement-appeal-by-sca-against-mma-27-october-2020.pdf"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_scottish_judgment', {
"document_link": "/media/id5nvoe1/court-of-session-judgement-appeal-by-sca-against-mma-27-october-2020.pdf"
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"scotcourts": {
"url": "https://gateway.pipeworx.io/scotcourts/mcp"
}
}
}
See Getting Started for client-specific install steps.