check_status
Verify the API connectivity and response status for Erick Wendel's content server to ensure reliable access to talks, blogs, and videos.
Instructions
Check if the API is alive and responding.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/status.ts:12-27 (handler)The handler function for the 'check_status' tool. It calls checkApiStatus() to check the API health and returns an MCP response with the status.handler: async (): Promise<McpResponse> => { try { const result = await checkApiStatus(); const content: McpTextContent = { type: "text", text: `API Status: ${result.isAlive ? "Online" : "Offline"}` }; return { content: [content], }; } catch (error) { throw new Error(`Failed to check API status: ${error.message}`); } }
- src/index.ts:42-47 (registration)Registration of the checkStatusTool in the MCP server using server.tool().server.tool( checkStatusTool.name, checkStatusTool.description, checkStatusTool.parameters, checkStatusTool.handler );
- src/config/api.ts:29-32 (schema)Configuration schema for the check_status tool, providing name and description used in the tool definition.status: { name: "check_status", description: "Check if the API is alive and responding." }
- src/services/api.ts:246-250 (helper)Helper function checkApiStatus() that queries the GraphQL API's isAlive field to check status.export async function checkApiStatus(): Promise<StatusResponse> { return await client.query({ isAlive: true, }) as StatusResponse; }
- src/tools/status.ts:11-11 (schema)Input parameters schema for the check_status tool (no parameters required).parameters: {},