Skip to main content
Glama

score_product

Retrieve product quality scores by barcode, with category-specific metrics for food, skincare, and supplement, and per-lens condition fit, always including data quality confidence.

Instructions

Get Clarity's product quality score by barcode. Returns category-specific scores (food: nutrition/additive/processing/organic; skincare: irritation/allergen/endocrine/condition; supplement: transparency/safety/label_quality/complexity — dose transparency penalizes proprietary blends, safety flags high-risk botanicals) — these are DISTINCT and never merged — plus per-lens fit with match coverage. Always includes data_quality/coverage so a score is never given without its confidence.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lensNoCondition lens for per-lens fit
barcodeYesUPC/EAN barcode, 6-14 digits
categoryNoProduct category (omit for auto)
Behavior5/5

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

Given no annotations, the description fully covers behavioral traits: explains that scores are category-specific and never merged, details each category's sub-scores (e.g., food: nutrition/additive/processing/organic), describes per-lens fit, and states that data_quality/coverage is always included. This is comprehensive.

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 reasonably concise, starts with the main purpose, and adds necessary details about categories and data quality. It could be slightly shorter, but every sentence contributes useful information. It is well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Without an output schema, the description must explain return values. It does so thoroughly: category-specific scores, per-lens fit, match coverage, and data_quality/coverage. The parameter schema is complete, so the description compensates for missing output schema.

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?

The input schema has 100% coverage, describing all three parameters. The description adds significant value by explaining the meaning behind the output and category-specific logic, which goes beyond the schema's parameter descriptions. It does not repeat parameter details but enriches context.

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 clearly states it returns a product quality score by barcode, with category-specific scores for food, skincare, and supplement. It also mentions per-lens fit with match coverage. This distinguishes it from sibling tools like strain_lookup or check_ingredient, which serve different purposes.

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

Usage Guidelines4/5

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

The description implies when to use this tool (to get a quality score by barcode) but does not explicitly state when not to use it or provide alternatives. However, the unique nature of the tool (scoring products) is clear, and the sibling list hints at other tools.

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