Skip to main content
Glama

Companero – Romanian Company Data

get_anaf_debts

Keywords: datorii ANAF, restanțe fiscale, obligații restante, tax debts, arieratele, datorii fiscale, conformitate fiscală, ANAF.ro/restante, ANAF debt list, tax compliance, restante, datorii buget stat, asigurări sociale, șomaj, sănătate, beneficial debt, romanian tax debts, fiscal compliance check, debt history quarter.

Returnează situația datoriilor fiscale ale unei firme românești după CUI, conform listei publice ANAF de restanțe (publicată trimestrial pe anaf.ro/restante).

Două tier-uri (toggle prin detail):

  • detail: "summary" (DEFAULT, FREE): răspunde rapid la întrebarea "are firma datorii?" — {hasDebt, totalGeneral, checkedAtQuarter, checkedAtReferenceDate}. Folosește pentru screening sau confirmare rapidă.

  • detail: "full" (PAID, 100 credite): istoricul COMPLET multi-trimestru cu breakdown per buget (stat / asigurări sociale / șomaj / sănătate), fiecare cu valori principale / accesorii / total / contestate / necontestate. Folosește pentru evaluări detaliate, due diligence, trend analysis fiscal.

IMPORTANT — pragurile de publicare ANAF: lista publică ANAF de restanțe conține DOAR firmele cu datorii fiscale peste anumite plafoane legale:

  • 100.000 RON pentru firme obișnuite (majoritatea)

  • 250.000 RON pentru contribuabili mijlocii

  • 500.000 RON pentru mari contribuabili Absența unei firme din listă NU înseamnă "fără datorii" — înseamnă "datoriile, dacă există, sunt sub pragul de publicare".

Stări semantice cheie (interpretează cu atenție):

  • hasDebt: true → firma figurează în lista publică ANAF la trimestrul raportat (datorii peste plafon). Folosește totalGeneral și (în tier-ul full) detaliile pe buget. Acest fapt în sine e un semnal serios pentru due diligence.

  • hasDebt: false ȘI checkedAtQuarter setat → firma NU apare în lista publică ANAF la trimestrul respectiv. Semnifică "fără datorii publice materiale" — NU "fără datorii deloc". Datoriile sub prag (max 99.999 RON pentru firme obișnuite) pot exista fără să fie publicate.

  • hasDebt: null ȘI checkedAtQuarter: null → Companero nu a importat încă date ANAF. Singura stare reală de "informație lipsă".

Când îl folosești:

  • "Are firma X datorii la ANAF?"

  • "Verifică situația fiscală a firmei cu CUI Y"

  • "Cât datorează firma Z la stat?"

  • "Istoricul datoriilor ANAF pentru firma X în ultimele trimestre"

  • Pre-screening B2B, KYC, factoring, credit decision

Cost & caching: free pentru detail=summary, 100 credite pentru detail=full. Abonamentul Pro include istoricul complet pentru 200 de firme pe lună (lună calendaristică, deduplicat pe firmă): când apelul e acoperit de plafon, răspunsul poartă _meta.coveredByPlan: true și creditsCharged: 0. Peste plafon, detail=full se taxează normal. Datele se actualizează trimestrial când ANAF publică o nouă listă (~aprilie, iulie, octombrie, ianuarie).

Confirmarea costului: un apel care ar consuma credite are nevoie de confirm: true. Fără el primești DEVIZUL (cost în credite și RON, soldul contului, alternativa gratuită dacă există) și nu se consumă nimic — reia apoi EXACT același apel cu confirm: true, după ce omul a acceptat costul.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taxIdYesRomanian CUI (Cod Unic de Înregistrare).
detailNo"summary" (free, default) or "full" (paid, see ActionCostCatalog).
confirmNoAcordul utilizatorului de a consuma credite pentru acest apel. Fără el, apelul întoarce DEVIZUL (cost, sold, alternativa gratuită) și nu consumă nimic. Nu îl trimite din proprie inițiativă: întreabă întâi omul.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description fully carries the behavioral burden and does so comprehensively. It discloses publication thresholds, the semantic meaning of hasDebt values (true/false/null), the distinction between 'no public debt' and 'no debt', the cost and caching rules, the confirm requirement, and update frequency. No contradictions.

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?

The description is well-structured with clear sections (keywords, tiers, thresholds, semantics, usage, cost), but it is quite long and includes a large keyword block at the start that is unnecessary for an agent's understanding. The essential information is front-loaded and organized, but could be trimmed without losing clarity.

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?

Given the tool's complexity (tiers, costs, thresholds, confirm flow, semantic nuances), the description covers every aspect an agent needs: how to interpret hasDebt, the publication thresholds, the cost implications, the need for user confirmation, and update timing. It also describes return fields for summary, compensating for the lack of an output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds substantial value beyond the schema. It explains the default of detail ('summary'), the credit cost for 'full' (100 credits), the exact return fields for summary, and the crucial confirm flow (never send confirm without user approval, otherwise get a quote). This is essential for correct invocation.

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?

The description explicitly states the tool retrieves Romanian companies' tax debt status from the public ANAF list by CUI, with a clear verb-resource pair. It further differentiates between summary and full detail tiers, making it distinct from sibling tools like get_company or get_financial_health, which focus on other data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description includes a dedicated 'Când îl folosești' section with concrete example queries (e.g., 'Are firma X datorii la ANAF?') and use cases (pre-screening, KYC, factoring). It also implies when not to use it by explaining that absence from the list doesn't mean no debt, preventing misinterpretation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources