Skip to main content
Glama
JanNafta

PropellerAds MCP Server

by JanNafta

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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
  • The MCP tool registration for 'get_balance'.
    Tool(
        name="get_balance",
        description="Get current account balance.",
        inputSchema={"type": "object", "properties": {}},
    ),
  • 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```"

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/JanNafta/propellerads-mcp'

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