DEV Community

Give your AI agent Romanian company data: supplier due diligence with Claude and Apify MCP

Ask Claude or ChatGPT "is this Romanian supplier OK?" and, at best, it searches the web and summarizes an aggregator page that may be months old. Without search, it describes a company it has never looked up.

Neither is what you want before signing: a supplier can be declared an inactive taxpayer next Tuesday. The data itself is public. ANAF (the tax authority) publishes taxpayer status and filed balance sheets through free APIs, and the Ministry of Justice publishes court cases on portal.just.ro. The agent just needs a way to call them.

So I gave it one: three Apify actors exposed as MCP tools. Below is the setup (one command), a real run on three suppliers, and what I learned about making tools an agent uses correctly.

Not tax or legal advice. The agent reports what public registers say on a given day.

Setup: one command

The Apify MCP server can expose any Store actor as a tool. With the tools parameter you load only the ones you need. That matters more than it looks: every tool's schema sits in the agent's context, and the fewer near-duplicates it can pick from, the less often it picks the wrong one.

claude mcp add apify "https://mcp.apify.com?tools=nocturntools/ro-supplier-monitor,nocturntools/ro-supplier-financial-health,nocturntools/ro-supplier-litigation" -t http

The first call opens a browser to sign in to Apify (OAuth). Each actor becomes its own tool, named nocturntools--ro-supplier-monitor and so on. The same URL works in Claude.ai, ChatGPT (custom MCP server), Cursor or VS Code.

A real run

The prompt: I'm about to onboard three Romanian suppliers and want a quick due-diligence check before signing: CUI 18189442, CUI 22420757 and CUI 1590082. [...] Only use what the tools return; if a check fails, say so instead of guessing.

Claude Code called the three tools and came back with this table:

The verdicts are the agent's reading of public registers, not a legal opinion. Still, a few things in that answer I didn't ask for, and they're why I'd trust it more than a web search:

  • It turned a status into a next step. Green Team was removed from the trade register in 2022, so "a company in this state can't legally sign a contract or issue valid invoices, so check whether you have the right CUI". The likeliest explanation for a dead company in an onboarding list is a typo, and it said so.
  • It kept the count and the flag apart. Petrom is a debtor in 15 cases, but "the insolvency-as-debtor flag is not set". It didn't turn "debtor" into "insolvent".
  • It put numbers in context. 2,279 court cases sounds alarming until you read "high in absolute terms but in line with the company's size".
  • It said what the search left out. In my first run of the same prompt it added that cases filed under longer, similar names (OMV Petrom Marketing, for example) were excluded: 1,911 of them for Petrom. That came from a notes field in the tool output, not from the model.

What the tools actually check

Tool Source Signals
ANAF supplier monitor ANAF VAT registry API inactive taxpayer, VAT cancelled, deregistered, not found
Financial health ANAF balance sheets negative equity, net loss / loss streak, revenue drop, no recent filing
Court cases portal.just.ro SOAP service insolvency as debtor, cases as defendant, criminal case as defendant

All three take a list of CUIs, so "check my 200 suppliers" is one call per tool, not 600.

Here's one real row from the court-cases tool (Bitdefender, trimmed). This is all the agent sees:

{
  "cui": "18189442",
  "name": "BITDEFENDER SRL",
  "status": "OK",
  "searchedName": "BITDEFENDER",
  "searchedSince": "2021-01-01",
  "caseCount": 16,
  "activeCaseCount": 7,
  "byRole": {
    "claimant": 2,
    "defendant": 8,
    "debtor": 0,
    "creditor": 0,
    "other": 6
  },
  "flags": ["ACTIVE_AS_DEFENDANT", "LABOR_DISPUTES", "NEW_CASE_LAST_90D"],
  "truncated": false,
  "notes": ["nearMatchesIgnored: 1 case โ€ฆ"],
  "sources": [ โ€ฆ ]
}

No score, no prose, no names of the other parties. The flags are deterministic rules; the counts let the agent check them.

What makes a tool usable by an agent

I built these actors for people first and agents second. The run above showed which design choices matter most when the reader is a model:

  • Statuses, not silence. Every company gets a row with a status (OK, NOT_FOUND, NO_STATEMENTS, INVALID_INPUT, ERROR ...). An empty result is the worst thing you can hand an agent: it reads as "nothing wrong". Green Team's missing balance sheets came back as a status, so the agent could say why there was nothing.
  • Facts, not scores. The tools return flags with their source (INACTIVE, NEGATIVE_EQUITY, INSOLVENCY_AS_DEBTOR). The agent makes the judgment and says it's its own. A made-up "risk score 73" would invite it to invent the explanation.
  • Say what you didn't check. The notes field (nearMatchesIgnored, truncated, ambiguousCommonName) is what let the agent warn me about name matching. Limits written in the README rarely reach the model at the moment it reads the result; limits in the output always do.
  • No personal data. Sole traders (PFA / II / IF) are natural persons, so they're skipped, and court results never include the other parties, the case subject or the ruling.

Cost

The actors are free during launch (until about mid-December 2026), then pay-per-event: $0.002 (ANAF) + $0.005 (financials) + $0.01 (court cases) per company, so about $0.017 per supplier for all three. Checking 200 suppliers once costs about $3.40, and companies the checks can't find, invalid CUIs and failed checks aren't charged.

You also pay the agent's own tokens: three tool results per batch, one row per company.

Not using an agent? The same checks exist as automation templates: an n8n workflow that checks your suppliers weekly and one that checks every supplier invoice in Gmail.

  • The actors: ANAF status ยท financial health ยท court cases

Unofficial. Not affiliated with or endorsed by ANAF or the Romanian Ministry of Justice.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.