Company profile with website contacts
enrich_companyA whole-firm profile in one call: the ONRC registry record plus the contacts discovered on that company's website, each labelled with a confidence and a source. Prefer this over a registry lookup then a contact extraction when you want everything about one company. cui is its tax code; website overrides the registered one; max_pages bounds the crawl; refresh=true crawls now instead of answering from the cache.
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": {
"cui": "<cui>"
},
"name": "enrich_company"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cui | Yes | Romanian tax identification number (CUI), e.g. '2816464'; 'RO' and leading zeros are accepted. | |
| refresh | No | true crawls now even if a cached result exists (default false: answer from the cache when there is one). | |
| website | No | Optional website override (domain or URL). When omitted, the company's registered website is used (an error if none is on file). | |
| max_pages | No | Maximum number of pages to crawl (1-20, default 5). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cui | No | The company's CUI. | |
| 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. | |
| company | No | A company record: companyName, cui, registrationCode, registrationDate (DD/MM/YYYY), legalForm, euid, address (a company's full address; a sole trader's (PFA/II/IF/PF/AF) town and county only, with addressScope: locality, in every answer), county, city, website, phone as declared (+ phoneSource: ANAF, declared by the taxpayer; phoneStatus: valid, corrected with phoneSuggestion, or unverified: check before calling; a company's only, never a sole trader's), caenActivities [{code, activity (RO), activityEn, rev3 {group, successors [{code, name}], more, url, note}: the CAEN Rev.3 equivalent from the INS table, at most 5 successors in every group (more = the rest, url = the code's page); list and batch tools (lookup_by_category, match_companies, lookup_companies): codes only, no note}], directors, representatives [{name, role}], status [{code, name}], latestFinancials {year, revenue, netResult, employees; RON}, anaf {mainCaen, vatPayer, cashVat, eFactura, inactive}, unavailable (only when a source could not be read for this answer, e.g. ["anaf"]: the record is incomplete, ask again), risk {level, label, reasons, isLead}, source, asOf, url (the company's public record page to share with the user; null for sole traders and other natural persons), and score/match on name searches. With fields or compact, only the requested keys (compact keeps url). | |
| crawled | No | true when the site was crawled for this answer. | |
| message | No | A sentence for the caller. | |
| website | No | The website crawled. | |
| cacheHit | No | true when answered from the cache. | |
| contacts | No | Contacts found, each with type, value, confidence and source; an email also has personal (true for a firstname.lastname@ address: GDPR art. 14 and Law 506/2004 apply), role addresses first. | |
| crawlError | No | Why the crawl failed, if it did. | |
| pagesCrawled | No | Pages read. | |
| websiteSource | No | Where the website came from: registry or override. |