Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

anaf_create_token_link

Create a 24-hour link the certificate holder opens on their own device to authorize ANAF access without a Storno account; returns link URL, token, company ID, exclusivity, and expiry.

Instructions

Create a link the certificate holder opens on their own device to authorize ANAF access (no Storno account needed there). Returns linkToken, linkUrl, companyId, exclusive and expiresAt. A link lasts 24 hours and a user may hold 5 active links, or the higher limit set on the organization. With exclusive=true the resulting token is bound to that company and used for it alone: the certificate must have SPV rights on its CIF, no other token of the organization is ever used for the company, and deleting the token revokes that one company. Without it, tokens are shared: any token of the organization can serve any of its companies (one certificate for all companies).

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": "anaf_create_token_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyIdNoCompany UUID the link is for. The token is validated against the CIF of this company. Required when exclusive is true.
exclusiveNoBind the resulting token to the company and use it for that company only. Default false (shared tokens).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.59
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / companyId
      Added value: +{
      +  "description": "Company UUID the link is for. The token is validated against the CIF of this company. Required when exclusive is true.",
      +  "type": "string"
      +}
    • addedInput schema / properties / exclusive
      Added value: +{
      +  "description": "Bind the resulting token to the company and use it for that company only. Default false (shared tokens).",
      +  "type": "boolean"
      +}
  2. First observedv1.0.17

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag this as a non-idempotent, open-world mutation; the description goes well beyond them by disclosing the returned fields (linkToken, linkUrl, companyId, exclusive, expiresAt), the 24-hour lifetime, the 5-active-link cap with an organization override, and the revocation consequences of deleting an exclusive token. The only shortfall is that it doesn't say what happens when the link limit is hit.

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 purpose and return values, then the behavioral constraints. The single dense paragraph is efficient and every sentence adds information, but the exclusive-vs-shared explanation is a long run-on that could be split for faster scanning.

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?

No output schema exists, and the description compensates by enumerating the returned fields. Combined with the lifecycle limits, exclusivity semantics, and revocation behavior, an agent has everything needed to call this correctly.

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%, yet the description still adds substantial meaning: exclusive binds the token to one company, requires the certificate to hold SPV rights on its CIF, prevents other organization tokens from serving that company, and makes deletion company-scoped. It also implies companyId is required in that mode, matching the schema note.

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 ('Create a link the certificate holder opens on their own device to authorize ANAF access') and immediately distinguishes the flow from ordinary account-based auth ('no Storno account needed there'). An agent can tell this apart from siblings like anaf_token_link_result or anaf_delete_token without opening a schema.

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 clear context for when this flow applies (certificate holder using their own device) and thoroughly explains how to choose between exclusive=true and the shared-token default, including the constraint that exclusive requires SPV rights on the company's CIF. It does not explicitly name an alternative tool to use instead, so it stops short of a 5.

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