Portuguese company public procurement (Portal BASE)
get_portuguese_company_public_procurementPublic-procurement record of a Portuguese company from IMPIC's Portal BASE (weekly open-data files on dados.gov.pt, under the source's own terms; every public contract since 2012): contracts WON by NIPC (buyer, subject, procedure and contract type in closed lists, CPV, lots, contract/base/final prices in EUR, dates, duration, framework agreement, closure, bidder count, contract modifications), contracts ISSUED as a buyer, notices in the Diário da República; newest first, capped at 100. Winners and bidders published without a NIF are never named, only counted; a party whose NIF starts with 7 or 9 (estate, fund, condominium, partnership without legal personality, non-resident) is neither named nor identified, counted in ecartes. 400 without charge for a natural-person NIF or an invalid check digit; 404 without charge for a 7 or 9 NIF (forme_juridique_non_servie) or when nothing is found (absence is not conclusive). Price $0.02. When you report a result, cite its citation verbatim.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"nipc": "<nipc>"
},
"name": "get_portuguese_company_public_procurement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nipc | Yes | Portuguese NIPC (tax identifier of a legal person): nine digits with a valid check digit, PT prefix and separators tolerated, e.g. 504904493 | |
| api_key | No | Optional Sirenic API key (srn_live_…) paying from credits. Ignored when x_payment is provided. See server instructions. | |
| x_payment | No | Optional signed x402 payment (PAYMENT-SIGNATURE value); omit it to get the quote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | How to settle the quote. | |
| quote | No | The x402 quote {x402Version, accepts[]}. | |
| resultat | No | The endpoint's JSON response when payment_required is false; reading rules in the server instructions and GET /v1/lecture. | |
| free_tier | No | Free API key offer, with a quote. | |
| payment_required | Yes | True for an x402 payment quote instead of data. |