Skip to main content
Glama

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
NameRequiredDescriptionDefault
instanceIdNoOptional instance ID override

Implementation Reference

  • 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) }],
        };
      },
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BetterDB-inc/monitor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server