Skip to main content
Glama
Fewsats

Fewsats MCP Server

Official
by Fewsats

balance

Check wallet balance on Fewsats MCP Server. Use this tool to troubleshoot payment issues or verify funds when instructed by the user.

Instructions

Retrieve the balance of the user's wallet. You will rarely need to call this unless instructed by the user, or to troubleshoot payment issues. Fewsats will automatically add balance when needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'balance' MCP tool. Decorated with @mcp.tool(), it retrieves the user's wallet balance by calling Fewsats().balance() and returns the handled response.
    @mcp.tool() async def balance() -> str: """Retrieve the balance of the user's wallet. You will rarely need to call this unless instructed by the user, or to troubleshoot payment issues. Fewsats will automatically add balance when needed.""" return handle_response(Fewsats().balance())
  • Helper function used by the 'balance' tool (and others) to process the HTTP response from the Fewsats API, returning status code and JSON or text body.
    def handle_response(response): try: return response.status_code, response.json() except: return response.status_code, response.text

Other Tools

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

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