Skip to main content
Glama
JanNafta

PropellerAds MCP Server

by JanNafta

find_scaling_opportunities

Identify high-performing ad campaigns with sufficient ROI and conversion volume to allocate more budget for scaling.

Instructions

Find campaigns ready for scaling based on ROI and conversion volume.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
min_roiNoMinimum ROI percentage (default: 50)
min_conversionsNoMinimum conversions (default: 10)
date_fromNoStart date
date_toNoEnd date

Implementation Reference

  • The handler logic for 'find_scaling_opportunities' retrieves active campaigns, fetches statistics, calculates ROI/conversions, and filters campaigns based on the provided criteria.
    elif name == "find_scaling_opportunities":
        campaigns = client.list_campaigns(status="active")
        if not campaigns:
            return "No active campaigns found."
    
        min_roi = args.get("min_roi", 50)
        min_conv = args.get("min_conversions", 10)
    
        opportunities = []
        for c in campaigns:
            stats = client.get_campaign_statistics(
                c["id"],
                date_from=args.get("date_from"),
                date_to=args.get("date_to"),
            )
            if stats:
                metrics = calculate_metrics(stats)
                conv = metrics.get("conversions", 0) or 0
                roi = metrics.get("roi", 0) or 0
                if conv >= min_conv and roi >= min_roi:
                    opportunities.append({**c, **metrics})
    
        if not opportunities:
            return f"No scaling opportunities found (min ROI: {min_roi}%, min conversions: {min_conv})."
    
        opportunities.sort(key=lambda x: x.get("roi", 0), reverse=True)
    
        lines = ["# Scaling Opportunities\n\n"]
        lines.append(f"Criteria: ROI >= {min_roi}%, Conversions >= {min_conv}\n\n")
    
        for c in opportunities:
            lines.append(
                f"### {c.get('name')} (ID: {c.get('id')})\n"
                f"- ROI: {format_percentage(c.get('roi'))}\n"
                f"- Conversions: {c.get('conversions', 0)}\n"
  • The Tool definition and schema for 'find_scaling_opportunities' specifying input parameters (min_roi, min_conversions, date_from, date_to).
    Tool(
        name="find_scaling_opportunities",
        description="Find campaigns ready for scaling based on ROI and conversion volume.",
        inputSchema={
            "type": "object",
            "properties": {
                "min_roi": {
                    "type": "number",
                    "description": "Minimum ROI percentage (default: 50)",
                },
                "min_conversions": {
                    "type": "integer",
                    "description": "Minimum conversions (default: 10)",
                },
                "date_from": {"type": "string", "description": "Start date"},
                "date_to": {"type": "string", "description": "End date"},
            },
        },
    ),
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool finds campaigns based on criteria but doesn't explain what 'scaling' entails (e.g., increasing budget, expanding targeting), whether it's a read-only analysis or triggers actions, or any limitations like data freshness or permissions required. 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, efficient sentence: 'Find campaigns ready for scaling based on ROI and conversion volume.' It's front-loaded with the core purpose and wastes no words, 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?

Given the tool's complexity (analyzing campaigns for scaling decisions), lack of annotations, and no output schema, the description is incomplete. It doesn't cover behavioral aspects like what 'scaling' means, output format, or error handling. For a tool with 4 parameters and analytical purpose, more context is needed to guide effective use.

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, providing details for all parameters (e.g., min_roi as 'Minimum ROI percentage (default: 50)'). The description adds minimal value beyond the schema by implying ROI and conversion volume are key criteria but doesn't elaborate on semantics like how ROI is calculated or what 'conversions' refer to. Baseline 3 is appropriate since the schema does the heavy lifting.

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 tool's purpose: 'Find campaigns ready for scaling based on ROI and conversion volume.' It specifies the verb ('find'), resource ('campaigns'), and criteria ('ROI and conversion volume'), making it easy to understand. However, it doesn't explicitly differentiate from siblings like 'find_top_zones' or 'find_underperforming_zones', which might also identify campaigns or zones for optimization, so it's not a perfect 5.

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. It doesn't mention prerequisites, exclusions, or compare it to siblings such as 'find_top_zones' or 'find_underperforming_zones', which could serve similar analytical purposes. Without this context, users might struggle to choose the right tool.

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