Skip to main content
Glama

Compare phones side by side

mi_compare
Read-onlyIdempotent

Compare 2 to 4 phones, tablets, or watches side by side, showing price range, rating, and spec rows; differing specs only by default.

Instructions

Compare 2 to 4 phones, tablets or watches on Mobile.ir: price range, rating and each spec row side by side.

values follow the order of phones. Only differing rows by default.

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": {
      "ids": "<ids>"
    },
    "name": "mi_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesProduct ids from mi_search/mi_find.
sectionsNoDefault all.
only_differencesNoFalse returns every row.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.2.0
    • changedInput schema / properties / ids / description
      Previous value: -"2 to 4 product ids from mi_search or mi_find."New value: +"Product ids from mi_search/mi_find."
    • changedInput schema / properties / only_differences / description
      Previous value: -"Keep only the spec rows where the products differ (default); false returns every row."New value: +"False returns every row."
    • removedInput schema / properties / sections / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "enum": [
      -        "general",
      -        "body",
      -        "display",
      -        "memory",
      -        "camera",
      -        "connectivity",
      -        "features",
      -        "battery",
      -        "misc"
      -      ],
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / sections / description
      Previous value: -"Limit to these spec sections, e.g. ['display','battery']; default all."New value: +"Default all."
    • addedInput schema / properties / sections / items
      Added value: +{
      +  "enum": [
      +    "general",
      +    "body",
      +    "display",
      +    "memory",
      +    "camera",
      +    "connectivity",
      +    "features",
      +    "battery",
      +    "misc"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / sections / type
      Added value: +[
      +  "array",
      +  "null"
      +]
  2. First observedv0.1.1

TDQS

A3.9/5.0
Behavior4/5

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, and the description still adds non-obvious behavior: results are filtered to differing rows by default and alignment follows the input order. What it omits is failure behavior for mismatched product types or invalid ids, which matters for an open-world lookup.

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?

Two short sentences, front-loaded with the verb, the resource and the count bound. The trailing second line is terse to the point of opaque, since it leans on backticked names absent from the schema, but there is no filler.

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 read-only comparison tool with no output schema, the description usefully previews the returned shape (price range, rating, per-spec rows) and the default difference filtering. It is not fully complete on edge cases such as mixed categories or what an invalid id yields, but the essentials for calling it correctly are present.

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 coverage is 100%, so the baseline is 3 and the schema already documents ids, sections and only_differences with defaults and enums. The description adds the ordering guarantee but does so using identifiers ('values', 'phones') that do not exist in the schema, creating mild terminology drift rather than clearer parameter meaning.

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?

States a specific verb and resource with hard scope bounds: 'Compare 2 to 4 phones, tablets or watches on Mobile.ir', and enumerates what is shown (price range, rating, spec rows side by side). An agent can distinguish this from sibling listing/lookup tools like mi_search, mi_find and mi_phone without opening the schema.

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 '2 to 4' bound and the 'ids from mi_search/mi_find' note (in the schema) imply this is the downstream comparison step after a search, but the description never names an alternative or a when-not condition. Nothing tells the agent what to do for a single product, which pushes it toward mi_phone only by inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.