MCP tool: what_changed
purpose
Measured changes on a watch_free host (price, payTo, valid 402, listing or status, tools hash) with receipt links. Free. Required: handle (token is the same value, used only when handle is omitted). Optional: since (ISO-8601), limit (1–100, default 50).
call
Protocol: MCP Streamable HTTP. POST https://botsrated.com/mcp Headers: Content-Type: application/json Accept: application/json, text/event-stream No auth. GET /mcp returns 405 (live). Start with tools/list if needed.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "what_changed",
"arguments": {
"handle": "invalid-handle-example"
}
}
}
The tool result is usually result.content[0].text (a JSON string) plus result.structuredContent. Paid tools that are unpaid return HTTP 200 with a PaymentRequired payload inside the tool result (not a JSON-RPC error). result.isError is true for tool-level errors such as missing fields or invalid_handle.
sample_response
source: live code. Success: charged false, handle, plan "alerts-free", host, hosts, since, until, window (since, until, basis, default_when_omitted), events[] (each with receipt_url when a receipt was stored), note, next. Errors: missing_handle, invalid_handle, not_a_free_watch, expired_handle, confirm_email_first, invalid_since. fetched: live production, 24 Nov 2026 (counts redacted) trimmed: true
{
"error": {
"code": "invalid_handle",
"message": "That handle is not a free watch handle. Pass the handle from watch_free. Nothing else was returned.",
"charged": false
},
"charged": false,
"next": {
"step": "Next: watch a host free, or check again later.",
"receipt_url": null,
"watch_free": null,
"check_again": true
}
}
errors
| code | when | fix |
|---|---|---|
| invalid_handle (live) | Handle is not a free watch handle. isError: true, charged: false. | Pass the handle returned by watch_free (same value as token). |
| missing handle | Schema requires handle. | Call watch_free first, or pass token if the client stores it under that name. |
notes
- No direct public HTTP twin for "what_changed" was listed in OpenAPI (free watches are created via POST /v1/alerts/subscribe; change history for plan hosts is GET /v1/export/changes.ndjson, Desk Pro only).
notes
Example of the success shape (field names from the live code; values are placeholders):
{
"charged": false,
"handle": "brs_<handle>",
"plan": "alerts-free",
"host": "api.agentweather.io",
"hosts": ["api.agentweather.io"],
"since": "<time>",
"until": "<time>",
"window": { "since": "<time>", "until": "<time>", "basis": "since_watch_created", "default_when_omitted": "since_watch_created" },
"events": [],
"note": "Measured changes on this free watch: price, payTo, valid 402, listing or status, and tools-hash changes already stored. ...",
"next": { "step": "Call what_changed again with this same handle. ...", "tool": "what_changed", "handle": "brs_<handle>" }
}