Skip to main content
Glama
JanNafta

PropellerAds MCP Server

by JanNafta

stop_campaigns

Pause or stop advertising campaigns on PropellerAds by specifying campaign IDs to halt spending and optimize budget allocation.

Instructions

Pause/stop one or more campaigns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idsYesList of campaign IDs to stop

Implementation Reference

  • The method `stop_campaigns` in the `PropellerAdsClient` class sends a POST request to the `/adv/campaigns/stop` endpoint to pause campaigns.
    def stop_campaigns(self, campaign_ids: list[int]) -> dict[str, Any]:
        """Stop (pause) campaigns."""
        result = self._request(
            "POST", "/adv/campaigns/stop", json_data={"ids": campaign_ids}
        )
        return result
  • The tool `stop_campaigns` is registered in the MCP server with an input schema requiring a list of campaign IDs.
        name="stop_campaigns",
        description="Pause/stop one or more campaigns.",
        inputSchema={
            "type": "object",
            "properties": {
                "campaign_ids": {
                    "type": "array",
                    "items": {"type": "integer"},
                    "description": "List of campaign IDs to stop",
                },
            },
            "required": ["campaign_ids"],
        },
    ),
  • The `handle_tool` function in `server.py` routes the `stop_campaigns` tool call to the client's `stop_campaigns` method.
    elif name == "stop_campaigns":
        result = client.stop_campaigns(args["campaign_ids"])
        return f"Stopped campaigns: {args['campaign_ids']}\n\n{json.dumps(result, indent=2)}"
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It implies a mutation ('Pause/stop') but doesn't specify if this is reversible, requires specific permissions, affects campaign data, or has side effects like stopping associated ads.

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 extremely concise—a single sentence with zero wasted words—and front-loads the core action. Every word earns its place, making it easy to parse quickly.

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?

For a mutation tool with no annotations and no output schema, the description is incomplete. It lacks details on behavioral traits, error handling, return values, or how it interacts with sibling tools, leaving significant gaps for an agent to use it correctly.

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?

Schema description coverage is 100%, so the input schema fully documents the 'campaign_ids' parameter. The description adds no additional meaning about parameter usage, such as ID formats or handling of invalid IDs, meeting the baseline for high schema coverage.

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 ('Pause/stop') and resource ('one or more campaigns'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'start_campaigns' beyond the obvious verb difference, missing an opportunity to clarify scope or permanence.

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?

No guidance is provided on when to use this tool versus alternatives like 'update_campaign' for partial changes, or prerequisites such as campaign status requirements. The description merely restates the action without contextual usage advice.

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