vs_monitors_get
Retrieve detailed information for a specific monitor, including current status, last check, and configuration.
Instructions
Fetch a single monitor by id, including its current status, last check, and configuration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Monitor id (cuid). |
Implementation Reference
- src/tools.ts:199-201 (handler)The handler function for 'vs_monitors_get'. It extracts the 'id' argument and makes a GET request to /api/monitors/{id}.
handler: async (args, client) => client.request('GET', `/api/monitors/${encodeURIComponent(requireString(args, 'id'))}`), }, - src/tools.ts:190-197 (schema)Input schema for 'vs_monitors_get': requires a string 'id' (monitor id, cuid format).
inputSchema: { type: 'object', properties: { id: { ...STR, description: 'Monitor id (cuid).' }, }, required: ['id'], additionalProperties: false, }, - src/tools.ts:186-201 (registration)Full tool registration entry for 'vs_monitors_get' in the TOOLS array, with name, description, inputSchema, requiresAuth flag, and handler.
{ name: 'vs_monitors_get', description: 'Fetch a single monitor by id, including its current status, last check, and configuration.', inputSchema: { type: 'object', properties: { id: { ...STR, description: 'Monitor id (cuid).' }, }, required: ['id'], additionalProperties: false, }, requiresAuth: true, handler: async (args, client) => client.request('GET', `/api/monitors/${encodeURIComponent(requireString(args, 'id'))}`), }, - src/tools.ts:42-46 (helper)Helper function 'requireString' used by the handler to extract and validate the required 'id' argument.
function requireString(args: Record<string, unknown>, key: string): string { const v = pickString(args, key); if (!v) throw new Error(`Argument "${key}" (string) is required.`); return v; }