Skip to main content
Glama
Sirenic MCP server

Sirenic MCP server

Official

Latvian company public procurement (IUB)

get_latvian_company_public_procurement
Read-only

Retrieve a Latvian company's public procurement record from IUB open-data notices, including contracts won and notices issued as a buyer, by 11-digit registration number.

Instructions

Public-procurement record of a Latvian company from the IUB (Iepirkumu uzraudzības birojs) daily open-data notices (CC0, e-forms since 2023-10-25): contracts WON (attributions: buyer, subject, CPV, contract reference, value in EUR, conclusion / decision / start / end dates, contract status, winner size) and notices ISSUED as a buyer (avis_emis), newest first, 100 each at most with tronque_*, totals (nombre_attributions, valeur_totale_eur, nombre_avis_emis) and stock (first and last day collected). Natural-person winners are never served, nor a buyer that is an individual merchant; ecartes.personne_physique (only when non-zero) counts the winners kept without identity among the awards of the listed notices. About 3% of Latvian winners are published without an identifier and the stock starts on 2023-10-25: aucune_attribution: true is a NON-conclusive absence. Facts only, no score. Legal persons only: an individual merchant (IK), a sole trader or a form not recognised as a legal person returns 404, not billed. Paid via x402 ($0.02 in USDC or EURC). 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": {
      "regnr": "<regnr>"
    },
    "name": "get_latvian_company_public_procurement"
  }
}

Input Schema

NameRequiredDescriptionDefault
regnrYes11-digit Latvian registration number (Uzņēmumu reģistrs), e.g. 40003032065

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.2/5.0
Behavior3/5

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

Annotations only declare readOnlyHint and openWorldHint, and the description adds substantial context: 100-record cap with `tronque_*` truncation flags, newest-first ordering, aggregate totals, `stock` range, exclusion of natural-person winners, and paid access via x402 ($0.02 USDC/EURC). What is missing is any disclosure of error/failure behavior beyond the 404 case or of rate limits beyond the truncation cap, so it is strong but not exhaustive.

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?

Front-loaded with the core resource and dataset provenance, then progressively narrower caveats; every clause (CC0, e-forms since 2023-10-25, field lists, citation rule) carries operative information. The single dense paragraph with heavy parenthetical nesting costs some 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?

An output schema exists, yet the description still enumerates the returned blocks (`attributions`, `avis_emis`, totals, `stock`, `ecartes.personne_physique`), the ordering, the cap and the exclusions. Combined with billing and citation instructions, an agent has everything needed to call and report 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% with a single 11-digit `regnr` pattern parameter, so the baseline is 3. The description goes further by constraining which legal forms the identifier may resolve to (individual merchants and sole traders yield a non-billed 404), which is meaning the schema does not convey.

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?

States a specific resource (public-procurement record of a Latvian company from IUB open-data notices) with a precise verb-equivalent scope: contracts WON via `attributions` and notices ISSUED as buyer via `avis_emis`. The Latvian jurisdiction and IUB source make it distinguishable from the French/Polish/Spanish/UK procurement siblings and from the other Latvian company tools without opening the schema.

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?

Gives concrete eligibility conditions (legal persons only; individual merchants, sole traders and non-legal-person forms return 404 and are not billed) and a data-coverage caveat that changes interpretation (`aucune_attribution: true` is NON-conclusive absence, ~3% of winners lack identifiers, stock begins 2023-10-25). It never names an explicit alternative tool to use instead, so a 4 rather than 5.

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