check-health
Monitor AgentOracle API availability and retrieve service status details including uptime, model information, and current pricing.
Instructions
Check if the AgentOracle API is online and get service status including uptime, model info, and pricing.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:145-161 (handler)The tool 'check-health' is defined and its handler implemented here, performing a fetch to the HEALTH_ENDPOINT.
server.tool( "check-health", "Check if the AgentOracle API is online and get service status including uptime, model info, and pricing.", {}, async () => { try { const response = await fetch(HEALTH_ENDPOINT); const data = await response.json(); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `AgentOracle health check failed: ${error instanceof Error ? error.message : String(error)}` }], isError: true, }; } } );