get_balance
Retrieve current account balance from PropellerAds advertising platform to monitor ad spend and manage campaign budgets.
Instructions
Get current account balance.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/propellerads_mcp/client.py:311-314 (handler)The actual implementation of the get_balance method in the client class.
def get_balance(self) -> dict[str, Any]: """Get account balance.""" result = self._request("GET", "/adv/balance") return result.get("data", result) if isinstance(result, dict) else result - src/propellerads_mcp/server.py:444-448 (registration)The MCP tool registration for 'get_balance'.
Tool( name="get_balance", description="Get current account balance.", inputSchema={"type": "object", "properties": {}}, ), - src/propellerads_mcp/server.py:879-881 (handler)The handler logic within the server that calls the client's get_balance method.
elif name == "get_balance": balance = client.get_balance() return f"# Account Balance\n\n```json\n{json.dumps(balance, indent=2)}\n```"