Skip to main content
Glama

Halal or Not: Check a product by barcode

halalornot_check_product_by_barcode
Read-onlyIdempotent

Halal or Not. Check a product by barcode. Looks the barcode up in Open Food Facts, then Open Beauty Facts, and checks its ingredients.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
barcodeYesEAN-13, EAN-8 or UPC barcode digits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, open-world behavior, so the bar is lower; the description still adds real value by disclosing the two-step external lookup chain and that the result derives from ingredient checking. It does not say what happens when the barcode is absent from both databases, which is the remaining behavioral 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?

Three short sentences with the operation front-loaded, which is appropriately sized for a single-parameter lookup. The opening 'Halal or Not.' restates the title and is mildly redundant, costing it a perfect score.

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 simple one-parameter lookup this covers the essentials, but there is no output schema and the description never characterizes the response (e.g. halal verdict, matched database, confidence) or the not-found path. That leaves a meaningful gap for an agent that must interpret the result.

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 description coverage is 100%, so the barcode format (EAN-13, EAN-8, UPC) is already fully documented in the schema. The description adds no syntax or validation detail beyond that, making the baseline 3 correct.

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 ('check a product by barcode') and adds the data-source chain (Open Food Facts, then Open Beauty Facts), which distinguishes it from the nutrition-oriented barcode sibling. It stops short of explicitly differentiating from halalornot_check_ingredients or halalornot_search_products, so it is clear but not fully sibling-differentiated.

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?

The barcode-driven nature implies when to use it, but the description never states when to prefer this over halalornot_search_products (name search) or halalornot_check_ingredients (raw ingredient list). No exclusions or prerequisites are given, leaving the agent to infer the routing.

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.