Skip to main content
Glama

allergeni

Allergeni di un prodotto da codice barcode: normalizzati ai 14 allergeni UE (glutine, crostacei, uova, pesce, arachidi, soia, latte, frutta a guscio, sedano, solfiti, senape, lupino, sesamo, molluschi), con flag contiene vero/falso su un allergene dato. Esempio: codice='8001234567890', allergene='glutine'.

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": {
      "codice": "<codice>"
    },
    "name": "allergeni"
  }
}

Input Schema

NameRequiredDescriptionDefault
codiceYes
allergeneNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that output is normalized to the 14 EU allergens and that a true/false 'contiene' flag is returned for a given allergen, which is real behavioral context. It says nothing about authentication, rate limits, behavior when the barcode is unknown, or what is returned when 'allergene' is omitted.

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?

One dense sentence plus a compact example; the enumeration of the 14 allergens is long but directly serves the normalization claim. The key facts (source, normalization, boolean flag) are front-loaded with no filler.

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 a two-parameter lookup tool with no output schema and no annotations, the description covers purpose and both parameters well. It is incomplete on failure modes (invalid or unknown barcode) and on the omitted-'allergene' case, which the agent needs in order to call it correctly.

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 0%, so the description must explain the parameters, and it does: 'codice' is a barcode code, 'allergene' selects one of the 14 EU allergens for the boolean flag, and the example shows both values concretely. It does not state what happens when the optional 'allergene' (default empty string) is omitted, leaving a real ambiguity.

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 names a specific operation and resource: it retrieves a product's allergens from a barcode and normalizes them to the 14 EU allergens. The keyword and normalization scope make the tool identifiable, and the example clarifies intent. It stops short of explaining how this differs from the sibling 'barcode' tool, so it loses a point.

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 shown by example ('codice=8001234567890', allergene='glutine'), so an agent can infer that a barcode is the required input. However, there is no explicit guidance on when to choose this tool over 'barcode' or 'product_search', and no exclusions or prerequisites are stated.

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.