Pt Law
liveLegalPortugal law and case law.
Tools
pt_dre_get_actLook up a Portuguese Decreto-Lei or Lei in the Diario da Republica from its type, number and PUBLICATION DATE (the date is required: the official ELI link scheme cannot resolve a number without it). R
No parameters required.
Try it
pt_court_searchSearch Portuguese higher-court decisions (acordaos) in the courts' Bases Juridico-Documentais (DGSI). Courts: stj (Supremo Tribunal de Justica), sta (Supremo Tribunal Administrativo), trl, trp, trc, t
No parameters required.
Try it
pt_court_get_decisionFetch 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,
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/pt-law/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/pt-law/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"pt_dre_get_act","arguments":{}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("pt_dre_get_act", {});// Or ask in plain English:
const answer = await px.ask("portugal law and case law");