get-system-info
Retrieve system-level details from the Meilisearch MCP Server to monitor and analyze server performance and configurations for efficient management.
Instructions
Get system-level information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/meilisearch_mcp/server.py:701-708 (handler)MCP tool handler that executes the get-system-info tool by calling the monitoring manager's get_system_information method and formatting the result as text content.elif name == "get-system-info": info = self.meili_client.monitoring.get_system_information() self.logger.info("System information retrieved", info=info) return [ types.TextContent( type="text", text=f"System information: {info}" ) ]
- src/meilisearch_mcp/server.py:358-366 (registration)Registration of the get-system-info tool in the list_tools handler, including its name, description, and input schema.types.Tool( name="get-system-info", description="Get system-level information", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False, }, ),
- Input schema for the get-system-info tool, which takes no parameters.inputSchema={ "type": "object", "properties": {}, "additionalProperties": False, }, ),
- Helper method in MonitoringManager that fetches and formats system information from the Meilisearch client, including version, database stats, and indexes.def get_system_information(self) -> Dict[str, Any]: """Get system-level information""" try: version = self.client.get_version() stats = self.client.get_all_stats() return { "version": version, "database_size": stats["databaseSize"], "last_update": stats["lastUpdate"], "indexes": stats["indexes"], } except Exception as e: raise Exception(f"Failed to get system information: {str(e)}")