get_info
Retrieve comprehensive health and performance data for database instances, including memory usage, client connections, replication status, keyspace details, and operational statistics.
Instructions
Get INFO stats for the active instance. Contains all health data: memory, clients, replication, keyspace, stats (hit rate, ops/sec), and server info. Optionally filter to a section: server|clients|memory|stats|replication|keyspace.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section | No | INFO section to filter (server, clients, memory, stats, replication, keyspace) | |
| instanceId | No | Optional instance ID override |
Implementation Reference
- packages/mcp/src/index.ts:318-336 (handler)Registration and handler implementation for the 'get_info' MCP tool.
'get_info', 'Get INFO stats for the active instance. Contains all health data: memory, clients, replication, keyspace, stats (hit rate, ops/sec), and server info. Optionally filter to a section: server|clients|memory|stats|replication|keyspace.', { section: z.string().optional().describe('INFO section to filter (server, clients, memory, stats, replication, keyspace)'), instanceId: z.string().optional().describe('Optional instance ID override'), }, async ({ section, instanceId }) => { const id = resolveInstanceId(instanceId); const data = await apiFetch(`/mcp/instance/${id}/info`) as Record<string, unknown>; if (section && data[section] !== undefined) { return { content: [{ type: 'text' as const, text: JSON.stringify({ [section]: data[section] }, null, 2) }], }; } return { content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }], }; }, );