get-pro-subscriptions
Retrieve pro subscription details for your Redis Cloud account using the Redis Cloud API MCP Server. Manage resources effectively with straightforward access.
Instructions
Get the pro subscriptions for the current Cloud Redis account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function for the 'get-pro-subscriptions' tool. It asynchronously calls SubscriptionsProService.getAllSubscriptions() wrapped in executeApiCall and returns the formatted response using createToolResponse."get-pro-subscriptions": async () => { const subscriptions = await executeApiCall( () => SubscriptionsProService.getAllSubscriptions(), "Get pro subscriptions", ); return createToolResponse(subscriptions); },
- Tool schema definition: specifies the tool name, description, and an empty inputSchema (no parameters required).const GET_PRO_SUBSCRIPTIONS_TOOL: Tool = { name: "get-pro-subscriptions", description: "Get the pro subscriptions for the current Cloud Redis account", inputSchema: emptySchema, };
- src/tools/subscriptions/pro/index.ts:433-437 (registration)Local registration of the tool within the SUBSCRIPTIONS_PRO_TOOLS array exported from this module.export const SUBSCRIPTIONS_PRO_TOOLS = [ CREATE_PRO_SUBSCRIPTION_TOOL, GET_PRO_SUBSCRIPTIONS_TOOL, GET_PRO_SUBSCRIPTION_TOOL, ];
- src/index.ts:40-47 (registration)Global tool registration: SUBSCRIPTIONS_PRO_TOOLS (including get-pro-subscriptions) is merged into ALL_TOOLS, which is provided to the MCP server's listTools handler.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)Global handlers registration: SUBSCRIPTIONS_PRO_HANDLERS (including the handler for get-pro-subscriptions) is merged into ALL_HANDLERS, used by the MCP server's callTool handler to dispatch executions.const ALL_HANDLERS = { ...ACCOUNT_HANDLERS, ...SUBSCRIPTIONS_ESSENTIALS_HANDLERS, ...SUBSCRIPTIONS_PRO_HANDLERS, ...TASKS_HANDLERS, ...DATABASES_PRO_HANDLERS, ...DATABASES_ESSENTIALS_HANDLERS, };