Skip to main content
Glama

Compare ads

dv_compare
Read-onlyIdempotent

Compare Divar ads side by side to see each price, only the specs that differ, the cheapest option, and savings percentage (per m² when every ad has an area).

Instructions

Side by side: the price of each ad and only the specs that differ (the identical ones are listed once).

Gives cheapest and cheapest_saves_pct (per m2 when every ad has an area). For ads of one kind.

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": {
      "tokens": "<tokens>"
    },
    "name": "dv_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokensYesAd tokens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / tokens / description
      Previous value: -"2 to 6 ad tokens to compare."New value: +"Ad tokens."
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds return-value behavior that annotations cannot: only differing specs are shown, identical ones are collapsed, and the result carries `cheapest` and `cheapest_saves_pct`, with the per-m2 normalization applied conditionally when every ad has an area. That conditional is a meaningful behavioral detail; what's missing is any mention of failure modes when the ads are not of one kind.

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?

Three short lines, front-loaded with what the output looks like rather than with boilerplate. The parenthetical about identical specs is slightly awkward but carries real information; the 'For ads of one kind' constraint would read better at the top.

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?

With no output schema, the description is the only source for return values, and it does cover the headline fields and the differing-specs rule. For a one-parameter read tool that is largely sufficient; the gap is behavior when tokens span multiple kinds or an ad lacks area data.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter is documented as 'Ad tokens', so the baseline would be 3. The description earns above baseline by constraining the token set semantically — the ads must all be of one kind for the comparison to be meaningful, which the schema does not say.

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?

The description gives a concrete verb and resource: it puts ads 'side by side' showing each ad's price plus only the specs that differ. That is specific enough to separate it from list/search siblings such as dv_search or dv_posts. It stops short of naming a nearby sibling like dv_similar or dv_cheapest, so the differentiation is inferred rather than stated.

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?

'For ads of one kind' gives one real precondition (the tokens must be homogeneous), which is a genuine usage constraint. However, there is no explicit statement of when to pick this over dv_similar (find comparable ads) or dv_cheapest (find the cheapest ad), leaving the agent to infer the boundary.

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