Skip to main content
Glama
Fewsats

Fewsats MCP Server

Official
by Fewsats

billing_info

Retrieve billing and shipping details for secure payment processing within the Fewsats MCP Server.

Instructions

Retrieve the user's billing information. Returns billing details including name, address, and other relevant information. This information can also be used as shipping address for purchases.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'billing_info' MCP tool. It is decorated with @mcp.tool() which registers it with the MCP server. The function calls Fewsats().billing_info() to fetch the billing information and uses handle_response to format the API response.
    @mcp.tool() async def billing_info() -> str: """Retrieve the user's billing information. Returns billing details including name, address, and other relevant information. This information can also be used as shipping address for purchases.""" return handle_response(Fewsats().billing_info())
  • Helper function used by billing_info (and other tools) to handle HTTP responses from the Fewsats API, returning status code and parsed JSON or text.
    def handle_response(response): try: return response.status_code, response.json() except: return response.status_code, response.text
  • The @mcp.tool() decorator registers the billing_info function as an MCP tool.
    @mcp.tool()

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