Skip to main content
Glama

barcode

Identifica un prodotto alimentare da codice EAN/UPC. Restituisce nome, marca, categoria, nutrizione completa (vitamine, omega, minerali), additivi, allergeni, paese, NutriScore, NOVA, EcoScore. DB locale: ~4,6M prodotti (tutti i paesi del mondo). Esempio: codice='5449000000996'.

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

Input Schema

NameRequiredDescriptionDefault
codiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does well by disclosing the local database (~4.6M products, worldwide) and the full field set returned, but it says nothing about what happens when a code is not found, and there are no notes on authentication, rate limits, or response format.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded in the first clause, followed by a compact enumerations of return fields, data source and coverage, and a worked example. No sentence is filler and the whole definition is one dense paragraph.

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 one-parameter lookup with no output schema and no annotations, the description does the heavy lifting: it describes the return payload, the data source and its scale. The only meaningful omission is the not-found behavior, which matters for a barcode lookup where misses are common.

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% for the single 'codice' parameter, so the description must compensate, and it does: it specifies that the value is an EAN/UPC barcode and gives a concrete example ('5449000000996'). It stops short of stating accepted barcode lengths (EAN-8/13, UPC-A) or whether check digits and formatting characters are tolerated.

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 verb and resource: identifying a food product from an EAN/UPC code, and it enumerates the returned data, which is concrete. It does not explicitly distinguish itself from sibling tools such as barcode_image or product_search, so the differentiation is left implicit rather than stated.

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 only implied: the agent can infer this tool is for when it already has a numeric barcode string, and the example code reinforces that. There is no explicit statement about when not to use it, no alternative named, and no guidance for image-based barcodes or partial matches.

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.