compare_products
Compare 2 to 5 products side-by-side with normalized attribute table and best-value recommendation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_ids | Yes | Array of product IDs to compare (2-5) |
Compare 2 to 5 products side-by-side with normalized attribute table and best-value recommendation.
| Name | Required | Description | Default |
|---|---|---|---|
| product_ids | Yes | Array of product IDs to compare (2-5) |
Changes observed during successful MCP inspections.
Output schema / (root)Previous value: -{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "additionalProperties": true,
- "properties": {
- "bestValue": {
- "anyOf": [
- {
- "additionalProperties": true,
- "properties": {
- "productId": {
- "type": "string"
- },
- "reason": {
- "type": "string"
- }
- },
- "required": [
- "productId",
- "reason"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "commonFields": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "comparisonTable": {
- "additionalProperties": {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- "type": "object"
- },
- "products": {
- "items": {
- "additionalProperties": true,
- "properties": {
- "attributes": {
- "items": {
- "additionalProperties": true,
- "properties": {
- "key": {
- "type": "string"
- },
- "value": {
- "type": "string"
- }
- },
- "required": [
- "key",
- "value"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "availability": {
- "type": "string"
- },
- "averageRating": {
- "anyOf": [
- {
- "anyOf": [
- {
- "not": {}
- },
- {
- "type": "number"
- }
- ]
- },
- {
- "type": "null"
- }
- ]
- },
- "currency": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "price": {
- "type": "number"
- },
- "rating_provenance": {
- "anyOf": [
- {
- "additionalProperties": true,
- "properties": {
- "note": {
- "type": "string"
- },
- "origin": {
- "const": "merchant",
- "type": "string"
- },
- "strength": {
- "const": "claimed",
- "type": "string"
- },
- "verified": {
- "const": false,
- "type": "boolean"
- }
- },
- "required": [
- "origin",
- "strength",
- "verified",
- "note"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "reviewCount": {
- "type": "number"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "price",
- "currency",
- "availability",
- "reviewCount",
- "attributes"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "recommendation_provenance_warning": {
- "type": "string"
- }
- },
- "required": [
- "products",
- "commonFields",
- "comparisonTable",
- "bestValue"
- ],
- "type": "object"
-}New value: +nullInput schema / additionalPropertiesPrevious value: -falseNew value: +trueOutput schema / additionalPropertiesPrevious value: -falseNew value: +trueOutput schema / properties / bestValue / anyOfPrevious value: -[
- {
- "additionalProperties": false,
- "properties": {
- "productId": {
- "type": "string"
- },
- "reason": {
- "type": "string"
- }
- },
- "required": [
- "productId",
- "reason"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "additionalProperties": true,
+ "properties": {
+ "productId": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "productId",
+ "reason"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]Output schema / properties / products / items / additionalPropertiesPrevious value: -falseNew value: +trueOutput schema / properties / products / items / properties / attributes / items / additionalPropertiesPrevious value: -falseNew value: +trueOutput schema / properties / products / items / properties / rating_provenance / anyOfPrevious value: -[
- {
- "additionalProperties": false,
- "properties": {
- "note": {
- "type": "string"
- },
- "origin": {
- "const": "merchant",
- "type": "string"
- },
- "strength": {
- "const": "claimed",
- "type": "string"
- },
- "verified": {
- "const": false,
- "type": "boolean"
- }
- },
- "required": [
- "origin",
- "strength",
- "verified",
- "note"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "additionalProperties": true,
+ "properties": {
+ "note": {
+ "type": "string"
+ },
+ "origin": {
+ "const": "merchant",
+ "type": "string"
+ },
+ "strength": {
+ "const": "claimed",
+ "type": "string"
+ },
+ "verified": {
+ "const": false,
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "origin",
+ "strength",
+ "verified",
+ "note"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]Input schema / $schemaAdded value: +"http://json-schema.org/draft-07/schema#"Input schema / additionalPropertiesAdded value: +falseInput schema / propertiesAdded value: +{
+ "product_ids": {
+ "description": "Array of product IDs to compare (2-5)",
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 5,
+ "minItems": 2,
+ "type": "array"
+ }
+}Input schema / requiredAdded value: +[
+ "product_ids"
+]Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the bar is lower. The description adds genuinely useful context beyond them by disclosing what the tool produces: a normalized attribute table and a best-value recommendation, which is meaningful since no output schema exists. It does not mention error behavior for invalid or unavailable IDs.
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?
One sentence, front-loaded with the verb and resource, with the constraint and output description packed in without filler. Every clause earns its place.
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 single-parameter read tool with no output schema, the description compensates well by summarizing the return structure and the recommendation behavior, while annotations carry the safety profile. Missing only edge-case handling (invalid IDs, fewer than two valid products), which is a minor gap.
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?
There is a single parameter and schema description coverage is 100%, with minItems/maxItems enforcing the same 2-5 range the description states. The description therefore adds no semantics beyond the schema, so the baseline 3 applies.
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?
States a specific verb (compare) and resource (products) plus the operational scope (2 to 5) and the shape of the result (normalized attribute table, best-value recommendation). It is easy to distinguish from get_product_details or search_products in spirit, but it never names a sibling or explicitly contrasts with them, so it falls short of the 5 tier.
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?
The 2-5 constraint and 'side-by-side' framing imply the usage context (multi-product evaluation), but there is no explicit when-to-use statement, no when-not-to-use, and no named alternative such as search_products or get_product_details. Usage is inferred rather than stated.
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.