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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/account/index.ts:45-51 (handler)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); }, - src/tools/account/index.ts:10-14 (schema)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, };