Skip to main content
Glama
JanNafta

PropellerAds MCP Server

by JanNafta

clone_campaign

Create a copy of an existing advertising campaign to replicate successful setups or test variations while maintaining original configurations.

Instructions

Create a copy of an existing campaign.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idYesID of campaign to clone
new_nameNoName for the cloned campaign

Implementation Reference

  • Implementation of the clone_campaign tool method in the client class.
    def clone_campaign(
        self, campaign_id: int, new_name: str | None = None
    ) -> dict[str, Any]:
        """Clone an existing campaign."""
        data = {}
        if new_name:
            data["name"] = new_name
        result = self._request(
            "POST", f"/adv/campaigns/{campaign_id}/clone", json_data=data or None
        )
        return result.get("data", result) if isinstance(result, dict) else result
  • Registration of the clone_campaign tool in the MCP server.
    Tool(
        name="clone_campaign",
        description="Create a copy of an existing campaign.",
        inputSchema={
            "type": "object",
            "properties": {
                "campaign_id": {
                    "type": "integer",
                    "description": "ID of campaign to clone",
                },
                "new_name": {
                    "type": "string",
                    "description": "Name for the cloned campaign",
                },
            },
            "required": ["campaign_id"],
  • Input schema definition for the clone_campaign tool.
    inputSchema={
        "type": "object",
        "properties": {
            "campaign_id": {
                "type": "integer",
                "description": "ID of campaign to clone",
            },
            "new_name": {
                "type": "string",
                "description": "Name for the cloned campaign",
            },
  • Tool handler logic in server.py calling the client method.
    elif name == "clone_campaign":
        result = client.clone_campaign(
            args["campaign_id"], args.get("new_name")
        )
        return f"Campaign cloned successfully!\n\n```json\n{json.dumps(result, indent=2)}\n```"
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. While 'Create a copy' implies a write operation, it doesn't specify whether this requires special permissions, whether the clone inherits all settings from the original, what happens to the original campaign, or what the expected response looks like. Significant behavioral details are missing.

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. It's front-loaded with the core purpose and doesn't include any unnecessary elaboration or redundant information.

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 insufficient. It doesn't address what the cloned campaign includes (settings, creatives, targeting), whether the clone is automatically started, what permissions are required, or what the tool returns. Given the complexity of campaign cloning, more context is needed.

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?

With 100% schema description coverage, the input schema already documents both parameters thoroughly. The description adds no additional parameter semantics beyond what's in the schema - it doesn't explain format requirements, constraints, or provide examples for the 'new_name' parameter.

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 ('Create a copy') and resource ('existing campaign'), making the purpose immediately understandable. However, it doesn't distinguish this from sibling tools like 'create_campaign' or explain how cloning differs from creating a new campaign from scratch.

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 'create_campaign' or 'update_campaign'. There's no mention of prerequisites, typical use cases, or when cloning might be preferred over other campaign management approaches.

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