Skip to main content
Glama

Analyze Campaign

analyze_campaign
Read-onlyIdempotent

Deep-dive analysis of a single campaign's performance. Returns a letter grade, weighted performance scores vs industry benchmarks, deliverability health assessment, contextual insights, and prioritized actionable recommendations to improve future sends.

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_id": "<campaign_id>"
    },
    "name": "analyze_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaign_idYesCampaign ID to analyze
cost_per_emailNoOptional cost per email, in your own currency for ROI projections

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / cost_per_email / description
      Previous value: -"Optional cost per email in dollars for ROI projections"New value: +"Optional cost per email, in your own currency for ROI projections"
  2. Changed1 schema field changed
    • changedInput schema / properties / campaign_id / description
      Previous value: -"Campaign ID to analyze,required"New value: +"Campaign ID to analyze"
  3. Changed1 schema field changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "MailerCloud API key",
      -  "type": "string"
      -}
  4. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=true, so the safety profile is covered. The description adds value by disclosing the shape of the response: a letter grade, weighted benchmark scores, a deliverability assessment, and prioritized recommendations. It does not disclose limits on interpretation (e.g., whether grades are meaningful for unsent campaigns or whether benchmarks are industry- or account-relative), which matters for a diagnostic tool.

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?

Front-loaded with the purpose in the first clause, then a compact enumeration of return components. The trailing 'to improve future sends' is mildly redundant with 'actionable recommendations', but nothing else is padded.

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 correctly spends its budget enumerating what comes back, which is the right call for a read-only analytic tool. Annotations cover safety, and the schema covers both inputs, so the remaining gap is small — it omits any caveat about when results are unreliable (campaign not yet sent) or how cost_per_email affects the output.

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% for both parameters, so campaign_id and cost_per_email are already documented in the schema. The description mentions neither parameter and adds no meaning beyond it — notably it never connects cost_per_email to the ROI projections it advertises. Baseline 3 applies when the schema carries parameter documentation.

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 action and resource: 'Deep-dive analysis of a single campaign's performance', and enumerates the outputs (letter grade, benchmark scores, deliverability health, insights, recommendations). The sibling set contains several near-identical analysis tools (analyze_campaign, analyze_latest_campaigns, analyze_brief, analyze_email), and the description never explicitly contrasts itself with analyze_latest_campaigns or compare_campaigns, so it does not fully disambiguate.

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?

Usefulness is implied ('Deep-dive analysis') but the only hint of when to reach for it is the word 'single', which is incidental rather than stated as guidance. No exclusions, no prerequisites (e.g., that a campaign needs sent data for meaningful grades), and no named alternative such as analyze_latest_campaigns for batch assessment.

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