Skip to main content
Glama
redis

Redis Cloud API MCP Server

Official
by redis

get-current-account

Retrieve details of the active Redis Cloud account to manage resources using the Redis Cloud API MCP Server interface.

Instructions

Get the current Cloud Redis account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that implements the logic for the 'get-current-account' tool by calling the AccountService API.
    "get-current-account": async () => { const account = await executeApiCall( () => AccountService.getCurrentAccount(), "Get current account", ); return createToolResponse(account); },
  • Schema definition for the tool, specifying name, description, and empty input schema.
    const GET_CURRENT_ACCOUNT_TOOL: Tool = { name: "get-current-account", description: "Get the current Cloud Redis account", inputSchema: emptySchema, };
  • src/index.ts:40-47 (registration)
    Registration of all tools by spreading ACCOUNT_TOOLS (which includes get-current-account) into ALL_TOOLS, returned in ListToolsRequest.
    const ALL_TOOLS = [ ...ACCOUNT_TOOLS, ...SUBSCRIPTIONS_PRO_TOOLS, ...SUBSCRIPTIONS_ESSENTIALS_TOOLS, ...TASKS_TOOLS, ...DATABASES_PRO_TOOLS, ...DATABASES_ESSENTIALS_TOOLS, ];
  • src/index.ts:49-56 (registration)
    Registration of all handlers by spreading ACCOUNT_HANDLERS (which includes get-current-account handler) into ALL_HANDLERS, used in CallToolRequest.
    const ALL_HANDLERS = { ...ACCOUNT_HANDLERS, ...SUBSCRIPTIONS_ESSENTIALS_HANDLERS, ...SUBSCRIPTIONS_PRO_HANDLERS, ...TASKS_HANDLERS, ...DATABASES_PRO_HANDLERS, ...DATABASES_ESSENTIALS_HANDLERS, };

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/redis/mcp-redis-cloud'

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