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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/fewsats_mcp/server.py:58-63 (handler)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())
- src/fewsats_mcp/server.py:9-11 (helper)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
- src/fewsats_mcp/server.py:58-58 (registration)The @mcp.tool() decorator registers the billing_info function as an MCP tool.@mcp.tool()