Skip to main content
Glama
JanNafta

PropellerAds MCP Server

by JanNafta

add_to_whitelist

Add specific zones to a campaign's whitelist to control where ads appear. This tool enables precise targeting by allowing only approved zones to display campaign advertisements.

Instructions

Add zones to campaign whitelist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idYesCampaign ID
zone_idsYesZone IDs to whitelist

Implementation Reference

  • The implementation of adding zones to a campaign whitelist by calling the API endpoint.
    def add_zones_to_whitelist(
        self, campaign_id: int, zone_ids: list[int]
    ) -> dict[str, Any]:
        """Add zones to campaign whitelist."""
        return self._request(
            "POST",
            f"/adv/campaigns/{campaign_id}/targeting/zones/whitelist",
            json_data={"zone_ids": zone_ids},
        )
  • The server-side handler logic that calls client.add_zones_to_whitelist.
    elif name == "add_to_whitelist":
        result = client.add_zones_to_whitelist(args["campaign_id"], args["zone_ids"])
        return f"Added {len(args['zone_ids'])} zones to whitelist for campaign {args['campaign_id']}.\n\n{json.dumps(result, indent=2)}"
  • Tool registration schema definition for add_to_whitelist.
    Tool(
        name="add_to_whitelist",
        description="Add zones to campaign whitelist.",
        inputSchema={
            "type": "object",
            "properties": {
                "campaign_id": {"type": "integer", "description": "Campaign ID"},
                "zone_ids": {
                    "type": "array",
                    "items": {"type": "integer"},
                    "description": "Zone IDs to whitelist",
                },
            },
            "required": ["campaign_id", "zone_ids"],
        },
    ),
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It implies a mutation ('Add'), but does not specify permissions required, whether the operation is idempotent, or how errors are handled. This leaves significant gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, direct sentence with no wasted words, making it highly concise and front-loaded. It efficiently communicates the core action without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete for a mutation tool. It does not explain what happens after adding zones (e.g., confirmation, error responses, or effects on campaign performance), leaving critical contextual gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, so the schema already documents both parameters ('campaign_id' and 'zone_ids'). The description adds no additional meaning beyond what the schema provides, such as format details or constraints, resulting in a baseline score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Add') and the target ('zones to campaign whitelist'), making the purpose understandable. However, it does not differentiate this tool from its sibling 'add_to_blacklist' or specify what 'whitelist' entails in this context, which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'add_to_blacklist' or other campaign-related tools. It lacks context about prerequisites, such as whether the campaign must be active or if zones need to exist, leaving usage unclear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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

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