Skip to main content
Glama

barcode_image

Identifica un prodotto da codice barcode e scarica la sua immagine (base64). 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_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
codiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/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 disclose the return payload format (base64 image), which is genuinely useful and beyond the schema, but omits error behavior for unknown or malformed barcodes, image size/aspect, and whether a network download is involved or can fail.

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?

Two short sentences, front-loaded with the action and return type, followed by a single illustrative example that earns its place by pinning down the parameter format.

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 tool with no output schema or annotations, the definition covers what it does, the return encoding, and an input example. Remaining gaps (failure modes, image characteristics) are minor for this complexity level.

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 0% and the only parameter is bare, so the description must compensate; it does partly by labeling 'codice' as a barcode code and supplying a concrete EAN-13 style example value. It still does not state which symbologies are accepted or whether check digits/format are validated.

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?

States a specific verb-and-resource pair: identify a product from a barcode code and download its image in base64. Naming the base64 payload distinguishes it from a plain data lookup such as the sibling 'barcode' or a generic 'immagine' fetch, but it never explicitly contrasts itself with those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not guidance: nothing says to call this instead of 'barcode' when only product data is wanted, or instead of 'immagine' when a picture is needed. The example invocation illustrates input syntax rather than selection context, which is the only implicit usage signal present.

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.