Skip to main content
Glama

Imperio — Italian Tax & Compliance Tools

Look up ATECO code

lookup_ateco
Read-onlyIdempotent

Looks up and validates an ISTAT ATECO activity code (2007/2022 or 2025) and returns its description and hierarchy, with the official correspondence between the two editions: for an ATECO 2007/2022 code, the corresponding ATECO 2025 codes in ateco_2025 (copertura TOTALE or PARZIALE = full or partial coverage, ambiguo if there is more than one); for an ATECO 2025 code, the corresponding 2007/2022 code, to which the forfettario coefficients are tied.

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": {
      "code": "<code>"
    },
    "name": "lookup_ateco"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe ATECO 2007/2022 or 2025 code (digits and dots only, e.g. 62.01).
atecoNoAlias of `code` (ATECO activity code): the same value, accepted because other tools of this server use this name. If you send both names, the values must match.
codice_atecoNoAlias of `code` (ATECO activity code): the same value, accepted because other tools of this server use this name. If you send both names, the values must match.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / ateco / description
      Previous value: -"Alias di `code` (codice ATECO): stesso dato, accettato perché altri tool di questo server lo chiamano così. Se mandi entrambi i nomi, i valori devono coincidere."New value: +"Alias of `code` (ATECO activity code): the same value, accepted because other tools of this server use this name. If you send both names, the values must match."
    • changedInput schema / properties / codice_ateco / description
      Previous value: -"Alias di `code` (codice ATECO): stesso dato, accettato perché altri tool di questo server lo chiamano così. Se mandi entrambi i nomi, i valori devono coincidere."New value: +"Alias of `code` (ATECO activity code): the same value, accepted because other tools of this server use this name. If you send both names, the values must match."
  2. Changed1 schema field changed
    • changedInput schema / properties / code / description
      Previous value: -"Il codice ATECO 2007/2022 o 2025 (solo cifre e punti, es. 62.01)."New value: +"The ATECO 2007/2022 or 2025 code (digits and dots only, e.g. 62.01)."
  3. Changed3 schema fields changed
    • addedInput schema / properties / ateco
      Added value: +{
      +  "description": "Alias di `code` (codice ATECO): stesso dato, accettato perché altri tool di questo server lo chiamano così. Se mandi entrambi i nomi, i valori devono coincidere.",
      +  "maxLength": 12,
      +  "pattern": "^[0-9.]{1,12}$",
      +  "type": "string"
      +}
    • changedInput schema / properties / code / description
      Previous value: -"Il codice ATECO (solo cifre e punti, es. 62.01)."New value: +"Il codice ATECO 2007/2022 o 2025 (solo cifre e punti, es. 62.01)."
    • addedInput schema / properties / codice_ateco
      Added value: +{
      +  "description": "Alias di `code` (codice ATECO): stesso dato, accettato perché altri tool di questo server lo chiamano così. Se mandi entrambi i nomi, i valori devono coincidere.",
      +  "maxLength": 12,
      +  "pattern": "^[0-9.]{1,12}$",
      +  "type": "string"
      +}
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-obvious domain context beyond that: the `copertura` TOTALE/PARZIALE semantics, the `ambiguo` case for multiple mappings, and that forfettario coefficients hang off the 2007/2022 edition. A 5 is withheld only because nothing is said about failure behaviour for an unrecognised or unmapped code.

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?

It is one dense sentence with heavy nested parentheses, but it is front-loaded with the core action and no sentence is filler. Slightly loosening the parenthetical clause and the paired edition branches into two sentences would aid scanning without losing content.

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, so the description carries the burden of explaining return values, and it does: description, hierarchy, the `ateco_2025` field with `copertura` and `ambiguo` flags, and the reverse 2007/2022 mapping. For a read-only, idempotent lookup of this complexity, an agent has enough to call it and to 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 the schema already documents `code`, plus the `ateco`/`codice_ateco` aliases and the both-values-must-match rule. The description's only parameter-relevant contribution is the format example (62.01), which the schema also contains. Baseline 3 is appropriate when the schema does the heavy lifting.

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 uses a specific verb ('looks up and validates') and a precisely scoped resource (an ISTAT ATECO activity code, 2007/2022 or 2025), and it spells out what is returned: description, hierarchy, and the official cross-edition correspondence. What it lacks for a 5 is an explicit hand-off to the sibling it is not, e.g. search_ateco (text search) versus this single-code lookup, which the agent must infer.

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?

The edition-dependent behaviour is described well ('for an ATECO 2007/2022 code ... for an ATECO 2025 code'), which implicitly tells the agent when the correspondence output applies. However, there is no explicit when-to-use framing, no statement of what to do when you only have a text description and need a code, and no mention of the sibling search tool as an alternative.

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