Skip to main content
Glama

Get Campaign Results

get_campaign_results
Read-only

Get a campaign's results: the recorded close-out actuals (spend, impressions, clicks, attributed orders) with click-through rate and spend per attributed order, and — once a planner has applied the plan — the frozen applied forecast against elapsed sales. Once close-out opens, effect measures the campaign against its frozen baseline: peak lift, incremental units, halo on related items, the post-campaign dip (pull-forward) and incremental units per 1k of spend, with stock-out days left out and a censored flag; history summarises past campaigns like it. Results show association, not proven cause. Identify the plan by planId, or by externalSource plus externalId. Set includeDaily for the per-day series.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_campaign_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdNoThe plan id (GUID).
externalIdNoThe campaign's external id, with externalSource.
includeDailyNoInclude the per-day forecast-versus-actual series (default false).
externalSourceNoThe campaign's external source, with externalId.

Output Schema

NameRequiredDescriptionDefault
okNo
resultsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only cover the read-only, non-destructive, closed-world profile; the description adds substantial context beyond that, including stage-dependent data availability, stock-out day exclusion, a censored flag, and an explicit causal caveat ("association, not proven cause"). This is exactly the kind of behavioral framing an agent needs to interpret results correctly.

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 primary payload and organized by lifecycle stage; no filler sentences. It is dense — the effect-measure enumeration runs long — but every clause conveys distinct content an agent would otherwise have to infer.

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?

Given an output schema exists, the description need not explain return values, yet it goes further to explain stage gating and identifier resolution, which is what an agent actually needs to call it. The only real gap is error/validation behavior when neither planId nor the externalSource+externalId pair is supplied, on a tool with no required parameters.

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 planId, externalId, externalSource and includeDaily are already documented in the schema. The description restates identifier pairing and includeDaily's purpose without adding format or edge-case detail, so baseline 3 applies.

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 ("Get a campaign's results") and enumerates the payload: close-out actuals, derived metrics, frozen applied forecast vs. elapsed sales, and post-close-out effect measures. An agent knows exactly what comes back. It does not, however, contrast itself with siblings like get_campaign_readiness or close_out_campaign, so the differentiation burden falls on the reader.

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 implied through lifecycle conditions — the applied forecast exists only "once a planner has applied the plan," and effect analysis only "once close-out opens" — which effectively tells the agent when this tool is useful. But there is no explicit when-to-use versus alternatives statement and no guidance on what happens if the identifiers are missing or ambiguous (0 required params).

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