Skip to main content
Glama
Sirenic MCP server

Sirenic MCP server

Official

Portuguese company public procurement (Portal BASE)

get_portuguese_company_public_procurement
Read-only

Retrieve a Portuguese company's public procurement records by NIPC, including contracts won or issued, buyers, prices, dates, and procedures from IMPIC's Portal BASE since 2012.

Instructions

Public-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

NameRequiredDescriptionDefault
nipcYesPortuguese NIPC (tax identifier of a legal person): nine digits with a valid check digit, PT prefix and separators tolerated, e.g. 504904493

Output Schema

NameRequiredDescriptionDefault
hintNoHow to settle the quote, present when payment_required is true.
quoteNoThe signable x402 payment requirements when payment_required is true: {x402Version, accepts[]} where each entry carries scheme, network, amount, asset and payTo (USDC and EURC options at the same numeric amount). Sign one entry and call again with `x_payment`.
resultatNoThe endpoint's JSON response when payment_required is false. Paid responses carry `source`, `disclaimer` and an Ed25519 signature, and every paid JSON response carries a `provenance` array (all tools since 2026-09-06): one entry per block served, with the official register, licence, version, `empreinte_sha256` (full snapshots), `as_of` date and `precision_as_of` (what that date means), plus the common per-block envelope: `etat` in a closed list (servi, absence_mesuree, absence_non_conclusive, partiel, perime, indisponible, sans_objet), `motif` when unavailable, `age_jours` (only for publication or ingestion dates), `couverture` (complete / partielle / non_mesurable with its measure) and `confiance` in bands (faible / moyenne / forte, only where a measure grounds it, never averaged across blocks). Read the states before the numbers: an absence_non_conclusive, indisponible or partiel block is never « nothing to report »; only absence_mesuree asserts an absence. Register codes: GET /v1/provenance/registres ; states, closed lists and reading rules: GET /v1/lecture (both free). The PDF tools carry no JSON envelope (the PDF report prints it).
free_tierNoFree API key offer for this tool, present with a quote.
payment_requiredYesTrue when this response is an x402 payment quote instead of data: settle one of the quote's `accepts` options and call the tool again with `x_payment`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnlyHint/openWorldHint annotations, the description discloses a wealth of behavior: results are newest first and capped at 100, winners/bidders without a NIF are only counted, 7/9 NIF parties are counted in `ecartes` rather than named, which errors are free of charge, the $0.02 price, and the requirement to cite `citation` verbatim. Nothing here contradicts the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The provenance and scope are front-loaded and nearly every clause carries operational information. It is dense, with long parenthetical enumerations of contract fields, but practically no filler; a slight trim of the field list would improve scannability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, open-world read tool with an output schema, the description covers source, coverage period, ordering, result cap, redaction policy, error matrix, cost, and citation obligation. An agent has everything needed to call it and interpret the response correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real semantic value about the single parameter: which NIPC classes are rejected (natural persons, 7/9 prefixes for estates/funds/condominiums/non-residents) and how each failure surfaces. That is meaning an agent could not derive from the pattern alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource — the public-procurement record of a Portuguese company from IMPIC's Portal BASE — and enumerates exactly what the record contains (contracts won by NIPC, contracts issued as buyer, Diário da República notices). The country and source in the name plus the explicit content list make it unambiguously distinct from the French, Spanish, Latvian, etc. siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete conditions for the tool's edge outcomes: 400 for a natural-person NIF or bad check digit, 404 for a 7/9 NIF or no results, and it warns that absence is not conclusive. What it lacks is an explicit pointer to a sibling (e.g. get_european_company_eu_procurement) for cross-border coverage, so the routing guidance is strong but not fully closed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools