Skip to main content
Glama

joiva_add_barcode

Add a missing barcode (EAN/UPC) to a food in Joiva's shared catalog, by the same additive path as the scan button in the Joiva app, e.g. when the user reads the number off a pack of a product Joiva already knows ('der Skyr hat die 5700381170785'). Only an empty field is filled: an existing barcode is never overwritten, and a code that already belongs to another catalog row becomes a duplicate report for review instead of a second carrier. The check digit is verified, so a mistyped number is refused rather than stored. Nutrient values stay untouched, and the generic row without a brand ('Apfel') is refused on purpose, because that row belongs to every user. The food is identified by its catalog id (foodItemId).

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": {
      "foodItemId": "<foodItemId>",
      "barcode": "<barcode>"
    },
    "name": "joiva_add_barcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
barcodeYesEAN-8, EAN-13 or UPC-A digits as printed under the barcode
foodItemIdYesCatalog id of the food (`id` in catalog search results, `foodItemId` in a log entry)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false, openWorldHint=true, destructiveHint=false and idempotentHint=false; the description goes well beyond that by disclosing the mutation's boundary (fill-empty only, never overwrite), check-digit validation, the duplicate-report resolution path, and that nutrients are untouched. It does not describe what a successful call returns, which is the main remaining gap.

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?

Purpose and the additive-path analogy are front-loaded, and each following sentence carries distinct operational information (empty-only, duplicate handling, check digit, nutrients, generic row). The dense single paragraph is efficient but slightly overstuffed; the German-language aside could be trimmed without losing meaning.

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 two-parameter write with full schema coverage and no output schema, the description covers preconditions, failure modes, and side effects thoroughly. Only the shape of the success/duplicate response is left to inference.

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 EAN-8/EAN-13/UPC-A format and the uuid catalog id are already documented. The description reinforces that foodItemId is the catalog id used in search results and log entries, but adds little syntax or constraint detail beyond the schema.

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 ('Add a missing barcode (EAN/UPC) to a food in Joiva's shared catalog') and immediately narrows scope with 'missing' and 'Only an empty field is filled.' An agent can distinguish this from catalog-writing siblings without opening the schema.

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?

Gives concrete when-to-use context with a real example ('when the user reads the number off a pack of a product Joiva already knows') and explicit when-not cases: never overwrite an existing barcode, refuse branded-generic rows like 'Apfel', and route codes owned by another row to a duplicate report instead of creating a second carrier.

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