Skip to main content
Glama

scan_barcode

Look up a product by barcode to identify flagged ingredients for a health condition and check for FDA recalls.

Instructions

Look up a product by barcode (Open Food Facts / Open Beauty Facts), match its ingredients against Clarity's database, return which ingredients are flagged for the given condition lens, AND flag any active FDA recall for the product (recall_flag + recalls[], sourced from FDA — verify via source_url).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lensNoCondition lensall
barcodeYesUPC/EAN barcode, 6-14 digits
Behavior4/5

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

No annotations exist, so the description carries full burden. It discloses sources (Open Food Facts, FDA), the matching against Clarity's database, and the recall verification via source_url. It does not explicitly state read-only nature, but the actions are clearly non-destructive. No contradictions.

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?

The description is a single sentence that front-loads key actions (look up, match, return, flag). It is informative but slightly long; could be split for readability. No wasted content.

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?

Given no output schema, the description explains returned data (flagged ingredients and recall info with source_url). However, it omits details on the format of flagged ingredients, error handling (e.g., barcode not found), and potential limitations. Adequate but not fully comprehensive.

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 100% with basic descriptions. The tool description adds context: lens is used for flagging ingredients, barcode lookup sources. This enhances understanding beyond schema, meriting a score above the baseline of 3.

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?

The description specifies the tool's purpose: look up a barcode from Open Food Facts / Open Beauty Facts, match ingredients against Clarity's database, flag ingredients for a given lens, and flag FDA recalls. It clearly distinguishes from siblings like check_ingredient or check_recall by combining these actions.

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 description implies usage when a barcode is available and ingredient/recall analysis is needed, but does not explicitly state when to use it over alternatives (e.g., check_ingredient for ingredient-by-name queries). No exclusion criteria or comparative guidance is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thehealthai/clarity-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server