health
Monitor the Meilisearch server's operational status to ensure it is functioning correctly. Use this tool to quickly verify health without additional inputs, maintaining reliable search and document management.
Instructions
Check if the Meilisearch server is healthy
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/system-tools.ts:24-33 (handler)Handler function for the 'health' tool. It makes a GET request to the Meilisearch '/health' endpoint and returns the response as text content, or an error response if failed.async () => { try { const response = await apiClient.get('/health'); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } }
- src/tools/system-tools.ts:20-34 (registration)Registers the 'health' tool with the MCP server. Name: 'health', description: 'Check if the Meilisearch server is healthy', no input parameters.server.tool( 'health', 'Check if the Meilisearch server is healthy', {}, async () => { try { const response = await apiClient.get('/health'); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } );