Create Monitor
create_monitorCreate persistent monitors that track URLs, pricing pages, package versions, endpoint status, vendor claims, or custom keyword patterns on a recurring schedule.
Instructions
Create a persistent monitor that tracks a URL, pricing page, package version, endpoint status, vendor claim, or custom keyword pattern over time. Monitors run automatically on their configured schedule (hourly/daily/weekly) via the Cloudflare cron trigger, or on demand with run_monitor_now. Results are stored in the Durable Object SQLite database. Requires a team API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable name for this monitor. | |
| target_type | Yes | What to monitor. url/endpoint: HTTP reachability and status. pricing_page: pricing signals (prices, plans, free tier). package: package version on npm or pypi (target_value as 'npm:pkg-name' or 'pypi:pkg-name'). vendor_claim: keyword presence at a URL (target_value=claim text, instructions=URL to check). custom_prompt: comma-separated keywords checked against a URL (target_value=URL, instructions=keywords). | |
| target_value | Yes | Primary target. For url/endpoint/pricing_page/custom_prompt: a public https URL. For package: 'npm:package-name' or 'pypi:package-name'. For vendor_claim: the claim text to search for. | |
| instructions | No | Supplementary instructions. For vendor_claim: the URL to check. For custom_prompt: comma-separated keywords. Optional for other types. | |
| schedule | No | How often the monitor runs automatically. manual means only via run_monitor_now. | daily |
| notification_destination | No | Optional destination for change alerts (email or webhook URL). Stored for future use. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique monitor ID. | |
| name | Yes | Monitor name. | |
| target_type | Yes | Monitor target type. | |
| target_value | Yes | Monitor target value. | |
| schedule | Yes | Monitor schedule. | |
| created_at | Yes | Creation timestamp ISO 8601. | |
| error | No | Error message if creation failed. |