Skip to main content
Glama
redis

Redis Cloud API MCP Server

Official
by redis

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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

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