get_api_status
Monitor AlphaFold API functionality and database metrics to ensure system performance and availability.
Instructions
Check AlphaFold API status and database statistics
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1682-1719 (handler)The handler function that implements the logic for the 'get_api_status' tool. It returns a mock status object with API status, version, database statistics, and endpoints.private async handleGetApiStatus(args: any) { try { // Mock API status check const status = { apiStatus: 'ONLINE', version: '2.0', lastUpdated: new Date().toISOString(), databaseStats: { totalStructures: 200000000, totalOrganisms: 1000000, lastStructureUpdate: '2024-01-15', }, endpoints: { prediction: 'https://alphafold.ebi.ac.uk/api/prediction', search: 'https://alphafold.ebi.ac.uk/api/search', }, }; return { content: [ { type: 'text', text: JSON.stringify(status, null, 2), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error checking API status: ${error instanceof Error ? error.message : 'Unknown error'}`, }, ], isError: true, }; } }
- src/index.ts:563-570 (registration)Registration of the 'get_api_status' tool in the ListTools response, including its name, description, and empty input schema.name: 'get_api_status', description: 'Check AlphaFold API status and database statistics', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/index.ts:621-622 (registration)Dispatch logic in the CallToolRequest handler that calls the get_api_status handler function.case 'get_api_status': return this.handleGetApiStatus(args);