pt_court_get_decision
Pack: pt-law · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/pt_court_get_decision for the schema, then POST the same URL with its arguments for the data.
Fetch one court decision from the Bases Juridico-Documentais (DGSI) by the decision link returned from pt_court_search. Returns its labelled fields (process, relator, descriptors, date, vote, summary, …) and any inline text. Whether the full judgment is online is stated by the “Texto Integral” field; when it is N only the summary is published.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | Decision link from pt_court_search (the url field of a search hit) |
max_chars | number | no | Cap on returned inline text, default 20000 |
Example call
Arguments
{
"url": "https://www.dgsi.pt/jstj.nsf/954f0ce6ad9dd8b980256b5f003fa814/0e2f86d444fed3b1802568fc003a4545"
}
curl
curl -X POST https://gateway.pipeworx.io/pt-law/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pt_court_get_decision","arguments":{"url":"https://www.dgsi.pt/jstj.nsf/954f0ce6ad9dd8b980256b5f003fa814/0e2f86d444fed3b1802568fc003a4545"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('pt_court_get_decision', {
"url": "https://www.dgsi.pt/jstj.nsf/954f0ce6ad9dd8b980256b5f003fa814/0e2f86d444fed3b1802568fc003a4545"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
url | string | |
process | string | |
relator | string | |
decision_date_mdy | string | |
full_text_online | string | |
fields | object | |
full_text | null | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"url": {
"type": "string"
},
"process": {
"type": "string"
},
"relator": {
"type": "string"
},
"decision_date_mdy": {
"type": "string"
},
"full_text_online": {
"type": "string"
},
"fields": {
"type": "object",
"properties": {
"Processo": {
"type": "string"
},
"Nº Convencional": {
"type": "string"
},
"Relator": {
"type": "string"
},
"Descritores": {
"type": "string"
},
"Nº do Documento": {
"type": "string"
},
"Data do Acordão": {
"type": "string"
},
"Votação": {
"type": "string"
},
"Texto Integral": {
"type": "string"
},
"Privacidade": {
"type": "string"
},
"Meio Processual": {
"type": "string"
},
"Decisão": {
"type": "string"
},
"Área Temática": {
"type": "string"
},
"Legislação Nacional": {
"type": "string"
},
"Sumário": {
"type": "string"
}
},
"additionalProperties": true
},
"full_text": {
"type": "null"
},
"source": {
"type": "string"
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the pt-law pack
{
"mcpServers": {
"pt-law": {
"url": "https://gateway.pipeworx.io/pt-law/mcp"
}
}
}
See Getting Started for client-specific install steps.