pt_contract_search
Pack: portugal-tenders · 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_contract_search for the schema, then POST the same URL with its arguments for the data.
Search PORTUGUESE public-procurement AWARDED CONTRACTS published through Portal BASE (base.gov.pt), run by IMPIC. Filter by free-text keyword (matched against the Portuguese contract title), buyer (adjudicante/contracting-authority) name substring, supplier (adjudicatário/awarded contractor) name substring, contract-amount range (EUR), and a publish-date range. Returns compact shaped contracts: contract id, title, buyer, supplier, amount (EUR), contract type(s), CPV, publish date, and the contract-signing date. Call pt_contract_detail with the returned idcontrato for the full record.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | no | Keyword(s), case-insensitive, matched against the Portuguese contract title, e.g. “pavimentação”, “formação”, “software”. |
buyer | string | no | Contracting-authority (buyer/adjudicante) name, partial match, Portuguese spelling, e.g. “Câmara Municipal do Porto”, “Ministério”. |
supplier | string | no | Awarded supplier (adjudicatário) name, partial match, e.g. “Mota-Engil”, “Altice”. |
amount_min | number,string | no | Minimum contract amount in EUR. |
amount_max | number,string | no | Maximum contract amount in EUR. |
date_from | string | no | Earliest PUBLISH date, YYYY-MM-DD. Defaults to ${DEFAULT_WINDOW_DAYS} days before date_to. |
date_to | string | no | Latest PUBLISH date, YYYY-MM-DD. Defaults to the newest date in the loaded window (see contract_window_to in any response). |
limit | number,string | no | Max contracts to return (default ${DEFAULT_LIMIT}, max ${MAX_LIMIT}). Newest-first. |
Example call
Arguments
{
"supplier": "MEO",
"date_from": "2025-12-01",
"date_to": "2026-02-28",
"limit": 5
}
curl
curl -X POST https://gateway.pipeworx.io/portugal-tenders/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pt_contract_search","arguments":{"supplier":"MEO","date_from":"2025-12-01","date_to":"2026-02-28","limit":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('pt_contract_search', {
"supplier": "MEO",
"date_from": "2025-12-01",
"date_to": "2026-02-28",
"limit": 5
});
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 portugal-tenders pack
{
"mcpServers": {
"portugal-tenders": {
"url": "https://gateway.pipeworx.io/portugal-tenders/mcp"
}
}
}
See Getting Started for client-specific install steps.