Skip to main content
Glama

ANAF e-Factura

Look up Romanian companies

lookup_company
Read-onlyIdempotent

Look up companies in ANAF's public VAT registry by CIF: name, trade register number, registered office, CAEN code, and the statuses an invoice depends on (vatPayer with its current period, vatOnCollection, splitVat, inactive, and eFacturaRegistry for the RO e-Factura registry). notFound lists the CIFs ANAF does not know. A status ANAF did not report is absent, not false. Needs no grant.

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": {
      "cifs": "<cifs>"
    },
    "name": "lookup_company"
  }
}

Input Schema

NameRequiredDescriptionDefault
cifsYes1 to 100 CIFs, with or without the RO prefix.
dateNoYYYY-MM-DD: the statuses as they stood that day. Empty means today in Bucharest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing output semantics and pitfalls: 'notFound lists the CIFs ANAF does not know' and 'A status ANAF did not report is absent, not false' are exactly the kind of subtle contract an agent would otherwise misread as a negative VAT status. It also adds the auth posture ('Needs no grant') and the temporal scoping of statuses, none of which are in the annotation block.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the verb and resource, then the return surface, then the two behavioral caveats. The parenthetical field list is dense but every item is a distinct returned value, so nothing is filler.

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?

There is no output schema, and the description carries that burden fully: it names every returned field, explains notFound, and warns that missing statuses are absent rather than false. Combined with the auth note and the annotations covering safety, an agent has everything needed to call this correctly and interpret the result.

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

Parameters3/5

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

Schema description coverage is 100% and both parameters (cifs with 1-100 limit and RO prefix handling, date with YYYY-MM-DD and Bucharest-today default) are fully documented in the schema itself. The description adds only that lookup is 'by CIF', so the baseline 3 applies rather than compensation.

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?

States a specific verb and resource ('Look up companies in ANAF's public VAT registry by CIF') and then enumerates exactly what it resolves: name, trade register number, registered office, CAEN code, and a named list of invoice-relevant statuses. Nothing about the purpose is left to inference, and the sibling tools (build_invoice, validate_invoice, etc.) are clearly different functions rather than near-duplicates requiring disambiguation.

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

Usage Guidelines4/5

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

Gives usable context: the statuses returned are 'the statuses an invoice depends on', which tells the agent this is the pre-invoice validation lookup, and 'Needs no grant' tells it the call is unauthenticated and safe to make freely. It stops short of explicit when-not-to-use or routing to a named alternative, so it is clear context without exclusions.

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.