Skip to main content
Glama

Compare Campaigns

compare_campaigns
Read-onlyIdempotent

Side-by-side comparison of two or more campaigns. Shows performance metrics, scores, grades, identifies the winner for each metric, and provides recommendations based on what worked best.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "campaign_ids": "<campaign_ids>"
    },
    "name": "compare_campaigns"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaign_idsYesTwo to ten campaign IDs to compare
cost_per_emailNoOptional cost per email, in your own currency for cost-per-open and cost-per-click calculations

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / campaign_ids / description
      Previous value: -"Two or more campaign IDs to compare"New value: +"Two to ten campaign IDs to compare"
    • changedInput schema / properties / cost_per_email / description
      Previous value: -"Optional cost per email in dollars for cost-per-open and cost-per-click calculations"New value: +"Optional cost per email, in your own currency for cost-per-open and cost-per-click calculations"
  2. Changed1 schema field changed
    • changedInput schema / properties / campaign_ids / description
      Previous value: -"Two or more campaign IDs to compare,required"New value: +"Two or more campaign IDs to compare"
  3. Changed1 schema field changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "MailerCloud API key",
      -  "type": "string"
      -}
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), so the remaining burden is light. The description adds real value by disclosing the shape of the analysis output — metrics, scores, grades, a per-metric winner, and recommendations — which is the main thing an agent needs to know when deciding whether this tool answers its question.

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

Conciseness4/5

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

Two sentences, front-loaded with the action and scope, then the output contents. No filler or repetition; the only mild cost is that the output enumeration is a comma list rather than a structured statement.

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

Completeness4/5

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

With no output schema, the description usefully compensates by describing what the comparison returns, and annotations carry the safety semantics. The remaining gap is selection guidance against the several neighboring analysis tools, which is the one thing an agent could still get wrong.

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 both parameters are already documented, including the 2-to-10 bound on campaign_ids and the currency note on cost_per_email. The description adds no parameter-level detail, and notably never mentions that cost_per_email unlocks cost-per-open/cost-per-click analysis — baseline 3.

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?

States a specific verb and resource ('Side-by-side comparison of two or more campaigns') and enumerates what the comparison produces (metrics, scores, grades, per-metric winner, recommendations). It implicitly separates itself from single-campaign siblings like analyze_campaign via 'two or more', though it never names an alternative.

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

Usage Guidelines3/5

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

Usage is only implied by the multi-campaign scope: an agent can infer this is the tool for comparing campaigns against each other rather than analyzing one. There is no explicit when-to-use statement, no exclusions, and no routing to the closely related analyze_campaign, analyze_latest_campaigns, or campaign_health_dashboard siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources