product_barcode
Food product by barcode: name, brand, ingredients, allergens, Nutri-Score, nutrition per 100g. (cost: 1 credit)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | No | string, required |
Food product by barcode: name, brand, ingredients, allergens, Nutri-Score, nutrition per 100g. (cost: 1 credit)
| Name | Required | Description | Default |
|---|---|---|---|
| barcode | No | string, required |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description's meaningful addition is the '(cost: 1 credit)' note, which lets the agent budget calls — useful context not present in structured fields. It says nothing about miss/not-found behavior or coverage limits of the barcode database.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single compact sentence, front-loaded with the resource and identifier, followed by the return fields and the cost. Nothing is redundant, though the colon-list style reads as a fragment rather than a complete sentence.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-parameter, read-only lookup with no output schema, the description does the important work: it lists the returned fields so the agent can judge relevance without a schema. The gap is failure-mode behavior (unknown barcode, rate/credit exhaustion) rather than the core contract.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Only one parameter and schema coverage is reported at 100%, so the schema carries the load; the schema text itself is thin ('string, required'). The description adds that the string is a product barcode, which implies EAN/UPC style identifiers, but gives no accepted formats or length constraints. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Names the resource (food product) and the lookup key (barcode) and enumerates the payload fields returned (name, brand, ingredients, allergens, Nutri-Score, nutrition per 100g), so the agent knows exactly what it gets. It stops short of an explicit verb and never differentiates itself from adjacent food/safety siblings such as food_alerts or product_recalls.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance at all beyond the implicit 'you have a barcode' framing. Nothing tells the agent whether to prefer food_alerts or product_recalls for related questions, or what to do when no product matches the barcode.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.