get_alarms
Retrieve active system alarms from VergeOS virtualization platforms to monitor cluster health and identify operational issues.
Instructions
Get active system alarms
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_alarms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:222-224 (handler)Core handler function for the get_alarms tool. Makes an authenticated API request to the VergeOS endpoint /api/v4/alarms?fields=most to retrieve active system alarms.
async getAlarms() { return this.request("/api/v4/alarms?fields=most"); } - src/index.js:516-522 (schema)Schema definition for the get_alarms tool, including name, description, and empty input schema (no parameters required). Part of the TOOLS array used for ListTools response.
name: "get_alarms", description: "Get active system alarms", inputSchema: { type: "object", properties: {}, }, }, - src/index.js:606-611 (registration)Tool registration and dispatch logic in the MCP CallToolRequestSchema handler. The switch case for "get_alarms" invokes the api.getAlarms() handler.
case "get_logs": result = await api.getLogs(args?.limit || 50); break; case "get_alarms": result = await api.getAlarms(); break;