Skip to main content
Glama

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
NameRequiredDescriptionDefault
sectionNoINFO section to filter (server, clients, memory, stats, replication, keyspace)
instanceIdNoOptional instance ID override

Implementation Reference

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

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