Skip to main content
Glama

Compare Campaign Performance

compare_campaigns
Read-onlyIdempotent

Compares 2 to 5 email campaigns of the signed-in Mailpro account side by side: sent, opens, clicks, bounces, unsubscriptions, and the rates computed from them (percent of emails sent). Rates are 0 when nothing was sent. Opens and clicks are totals, so a rate can exceed what unique readers would give.

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_idsYes2 to 5 campaign ids, from list_campaigns.

Output Schema

NameRequiredDescriptionDefault
campaignsYes
best_open_rate_campaign_idYes0 when no compared campaign was sent.
best_click_rate_campaign_idYes0 when no compared campaign was sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and non-destructive behavior, and the description still adds real semantic context: rates are computed as a percent of emails sent, rates are 0 when nothing was sent, and opens/clicks are totals so a rate can exceed a unique-reader figure. That is exactly the kind of caveat an agent needs to interpret results correctly, short of return ordering or pagination details.

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?

Two dense sentences with zero filler: the first front-loads what is compared and the metrics, the second delivers the edge-case semantics. Nothing is repeated from the schema or annotations.

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 an output schema present, return shape need not be described, and the metric definitions and zero/rate caveats make the definition self-sufficient for a one-parameter read-only tool. Minor gaps remain around result ordering relative to the input id list and whether all ids must belong to the same account.

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 coverage is 100% and the single array parameter is already documented with its 2-to-5 bound and source. The description restates the bound and adds the 'signed-in Mailpro account' scoping, but contributes no new per-parameter meaning beyond the schema.

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 ('Compares ... email campaigns ... side by side') plus the exact metric set (sent, opens, clicks, bounces, unsubscriptions, rates). The '2 to 5 campaigns' scope implicitly separates it from single-campaign siblings like get_campaign_statistics, but no sibling is named explicitly.

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?

The 2-to-5 constraint and the pointer to list_campaigns for ids imply the correct workflow, but there is no explicit 'use this instead of X when Y' routing and no stated exclusions (e.g., what to do for a single campaign, or whether campaigns may span time ranges).

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