Skip to main content
Glama

Saved watches

dv_watch

Save a Divar search, then run checks to return only ads newer than the last check; state stays local and nothing is pushed automatically.

Instructions

Save a search and later get only the ads that appeared since the last check; stored in a local file, nothing is pushed.

Nothing runs by itself: call check on a schedule or when asked. File: ~/.divar-mcp/state.json (DIVAR_MCP_STATE).

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": {
      "action": "<action>"
    },
    "name": "dv_watch"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoتهران
nameNocreate: a label.
limitNocheck: max ads per watch.
queryNo
actionYes'create' saves a search, 'check' returns ads newer than the last check, 'list', 'delete'.
excludeNo
filtersNo
categoryNo
keywordsNo
watch_idNocheck / delete: id from 'create' or 'list'; check without it checks all.
districtsNo
max_priceNoToman; monthly rent in rent categories.
min_priceNoToman; monthly rent in rent categories.
brand_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv0.3.0
    • changedInput schema / properties / action / description
      Previous value: -"'create' saves a search, 'check' returns the ads newer than the last check and moves the mark, 'list' shows the saved searches, 'delete' removes one."New value: +"'create' saves a search, 'check' returns ads newer than the last check, 'list', 'delete'."
    • removedInput schema / properties / brand_model / description
      Removed value: -"Vehicles, phones: brand/model, e.g. ['پژو 206']."
    • removedInput schema / properties / category / description
      Removed value: -"Category slug or Persian name, e.g. 'light' (cars), 'apartment-sell', 'apartment-rent', 'mobile-phones'."
    • removedInput schema / properties / city / description
      Removed value: -"City name or id; several comma-separated, e.g. 'تهران', 'mashhad', 'تهران,کرج'."
    • removedInput schema / properties / districts / description
      Removed value: -"Neighbourhood names or ids in the one city, e.g. ['ونک']."
    • removedInput schema / properties / exclude / description
      Removed value: -"Drop ads whose title has any of these words."
    • removedInput schema / properties / filters / description
      Removed value: -"Other category filters (keys from dv_filters): {'size': {'min': 80, 'max': 120}, 'rooms': ['دو'], 'parking': true}. Unknown keys are returned in `ignored`."
    • removedInput schema / properties / keywords / description
      Removed value: -"Words that must all be in the title."
    • changedInput schema / properties / limit / description
      Previous value: -"check: max new ads per watch."New value: +"check: max ads per watch."
    • changedInput schema / properties / name / description
      Previous value: -"create: a label for you, e.g. 'cheap Pride in Karaj'."New value: +"create: a label."
    • removedInput schema / properties / query / description
      Removed value: -"Free text in title or description, e.g. 'پراید 111'."
    • changedInput schema / properties / watch_id / description
      Previous value: -"check / delete: the id from 'create' or 'list'. check without it checks every watch."New value: +"check / delete: id from 'create' or 'list'; check without it checks all."
  2. First observedv0.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations only say readOnly=false, openWorld=true, idempotent=false, destructive=false; the description adds genuinely new behavior—state is kept in a local file (~/.divar-mcp/state.json, overridable via DIVAR_MCP_STATE) and 'nothing is pushed'. The no-background-execution note is exactly the kind of stateful nuance an agent needs. It omits what 'delete' actually removes and that checks are per-watch cursored.

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 sentences, purpose front-loaded, with the operational caveat (nothing runs by itself) and file location following. The parenthetical env-var aside is slightly clunky but earns its place; nothing is padded.

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

Completeness2/5

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

For a 14-parameter, four-action tool with nested filters, no output schema, and low schema coverage, the description covers only create/check at a high level and never addresses list or delete. An agent can grasp the purpose but not call most actions correctly from this text alone.

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

Parameters2/5

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

Schema coverage is only 43% across 14 parameters, so the description should compensate but instead says nothing about query/city/category/keywords/filters/exclude/price/limit semantics. Only the `check` action is implicitly linked to behavior; the bulk of the parameters remain defined solely by untyped schema properties or not at all.

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+resource: save a search, then retrieve only ads that appeared since the last check, persisted to a local file. That is more specific than the vague name/title 'Saved watches'. It does not name any sibling (e.g. dv_new_since, dv_search) to differentiate itself, keeping it at 4.

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?

It gives real timing guidance for one action: 'Nothing runs by itself: call `check` on a schedule or when asked', clarifying that the tool is pull-based. But it says nothing about when to prefer create/list/delete over each other, or when to use dv_watch versus dv_new_since or dv_search for recurring monitoring.

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