Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

anaf_validate_cif

Read-onlyIdempotent

Validate whether an ANAF token can access e-Factura for a specific CIF by checking organization ownership, ANAF registry status, and e-Factura permissions.

Instructions

Validate that an ANAF token has proper access to e-Factura for a specific CIF. Checks organization ownership, ANAF registry, and e-Factura access permissions. Returns validation result with any error messages.

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": {
      "id": "<id>",
      "cif": "<cif>"
    },
    "name": "anaf_validate_cif"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe ANAF token ID to validate (UUID from anaf_tokens)
cifYesCIF of a company in your organization to check the token against

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.59
    • addedInput schema / properties / cif
      Added value: +{
      +  "description": "CIF of a company in your organization to check the token against",
      +  "type": "string"
      +}
    • changedInput schema / properties / id / description
      Previous value: -"The ANAF token ID to validate (integer ID from anaf_tokens)"New value: +"The ANAF token ID to validate (UUID from anaf_tokens)"
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"string"
    • changedInput schema / required
      Previous value: -[
      -  "id"
      -]New value: +[
      +  "id",
      +  "cif"
      +]
  2. First observedv1.0.17

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld). The description usefully adds what the call actually does under the hood — org ownership, ANAF registry lookup, permission check — which is consistent with openWorldHint=true implying external ANAF calls. It stops short of disclosing latency, failure modes, or whether the result is cached.

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?

Three short sentences, front-loaded with the core action, then the checks, then the return. Slight redundancy between 'proper access to e-Factura' and the permission-check sentence, but no wasted phrasing.

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?

For a two-parameter, read-only validation tool with no output schema, the definition covers purpose, internals, and the shape of the response (validation result plus error messages). Missing only the concrete result fields and any timing or rate-limit expectations.

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 coverage is 100%, so both parameters are already documented, including the UUID provenance from anaf_tokens. The description only restates the two inputs in prose ('ANAF token', 'specific CIF') and adds no format, constraint, or edge-case guidance beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: validate an ANAF token's e-Factura access for a given CIF. It also enumerates the checks performed (organization ownership, ANAF registry, e-Factura permissions). It does not distinguish itself from siblings such as anaf_tokens or anaf_status, leaving the agent to infer the boundary.

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

Usage Guidelines3/5

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

Usage is implied: you run this to confirm a token actually works for a company before using it. There is no explicit when-to-use, no prerequisites (e.g., whether the token must already be created via anaf_create_token_link), and no named alternative or exclusion.

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

Deploy Server

Other Tools