Skip to main content
Glama

compare_prices

Compare prices for a specific product across multiple merchants.

Finds the same product at different retailers and shows price differences.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idNoOptional session identifier to link tool calls in one conversation.
product_nameYesSpecific product to compare prices for, e.g. 'Nike Pegasus 41'

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Optional session identifier to link tool calls in one conversation.",
      +  "title": "Session Id"
      +}
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the transparency burden. It discloses that it finds the same product and shows price differences, but does not mention data freshness, merchant coverage, or whether it performs live lookups. Basic behavior is clear but not deeply disclosed.

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 concise sentences that lead with the main purpose and add a clarifying second sentence. No unnecessary detail or repetition.

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

Completeness4/5

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

For a simple comparison tool with a full output schema and well-documented parameters, the description is largely sufficient. It could be more complete with explicit usage guidance or alternative tool references, but overall it supports correct selection and invocation.

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?

The input schema already provides full descriptions for both parameters, including an example for product_name. The description adds little beyond the schema, 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 clearly states the tool compares prices for a specific product across multiple merchants and shows price differences. This specific verb-resource pairing distinguishes it from sibling tools like search_products and find_deals.

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 intended context is clear: use when you want to compare the same product's prices at different retailers. However, it does not explicitly mention when not to use it or name alternatives such as find_deals or search_products.

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.

Resources