{
  "authentication": {
    "required": false
  },
  "instructions": "Romanian company data (firme) from ONRC (trade register) and ANAF. Workflow: search_companies (company name -> CUI/CIF), then company_risk (KYB score), company_profile or company_financials (bilant). CUI accepts an optional RO prefix. Tools are pay-per-call via x402 v2 (USDC on Base, no account): an unpaid call returns isError with the x402 PaymentRequired object in structuredContent; retry with the signed payment in params._meta[\"x402/payment\"]. Alternatively send Authorization: Bearer <API key>. You are charged only for successful results.",
  "prompts": [],
  "resources": [],
  "serverInfo": {
    "name": "date-firme",
    "title": "date-firme: Romanian company data (ONRC/ANAF)",
    "version": "0.2.0"
  },
  "tools": [
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "Search Romanian companies (name -> CUI)"
      },
      "description": "Use when you only have a company name and need its CUI (cod fiscal) for the other endpoints, or to check that a CUI exists. Search the Romanian trade register (ONRC) by company name (denumire firmă), CUI/CIF (RO prefix optional) or registration number (e.g. J40/123/2020). Returns up to 30 matches (cui, name, county, locality, ONRC status, activa), active companies first. Price: $0.002 per call via x402 (USDC on Base, no account) or an API key.",
      "inputSchema": {
        "properties": {
          "q": {
            "description": "Company name (min 2 chars, diacritics optional), CUI/CIF with or without RO prefix, or trade-register number (e.g. J40/123/2020).",
            "type": "string"
          }
        },
        "required": [
          "q"
        ],
        "type": "object"
      },
      "name": "search_companies",
      "outputSchema": {
        "description": "structuredContent wraps the HTTP JSON array under \"results\"; the text content is the raw HTTP body.",
        "properties": {
          "results": {
            "items": {
              "properties": {
                "activa": {
                  "type": "boolean"
                },
                "county": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "cui": {
                  "format": "int64",
                  "type": "integer"
                },
                "locality": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": "string"
                },
                "stare": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "cui",
                "name",
                "activa"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "title": "Search Romanian companies (name -> CUI)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "KYB risk check for a Romanian company"
      },
      "description": "Use when onboarding a supplier or customer, extending credit, or before paying an invoice. Get the CUI first with search_companies. KYB risk check for a Romanian company by CUI (tax ID). Returns score 0-100, level low/medium/high and reasons: ONRC insolvency (insolvență), bankruptcy, dissolution, sequestration, criminal case; ANAF/ONRC inactive or deregistered status; latest balance sheet (bilanț: missing, losses, negative equity, falling turnover) and Altman Z'. Price: $0.02 per call via x402 (USDC on Base, no account) or an API key.",
      "inputSchema": {
        "properties": {
          "cui": {
            "description": "CUI / CIF (Romanian company tax ID, cod fiscal): digits with optional RO prefix, e.g. 2816464 or RO2816464. Get it with search_companies.",
            "type": "string"
          }
        },
        "required": [
          "cui"
        ],
        "type": "object"
      },
      "name": "company_risk",
      "outputSchema": {
        "properties": {
          "an_bilant": {
            "description": "year of the latest balance sheet used",
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "checked": {
            "description": "What was and wasn't checked — absence of a flag only means \"no evidence\" for checked sources.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cui": {
            "format": "int64",
            "type": "integer"
          },
          "denumire": {
            "type": "string"
          },
          "flags": {
            "items": {
              "properties": {
                "code": {
                  "description": "insolventa | sechestru | urmarire_penala | status_critic | firma_noua | fara_bilant | altman_pericol | altman_gri | capitaluri_negative | pierdere | scadere_cifra_afaceri",
                  "type": "string"
                },
                "detail": {
                  "description": "human-readable reason (Romanian)",
                  "type": "string"
                },
                "points": {
                  "description": "points added to the score",
                  "format": "int32",
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "code",
                "points",
                "detail"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "level": {
            "description": "low (<25) | medium (25-54) | high (>=55)",
            "type": "string"
          },
          "not_checked": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "score": {
            "description": "0 (safe) .. 100 (critical)",
            "format": "int32",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "cui",
          "denumire",
          "score",
          "level",
          "flags",
          "checked",
          "not_checked"
        ],
        "type": "object"
      },
      "title": "KYB risk check for a Romanian company"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "Romanian company profile by CUI"
      },
      "description": "Use when you need identity and registration details of a known company: invoicing data, VAT status, legal form or who runs it. Romanian company (firmă) profile by CUI/CIF: legal name, address, county, status, registration date and number, legal form (SRL, SA...), main CAEN code, ANAF VAT payer (plătitor TVA) and VAT-on-cash flags, current administrators (ONRC) and Altman Z'. Price: $0.005 per call via x402 (USDC on Base, no account) or an API key.",
      "inputSchema": {
        "properties": {
          "cui": {
            "description": "CUI / CIF (Romanian company tax ID, cod fiscal): digits with optional RO prefix, e.g. 2816464 or RO2816464. Get it with search_companies.",
            "type": "string"
          }
        },
        "required": [
          "cui"
        ],
        "type": "object"
      },
      "name": "company_profile",
      "outputSchema": {
        "properties": {
          "administratori": {
            "items": {
              "properties": {
                "name": {
                  "type": "string"
                },
                "role": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "adresa": {
            "type": [
              "string",
              "null"
            ]
          },
          "altman_z": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "properties": {
                  "risc": {
                    "type": "string"
                  },
                  "score": {
                    "format": "double",
                    "type": "number"
                  },
                  "zona": {
                    "type": "string"
                  }
                },
                "required": [
                  "score",
                  "zona",
                  "risc"
                ],
                "type": "object"
              }
            ]
          },
          "cod_caen": {
            "type": [
              "string",
              "null"
            ]
          },
          "cod_postal": {
            "type": [
              "string",
              "null"
            ]
          },
          "cui": {
            "format": "int64",
            "type": "integer"
          },
          "data_inregistrare": {
            "type": [
              "string",
              "null"
            ]
          },
          "denumire": {
            "type": "string"
          },
          "denumire_caen": {
            "type": [
              "string",
              "null"
            ]
          },
          "forma_juridica": {
            "type": [
              "string",
              "null"
            ]
          },
          "judet": {
            "type": [
              "string",
              "null"
            ]
          },
          "localitate": {
            "type": [
              "string",
              "null"
            ]
          },
          "nr_reg_com": {
            "type": [
              "string",
              "null"
            ]
          },
          "platitor_tva": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "stare": {
            "type": [
              "string",
              "null"
            ]
          },
          "tva_la_incasare": {
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "required": [
          "cui",
          "denumire",
          "administratori"
        ],
        "type": "object"
      },
      "title": "Romanian company profile by CUI"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "Financial statements by year (bilant)"
      },
      "description": "Use when you need revenue, profit, debt or headcount trends, or a solvency view of a company over several years. Yearly financial statements (bilanț ANAF) of a Romanian company by CUI, newest first, in RON: assets, stocks, receivables, cash, debts, equity, capital, turnover (cifra de afaceri), revenue, expenses, gross/net profit, loss, employees, plus Altman Z' and ratios (liquidity, debt/equity, net margin, ROA, turnover per employee). Empty list if no filings. Price: $0.01 per call via x402 (USDC on Base, no account) or an API key.",
      "inputSchema": {
        "properties": {
          "cui": {
            "description": "CUI / CIF (Romanian company tax ID, cod fiscal): digits with optional RO prefix, e.g. 2816464 or RO2816464. Get it with search_companies.",
            "type": "string"
          }
        },
        "required": [
          "cui"
        ],
        "type": "object"
      },
      "name": "company_financials",
      "outputSchema": {
        "description": "structuredContent wraps the HTTP JSON array under \"years\"; the text content is the raw HTTP body.",
        "properties": {
          "years": {
            "items": {
              "description": "Financial year + computed Altman Z' + ratios (API response).",
              "properties": {
                "active_circulante": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "active_imobilizate": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "altman_z": {
                  "oneOf": [
                    {
                      "type": "null"
                    },
                    {
                      "properties": {
                        "risc": {
                          "type": "string"
                        },
                        "score": {
                          "format": "double",
                          "type": "number"
                        },
                        "zona": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "score",
                        "zona",
                        "risc"
                      ],
                      "type": "object"
                    }
                  ]
                },
                "an": {
                  "format": "int32",
                  "type": "integer"
                },
                "capital_subscris": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "capitaluri": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "casa_conturi": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "cheltuieli_totale": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "cifra_afaceri": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "creante": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "datorii": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "nr_angajati": {
                  "format": "int32",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "pierdere_neta": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "profit_brut": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "profit_net": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "ratios": {
                  "description": "Derived ratios from a financial year (same formulas as admin UI).",
                  "example": {
                    "grad_indatorare": 1094.39,
                    "lichiditate": 1.09,
                    "marja_neta": 3.58,
                    "productivitate_angajat": 82489.0,
                    "roa": 5.58,
                    "rotatie_creante": 5.83
                  },
                  "properties": {
                    "grad_indatorare": {
                      "description": "Datorii / Capitaluri (%). Bun: < 70",
                      "format": "double",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "lichiditate": {
                      "description": "Active circulante / Datorii (x). Bun: ≥ 1.5",
                      "format": "double",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "marja_neta": {
                      "description": "Profit net / Cifră afaceri (%). Bun: > 0",
                      "format": "double",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "productivitate_angajat": {
                      "description": "Cifră afaceri / Nr. angajați (RON)",
                      "format": "double",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "roa": {
                      "description": "Profit net / Total active (%)",
                      "format": "double",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "rotatie_creante": {
                      "description": "Cifră afaceri / Creanțe (x)",
                      "format": "double",
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "type": "object"
                },
                "stocuri": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "venituri_totale": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "required": [
                "an",
                "ratios"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "years"
        ],
        "type": "object"
      },
      "title": "Financial statements by year (bilant)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "Industry benchmark by CAEN code"
      },
      "description": "Use when you need market leaders or competitors in an industry, or want to place a company against its peers. Ranks active Romanian companies with a given main CAEN code by turnover (cifra de afaceri) from their latest balance sheet, with employees, net profit and year. Returns top N (5-20, default 15), the total with data and, if cui is in the top N, its rank (rang_ref). Price: $0.02 per call via x402 (USDC on Base, no account) or an API key.",
      "inputSchema": {
        "properties": {
          "code": {
            "description": "CAEN activity code (cod CAEN, 4 digits), e.g. 4752. A company's main CAEN is in company_profile.cod_caen.",
            "type": "string"
          },
          "cui": {
            "description": "Optional CUI to highlight (is_ref) and rank within the list.",
            "type": "string"
          },
          "limit": {
            "description": "Number of companies to return, 5-20 (default 15).",
            "type": "integer"
          }
        },
        "required": [
          "code"
        ],
        "type": "object"
      },
      "name": "caen_comparison",
      "outputSchema": {
        "properties": {
          "caen": {
            "type": "string"
          },
          "firme": {
            "items": {
              "properties": {
                "activa": {
                  "type": "boolean"
                },
                "an": {
                  "format": "int32",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "angajati": {
                  "format": "int32",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "ca": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "cui": {
                  "format": "int64",
                  "type": "integer"
                },
                "denumire": {
                  "type": "string"
                },
                "is_ref": {
                  "type": "boolean"
                },
                "judet": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "localitate": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "profit": {
                  "format": "int64",
                  "type": [
                    "integer",
                    "null"
                  ]
                },
                "rank": {
                  "format": "int32",
                  "type": "integer"
                },
                "stare": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "cui",
                "denumire",
                "activa",
                "is_ref",
                "rank"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "rang_ref": {
            "format": "int32",
            "type": [
              "integer",
              "null"
            ]
          },
          "total": {
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "firme",
          "total",
          "caen"
        ],
        "type": "object"
      },
      "title": "Industry benchmark by CAEN code"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": true,
        "title": "Companies of a named administrator"
      },
      "description": "Use when you need a person's other business affiliations: related parties, conflicts of interest or due diligence on a director. Lists Romanian companies (up to 200) where a person is currently registered as administrator or representative in ONRC public data. Exact match on the full name, case- and diacritics-insensitive. Returns cui, company name (denumire), county and role (status_label). Price: $0.01 per call via x402 (USDC on Base, no account) or an API key.",
      "inputSchema": {
        "properties": {
          "name": {
            "description": "Full name of the person as registered in ONRC (min 3 chars), e.g. POPESCU ION. URL-encode spaces in the HTTP path.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "name": "admin_companies",
      "outputSchema": {
        "description": "Response body of GET /v1/admins/{name}/companies (documentation schema; the handler builds the same JSON).",
        "properties": {
          "query": {
            "description": "Normalized name that was matched (uppercase, no diacritics)",
            "type": "string"
          },
          "results": {
            "description": "Companies (max 200); `status_label` holds the person's role",
            "items": {
              "properties": {
                "county": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "cui": {
                  "format": "int64",
                  "type": "integer"
                },
                "denumire": {
                  "type": "string"
                },
                "status_label": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "cui",
                "denumire"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "total": {
            "format": "int64",
            "type": "integer"
          }
        },
        "required": [
          "query",
          "results",
          "total"
        ],
        "type": "object"
      },
      "title": "Companies of a named administrator"
    }
  ],
  "transport": {
    "type": "streamable-http",
    "url": "https://date-firme.dev-box.ro/mcp"
  }
}