info
Retrieve Meilisearch server system information to monitor performance, check status, and verify configuration for search operations.
Instructions
Get the system information of the Meilisearch server
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": "info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/system-tools.ts:58-67 (handler)The handler function for the 'info' tool. It makes a GET request to the root endpoint ('/') of the Meilisearch server using apiClient, stringifies the response data as JSON, and returns it in the MCP content format. Errors are handled via createErrorResponse.
async () => { try { const response = await apiClient.get('/'); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } - src/tools/system-tools.ts:54-68 (registration)Registration of the 'info' tool on the MCP server within the registerSystemTools function. It specifies the tool name, description, empty input schema ({}), and the handler function.
server.tool( 'info', 'Get the system information of the Meilisearch server', {}, async () => { try { const response = await apiClient.get('/'); return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }], }; } catch (error) { return createErrorResponse(error); } } ); - src/index.ts:69-69 (registration)Invocation of registerSystemTools on the main MCP server instance, which registers the 'info' tool among other system tools.
registerSystemTools(server);