Skip to main content
Glama

Free format check: CUI, IBAN, trade register number, invoice arithmetic

check_identifier_format
Read-onlyIdempotent

Free, local-only checks with no registry lookup: CUI checksum, IBAN checksum (and Romanian bank from the code), trade register number format (old and new), company name normalization, and invoice arithmetic (total = net + VAT, Romanian VAT rates, date not in the future). Does not check that the company exists; the last digit of new-format registration numbers (e.g. J2020001234400) is not verified. Free, works without an API key; rate-limited per IP. For registry checks use validate_extracted_company_data.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_identifier_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
cuiNoRomanian CUI to checksum, e.g. 12345674 or RO12345674. Does not check that the company exists
ibanNoIBAN to checksum, spaces optional, e.g. RO49AAAA1B31007593840000. Romanian bank is decoded from the bank code
nameNoCompany name to normalize, e.g. FIRMA S.R.L. Max 300 characters
invoiceNoOptional invoice block. Adds 1 credit on validate_extracted_company_data. Checks total = net + VAT, Romanian VAT rates, and that the date is not in the future.
registrationNumberNoTrade register number, old J40/123/2020 or new J2020000123400. The last digit of the new format is not verified

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / cui / description
      Added value: +"Romanian CUI to checksum, e.g. 12345674 or RO12345674. Does not check that the company exists"
    • addedInput schema / properties / iban / description
      Added value: +"IBAN to checksum, spaces optional, e.g. RO49AAAA1B31007593840000. Romanian bank is decoded from the bank code"
    • addedInput schema / properties / invoice / description
      Added value: +"Optional invoice block. Adds 1 credit on validate_extracted_company_data. Checks total = net + VAT, Romanian VAT rates, and that the date is not in the future."
    • addedInput schema / properties / invoice / properties / currency / description
      Added value: +"ISO 4217 currency code, e.g. RON or EUR"
    • changedInput schema / properties / invoice / properties / date / description
      Previous value: -"YYYY-MM-DD"New value: +"Invoice date, YYYY-MM-DD"
    • addedInput schema / properties / invoice / properties / net / description
      Added value: +"Net amount before VAT"
    • addedInput schema / properties / invoice / properties / number / description
      Added value: +"Invoice number as printed, e.g. FCT-1"
    • addedInput schema / properties / invoice / properties / total / description
      Added value: +"Gross total; checked against net + VAT"
    • addedInput schema / properties / invoice / properties / vat / description
      Added value: +"VAT amount"
    • addedInput schema / properties / invoice / properties / vatRates / description
      Added value: +"VAT percents on the invoice, e.g. [21] or [21, 11]"
    • addedInput schema / properties / name / description
      Added value: +"Company name to normalize, e.g. FIRMA S.R.L. Max 300 characters"
    • addedInput schema / properties / registrationNumber / description
      Added value: +"Trade register number, old J40/123/2020 or new J2020000123400. The last digit of the new format is not verified"
  2. Added

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world behavior, so the safety profile is covered. On top of that, the description discloses real behavioral limits — no registry lookup, no company-existence check, the last digit of new-format registration numbers is not verified, and the per-IP rate limit — which is genuinely useful. It never states what a result looks like (pass/fail shape, whether all checks run when several params are supplied), leaving that gap.

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?

Front-loaded with the core purpose and the free/local constraint, then caveats, then the alternative tool. Dense but every clause carries information; the enumeration of checks is long but earns its place for a multi-purpose tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers scope, exclusions, cost, limits, and the sibling alternative for a multi-purpose validation tool with a nested invoice object. The only real omission is return-value behavior — with no output schema, an agent cannot tell whether the response is a boolean, a per-check breakdown, or per-field errors.

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

Parameters4/5

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

Schema coverage is already 100%, including nested invoice sub-fields, so the baseline is 3. The description still adds meaning beyond it by tying each parameter to a specific check (IBAN checksum plus Romanian bank decode, Romanian VAT rates, date-not-in-future), helping an agent understand why each field exists.

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 exactly what the tool does: local-only format/checksum checks for CUI, IBAN, trade register number, name normalization, and invoice arithmetic. It explicitly separates itself from validate_extracted_company_data, which handles registry lookups.

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?

Gives a clear when-to-use ('free, local-only, no registry lookup, works without API key'), a when-not ('does not check that the company exists'), and an explicit alternative ('For registry checks use validate_extracted_company_data'). The rate-limit-per-IP note also helps an agent decide when to batch calls.

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.