pt_dre_get_act
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_dre_get_act for the schema, then POST the same URL with its arguments for the data.
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). Returns the act’s Diario da Republica page link and the ELI link, or an explicit found:false when the number/date pair does not match a published act (a wrong number, wrong date, or an act too old to carry an ELI). Title is built from your inputs, not read from the page.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
type | string | yes | Act type: decreto-lei or lei |
number | string | yes | Act number as published, e.g. “10” or “82-E” |
year | number | yes | Year of the act, e.g. 2024 |
publication_date | string | yes | Date published in the Diario da Republica, YYYY-MM-DD (e.g. 2024-01-08) |
Example call
Arguments
{
"type": "decreto-lei",
"number": "10",
"year": 2024,
"publication_date": "2024-01-08"
}
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_dre_get_act","arguments":{"type":"decreto-lei","number":"10","year":2024,"publication_date":"2024-01-08"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('pt_dre_get_act', {
"type": "decreto-lei",
"number": "10",
"year": 2024,
"publication_date": "2024-01-08"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
title | string | |
title_note | string | |
publication_date | string | |
dr_url | string | |
dr_document_id | string | |
eli_url | string | |
source | string |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"title": {
"type": "string"
},
"title_note": {
"type": "string"
},
"publication_date": {
"type": "string"
},
"dr_url": {
"type": "string"
},
"dr_document_id": {
"type": "string"
},
"eli_url": {
"type": "string"
},
"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.