vs_monitors_uptime
Retrieve uptime percentage and outage breakdown for a monitor within a chosen time window, defaulting to the last 30 days.
Instructions
Fetch the uptime percentage and outage breakdown for a monitor over a window (default last 30 days).
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": {
"id": "<id>"
},
"name": "vs_monitors_uptime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Monitor id. | |
| window | No | Window: 24h, 7d, 30d, 90d, 365d. Default 30d. |
Implementation Reference
- src/tools.ts:276-279 (handler)The handler function for vs_monitors_uptime. Makes a GET request to /api/monitors/:id/uptime with optional 'window' query parameter.
handler: async (args, client) => client.request('GET', `/api/monitors/${encodeURIComponent(requireString(args, 'id'))}/uptime`, { query: { window: pickString(args, 'window') }, }),