Skip to main content
Glama
Fewsats

Fewsats MCP Server

Official
by Fewsats

payment_methods

Retrieve payment methods for troubleshooting or when user-specified, enabling AI agents to access stored payment options within the Fewsats MCP Server.

Instructions

Retrieve the user's payment methods. You will rarely need to call this unless instructed by the user, or to troubleshoot payment issues. Fewsats will automatically select the best payment method.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'payment_methods'. Decorated with @mcp.tool(), it calls Fewsats().payment_methods() and wraps the response using handle_response.
    @mcp.tool() async def payment_methods() -> str: """Retrieve the user's payment methods. You will rarely need to call this unless instructed by the user, or to troubleshoot payment issues. Fewsats will automatically select the best payment method.""" return handle_response(Fewsats().payment_methods())
  • Helper function used by the payment_methods handler (and others) to process HTTP responses from Fewsats API.
    def handle_response(response): try: return response.status_code, response.json() except: return response.status_code, response.text

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/Fewsats/fewsats-mcp'

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