Pt Law

liveLegal

Portugal law and case law.

3tools
0msauth
free tier50 calls/day

Tools

pt_dre_get_act

Look 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_get_decision

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,

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.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/pt-law/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
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.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("pt_dre_get_act", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("portugal law and case law");