Saved watches
dv_watchSave 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
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | تهران | |
| name | No | create: a label. | |
| limit | No | check: max ads per watch. | |
| query | No | ||
| action | Yes | 'create' saves a search, 'check' returns ads newer than the last check, 'list', 'delete'. | |
| exclude | No | ||
| filters | No | ||
| category | No | ||
| keywords | No | ||
| watch_id | No | check / delete: id from 'create' or 'list'; check without it checks all. | |
| districts | No | ||
| max_price | No | Toman; monthly rent in rent categories. | |
| min_price | No | Toman; monthly rent in rent categories. | |
| brand_model | No |