get-current-payment-methods
Retrieve the payment methods associated with your Redis Cloud account using the Redis Cloud API MCP Server to manage billing and subscription details.
Instructions
Get the current payment methods for the current Cloud Redis account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/account/index.ts:53-59 (handler)The main handler function for the 'get-current-payment-methods' tool. It calls the AccountService to fetch payment methods and returns the formatted response."get-current-payment-methods": async () => { const paymentMethods = await executeApiCall( () => AccountService.getAccountPaymentMethods(), "Get current payment methods", ); return createToolResponse(paymentMethods); },
- src/tools/account/index.ts:16-21 (schema)The Tool schema definition including name, description, and empty input schema.const GET_CURRENT_PAYMENT_METHODS_TOOL: Tool = { name: "get-current-payment-methods", description: "Get the current payment methods for the current Cloud Redis account", inputSchema: emptySchema, };
- src/index.ts:49-56 (registration)Registration of all handlers, including ACCOUNT_HANDLERS which contains the handler for 'get-current-payment-methods', into the main ALL_HANDLERS object used by the MCP server.const ALL_HANDLERS = { ...ACCOUNT_HANDLERS, ...SUBSCRIPTIONS_ESSENTIALS_HANDLERS, ...SUBSCRIPTIONS_PRO_HANDLERS, ...TASKS_HANDLERS, ...DATABASES_PRO_HANDLERS, ...DATABASES_ESSENTIALS_HANDLERS, };
- src/index.ts:40-47 (registration)Registration of all tools, including ACCOUNT_TOOLS which contains the schema for 'get-current-payment-methods', into the main ALL_TOOLS list provided to the MCP server.const ALL_TOOLS = [ ...ACCOUNT_TOOLS, ...SUBSCRIPTIONS_PRO_TOOLS, ...SUBSCRIPTIONS_ESSENTIALS_TOOLS, ...TASKS_TOOLS, ...DATABASES_PRO_TOOLS, ...DATABASES_ESSENTIALS_TOOLS, ];