get_memory
Retrieve memory diagnostics including MEMORY DOCTOR assessment and MEMORY STATS breakdown for Valkey/Redis instances to monitor and analyze memory usage.
Instructions
Get memory diagnostics: MEMORY DOCTOR assessment and MEMORY STATS breakdown.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instanceId | No | Optional instance ID override |
Implementation Reference
- packages/mcp/src/index.ts:386-396 (handler)The `get_memory` tool is registered and implemented in `packages/mcp/src/index.ts`. It fetches memory diagnostics by calling the API endpoint `/mcp/instance/${id}/memory`.
'get_memory', 'Get memory diagnostics: MEMORY DOCTOR assessment and MEMORY STATS breakdown.', { instanceId: z.string().optional().describe('Optional instance ID override') }, async ({ instanceId }) => { const id = resolveInstanceId(instanceId); const data = await apiFetch(`/mcp/instance/${id}/memory`); return { content: [{ type: 'text' as const, text: JSON.stringify(data, null, 2) }], }; }, );