Skip to main content
Glama
JanNafta

PropellerAds MCP Server

by JanNafta

get_available_countries

Retrieve the list of countries available for ad targeting to ensure campaigns reach the correct geographic audiences.

Instructions

Get list of available countries for targeting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The underlying client method that performs the API request to fetch countries.
    def get_countries(self) -> list[dict[str, Any]]:
        """Get available countries for targeting."""
        result = self._request("GET", "/adv/countries")
        return result.get("data", result) if isinstance(result, dict) else result
  • The handler in the server logic that executes the tool and formats the output.
    elif name == "get_available_countries":
        countries = client.get_countries()
        return f"# Available Countries\n\n```json\n{json.dumps(countries, indent=2)}\n```"
  • Registration of the get_available_countries tool in the server.
        name="get_available_countries",
        description="Get list of available countries for targeting.",
        inputSchema={"type": "object", "properties": {}},
    ),

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