Skip to main content
Glama
JanNafta

PropellerAds MCP Server

by JanNafta

get_campaign_performance

Retrieve performance summary and calculated metrics for a specific PropellerAds campaign to analyze results and optimize advertising strategies.

Instructions

Get performance summary for a specific campaign with calculated metrics and insights.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idYesCampaign ID
date_fromNoStart date (YYYY-MM-DD)
date_toNoEnd date (YYYY-MM-DD)

Implementation Reference

  • The handler logic for the 'get_campaign_performance' tool which fetches statistics using the client, calculates metrics, and formats the output string.
    elif name == "get_campaign_performance":
        stats = client.get_campaign_statistics(
            args["campaign_id"],
            date_from=args.get("date_from"),
            date_to=args.get("date_to"),
        )
        if not stats:
            return f"No statistics found for campaign {args['campaign_id']}."
    
        metrics = calculate_metrics(stats)
        campaign = client.get_campaign(args["campaign_id"])
    
        return (
            f"# Campaign Performance: {campaign.get('name', 'N/A')}\n\n"
            f"**Status:** {campaign.get('status', 'N/A')}\n"
            f"**Ad Format:** {campaign.get('ad_format', 'N/A')}\n\n"
            f"## Metrics\n"
            f"- Impressions: {metrics.get('impressions', 0):,}\n"
            f"- Clicks: {metrics.get('clicks', 0):,}\n"
            f"- CTR: {format_percentage(metrics.get('ctr'))}\n"
            f"- Conversions: {metrics.get('conversions', 0):,}\n"
            f"- CVR: {format_percentage(metrics.get('cvr'))}\n"
            f"- Spend: {format_currency(metrics.get('spend', metrics.get('cost', 0)))}\n"
            f"- CPA: {format_currency(metrics.get('cpa'))}\n"
            f"- Revenue: {format_currency(metrics.get('revenue', 0))}\n"
            f"- ROI: {format_percentage(metrics.get('roi'))}\n"
        )
  • The tool definition and input schema for 'get_campaign_performance'.
    Tool(
        name="get_campaign_performance",
        description="Get performance summary for a specific campaign with calculated metrics and insights.",
        inputSchema={
            "type": "object",
            "properties": {
                "campaign_id": {"type": "integer", "description": "Campaign ID"},
                "date_from": {"type": "string", "description": "Start date (YYYY-MM-DD)"},
                "date_to": {"type": "string", "description": "End date (YYYY-MM-DD)"},
            },
            "required": ["campaign_id"],
        },
    ),
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. While 'Get' implies a read-only operation, the description doesn't address critical aspects like authentication requirements, rate limits, error conditions, or what happens if dates are omitted. For a tool with no annotation coverage, this leaves significant gaps in understanding its 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, well-structured sentence that efficiently conveys the core purpose without any wasted words. It's front-loaded with the main action and resource, 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 complexity of a performance summary tool with no annotations and no output schema, the description is insufficient. It doesn't explain what 'calculated metrics and insights' include, how results are formatted, or any behavioral constraints. For a tool that likely returns detailed data, 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?

Schema description coverage is 100%, so the schema already documents all three parameters (campaign_id, date_from, date_to) with their types and basic descriptions. The description adds no additional parameter semantics beyond what's in the schema, such as explaining how date ranges affect the performance summary or if dates are optional. This meets 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 tool's purpose with a specific verb ('Get') and resource ('performance summary for a specific campaign'), and adds valuable context about what the summary includes ('calculated metrics and insights'). However, it doesn't explicitly differentiate this tool from similar siblings like 'get_campaign_details' or 'get_performance_report', 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. With multiple sibling tools related to campaign performance (e.g., 'get_campaign_details', 'get_performance_report', 'get_creative_performance'), there's no indication of what makes this tool distinct or when it should be preferred over others.

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