Look up many companies by CUI
lookup_companiesLook up many Romanian companies by CUI in one call (up to 100): one result per input, in input order, each with found true/false and the company record.
Instructions
Look up many Romanian companies by CUI in one call (up to 100): one result per input, in input order, each with found true/false and the company record. Each row is one lookup; rows past today's allowance come back not_processed (partial: true, remaining: rows to resend after the reset). fields or compact trims each record.
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": {
"cuis": "<cuis>"
},
"name": "lookup_companies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cuis | Yes | Up to 100 CUIs, as a list or one comma-separated string ('RO', spaces and leading zeros accepted, as in lookup_business). | |
| fields | No | Optional: keep only these company fields in each row, comma-separated (companyName,cui,county,risk; dotted paths such as risk.level work). Without it the full record is returned. | |
| compact | No | Optional: true keeps a short preset per row (name, CUI, county, city, legal form, risk level and what it did not check, phone, website, latest revenue and headcount, record url). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | What to cite: registry (ONRC snapshot date), financialYear (fiscal year of the figures), anaf (day of the ANAF data), snapshot, published, source. | |
| error | No | Set only when there is no answer (empty_query, invalid_cui, data_unavailable, plan_required ...); such a call is not counted. | |
| found | No | Rows that matched a firm. | |
| total | No | Number of input rows. | |
| errors | No | Rows that are input errors (empty, not a CUI, wrong control digit). | |
| fields | No | The company fields kept when fields or compact trimmed the rows. | |
| source | No | Data source: onrc (registry) or mfp (Ministry of Finance filings). | |
| message | No | A sentence for the caller. | |
| partial | No | true when today's allowance ran out partway: the first processed rows were answered, the rest have status not_processed (not run, not counted). | |
| results | No | Per input: input, cui, found, and company (the record) or error/reason; status not_processed for a row today's allowance did not cover. | |
| metering | No | What the batch cost: rows, counted, notCounted (input-error rows and rows not processed are not counted), notProcessed (when partial) and the rule. | |
| notFound | No | Well-formed CUIs not in the snapshot. | |
| warnings | No | Notes on how the request was read (a clamped limit, a widened CAEN code, an ignored field). | |
| processed | No | Rows answered, from the first one (input-error rows included). | |
| remaining | No | Rows not processed (the last ones): send them again after the reset. 0 when the whole batch ran. | |
| dailyLimit | No | When partial: the daily-limit notice in the refusal vocabulary (error daily_limit_reached, message, limit, used, remaining allowance, resets_at, requested, processed, plan, get_a_key, pricing, docs, upgrade with a key). | |
| attribution | No | The credit line to keep when redistributing the data (CC BY 4.0). |