billing_info
Access and retrieve user billing details, including name and address, for purchases or shipping purposes within the Fewsats MCP Server integration.
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 MCP tool handler for 'billing_info'. Decorated with @mcp.tool() to register and implement the tool logic, which delegates to Fewsats().billing_info() and wraps the response using handle_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)Shared helper function used by billing_info (and other tools) to process API responses from Fewsats, returning status code and JSON or text content.def handle_response(response): try: return response.status_code, response.json() except: return response.status_code, response.text