Skip to main content
Glama

Middle Eastern Foods UK Prices

Compare two products

compare_products
Read-onlyIdempotent

Side-by-side comparison of two products: price, price per 100g, size, shops and ingredients.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug_a": "<slug_a>",
      "slug_b": "<slug_b>"
    },
    "name": "compare_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
slug_aYesSlug of the first product, from search_products or cheapest results.
slug_bYesSlug of the second product to compare against the first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description contributes the value of listing which attributes are compared, but says nothing about behavior when one slug is invalid, whether missing data is omitted or nulled, or result formatting.

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?

A single compact sentence that front-loads the comparison framing and then lists the compared fields. No filler, though it reads as a noun phrase rather than a sentence with a verb, which slightly weakens scannability.

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?

There is no output schema, so the description carries the burden of describing the result, and it does so by naming the five compared dimensions. For a simple two-parameter read tool with full annotation coverage, that is close to sufficient; only edge-case behavior on bad slugs is unaddressed.

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%, so both slugs are already documented, including the hint that slug_a comes from search_products or cheapest. The description adds no meaning beyond that — no note on ordering effects (which side is 'a' vs 'b') or whether either slug can be reused from a prior comparison. Baseline 3 applies given full schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific operation (side-by-side comparison of two products) and enumerates the compared dimensions: price, price per 100g, size, shops, ingredients. That makes it distinct from get_product or search_products without naming them. It stops short of explicitly contrasting with siblings, so it's clear but not fully differentiated.

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 two-product comparison framing implies the use case (evaluate alternatives), and the schema note that slugs come from search_products or cheapest hints at the upstream workflow. There is no explicit statement of when to prefer this over calling get_product twice, nor any exclusions.

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