Skip to main content
Glama

Compare Products

compare_products
Read-only

Compare 2–5 products by health score. Returns all evaluations, a ranking by health score (descending), and the best-scoring barcode. Products not found are included as { value, status: 'not_found' } and excluded from the ranking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valuesYesArray of 2–5 barcode values to compare
contextNoEvaluation context (default: retail)
identifierNoBarcode identifier type, applied to all valuesupc
jurisdictionNoFilter regulatory flags: CA, TX, or WV

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds valuable behavioral details including the return structure (all evaluations, ranking by health score, best barcode) and edge-case handling for not-found products, which goes beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the purpose, and every sentence provides useful information. No filler or redundancy.

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?

With no output schema, the description explains return values clearly (evaluations, ranking, best-scoring barcode) and covers the not-found edge case. Input parameters are fully documented in the schema, making the tool easy to invoke correctly.

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% with each parameter well-described. The description adds no additional parameter semantics, so the baseline score of 3 is appropriate.

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 states a specific action ('Compare 2–5 products by health score') with a clear resource and scope. It distinguishes from the sibling tool evaluate_product by focusing on multi-product comparison rather than single evaluation.

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 (comparing multiple products) but does not explicitly state when to use it versus evaluate_product, nor provide exclusions or conditions. No alternative tool is named.

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.

TDQS

A4.1/5.0
Disambiguation5/5

The two tools have clearly distinct purposes: evaluate_product is for a single product's health evaluation, while compare_products is for ranking multiple products. There is no overlap in their inputs or outputs, making them easy for an agent to distinguish.

Naming Consistency5/5

Both tools follow a consistent verb_noun pattern using snake_case: evaluate_product and compare_products. The singular/plural noun appropriately reflects whether the action involves one or many products.

Tool Count3/5

With only two tools, the server feels thin and is on the lower end of what is considered well-scoped. However, the two tools do cover the server's core purpose of evaluating and comparing products, so it is not excessive or insufficient for that narrow domain.

Completeness5/5

For a barcode-based product scoring service, the combination of single-product evaluation and multi-product comparison covers the essential workflows. There are no obvious missing operations since the service is read-only and focuses on analysis rather than CRUD.

Resources