@pipeworx/pt-law

Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/pt-law’s. Install: one-click buttons

Connect to just the @pipeworx/pt-law pack

https://gateway.pipeworx.io/pt-law/mcp — only @pipeworx/pt-law’s own tools, nothing else in the catalog.

No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.

Tools: 3

Portuguese legislation (Decreto-Lei and Lei, from the Diario da Republica) and higher-court decisions (STJ, STA and the five Tribunais da Relacao).

Tools

  • pt_dre_get_act(type, number, year, publication_date) — resolves a Decreto-Lei or Lei to its Diario da Republica page link. The publication date is required. A wrong number or date returns an explicit found: false.
  • pt_court_search(query, court?, limit?, start?) — free-text search of court decisions; returns session date, case number, relator, descriptors and a decision link per hit. Empty results carry a reason.
  • pt_court_get_decision(url) — one decision’s labelled fields and, where published, the full text.

Auth

Keyless.

Data sources

  • INCM, Diario da Republica (legislation, European Legislation Identifier resolver).
  • Portuguese courts, Bases Juridico-Documentais (DGSI): STJ, STA, TRL, TRP, TRC, TRE, TRG.

Notes

  • The Diario da Republica has no number-only lookup that is open to us: the identifier scheme needs the publication date, so the tool asks for it. Very old acts may not resolve.
  • Only Decreto-Lei and Lei are offered, the two act types confirmed against the live resolver.
  • The decision database is an old Lotus Domino site. Search pages come back as UTF-8 and decision pages as ISO-8859-1; the pack detects which. Session dates are MM/DD/YYYY upstream and are returned as ISO. Search returns relevance order, not newest first. Full text is online only where the decision’s “Texto Integral” field is S.

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
  • pt_court_search — Search 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
  • 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,

Tools

  • 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,
  • pt_court_search — Search 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
  • 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

Regenerated from source · build December 4, 2026