Skip to main content
Glama

Aggiungi un’azienda

azienda_crea
Idempotent

Aggiunge UNA singola azienda che conosci già per nome (es. una segnalazione, un contatto di una fiera): stessi controlli del portale. Per cercare fra le tue aziende usa cerca_aziende, per trovarne di nuove in una zona avvia_ricerca. Se esiste già (stessa P.IVA, stesso sito o stesso nome nello stesso comune) restituisce l’id di quella esistente. Con il sito, DeviL lo legge e calcola il punteggio.

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": {
      "ragione_sociale": "<ragione_sociale>"
    },
    "name": "azienda_crea"
  }
}

Input Schema

NameRequiredDescriptionDefault
sitoNosito web, es. https://www.azienda.it
emailNoemail generica dell’azienda (es. info@): non è un consenso a scrivere
comuneNocomune della sede
settoreNosettore in parole tue, es. "impiantistica elettrica"
rapportoNobase giuridica col referente: none (nessun rapporto), legitimate_interest (conosciuto), contract (cliente)
telefonoNotelefono dell’azienda
provinciaNosigla, es. CO
referenteNonome e cognome, se noto e pubblico
partita_ivaNopartita IVA, se nota: serve anche a riconoscere i doppioni
ragione_socialeYesnome dell’azienda (2-200 caratteri)
ruolo_referenteNoruolo del referente, es. titolare, ufficio tecnico

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare write, idempotent, non-destructive and closed-world, and the description adds real value on top: duplicate matching keys (P.IVA, sito, same name within a comune), the fact that an existing id is returned instead of an error, and the server-side website fetch plus scoring side effect. What is missing is any statement about what the scoring actually does, how long the fetch takes, or what the caller gets back beyond an id.

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 action and scope, then alternatives, then duplicate behavior and the website side effect. Dense but waste-free; the phrase "stessi controlli del portale" is the one vague fragment that does not carry information for an agent.

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

Completeness3/5

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

For an eleven-parameter write tool with no output schema, the description covers the action, the dedup outcome and the implicit return of an id, which is most of what an agent needs. It still leaves the caller guessing about the response shape after a successful create and about the timing/effects of the site-scraping step.

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 the schema already explains all eleven fields including the rapporto enum. The description only echoes ragione_sociale, partita_iva and sito in the context of duplicate detection, adding no syntax or constraint beyond the schema; baseline 3 applies.

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 ("Aggiunge UNA singola azienda") and immediately bounds the scope: an already-known company supplied by name. Capitalized UNA plus the examples distinguish it cleanly from bulk search and discovery tools.

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?

Explicitly routes the agent: cerca_aziende to search among existing companies, avvia_ricerca to discover new ones in an area, and this tool only when you already know the name. The dedup rule also tells the agent it is safe to call when unsure whether the record exists.

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.