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

NameTypeRequiredDescription
querystringnoKeyword(s), case-insensitive, matched against the Portuguese contract title, e.g. “pavimentação”, “formação”, “software”.
buyerstringnoContracting-authority (buyer/adjudicante) name, partial match, Portuguese spelling, e.g. “Câmara Municipal do Porto”, “Ministério”.
supplierstringnoAwarded supplier (adjudicatário) name, partial match, e.g. “Mota-Engil”, “Altice”.
amount_minnumber,stringnoMinimum contract amount in EUR.
amount_maxnumber,stringnoMaximum contract amount in EUR.
date_fromstringnoEarliest PUBLISH date, YYYY-MM-DD. Defaults to ${DEFAULT_WINDOW_DAYS} days before date_to.
date_tostringnoLatest PUBLISH date, YYYY-MM-DD. Defaults to the newest date in the loaded window (see contract_window_to in any response).
limitnumber,stringnoMax 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.

Regenerated from source · build October 15, 2026