Skip to main content
Glama

Preview Campaign Plan

preview_campaign_plan
Read-only

Preview a campaign plan's forecast effect under one scenario (Expected by default): baseline versus adjusted units and revenue per item over the remaining campaign window, with warnings such as overlapping applied plans or bounded effects. It is the same calculation a planner applies, and it changes nothing. Alongside it, campaignHistory: the brand's measured past campaigns of the same kind and channels (median and range of peak lift, pull-forward and lift per 1k of spend, with n), to set beside the stated lift; association, measured, never generated. 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": "preview_campaign_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdNoThe plan id (GUID).
scenarioNoConservative, Expected (default) or Optimistic.
externalIdNoThe campaign's external id, with externalSource.
includeDailyNoInclude the per-day series for each item (default false).
externalSourceNoThe campaign's external source, with externalId.

Output Schema

NameRequiredDescriptionDefault
okNo
planNo
forecastNo
campaignHistoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description's 'it changes nothing' adds little; however it does disclose non-obvious behavior: which warnings may accompany the result (overlapping applied plans, bounded effects) and that campaignHistory is measured rather than generated, which guards against misreading it as a prediction. That is real context beyond the annotations.

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

Conciseness3/5

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

The purpose is front-loaded, but the middle section is dense and the campaignHistory clause ('association, measured, never generated') is cryptic and long, packing return-value explanation into a description that has an output schema. Tighter phrasing would make the either/or identification rule more prominent.

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?

For a read-only preview tool with an output schema, the description covers identification, scenario selection, the daily-series toggle, and the presence of warnings and historical comparison context. Nothing an agent needs to invoke it correctly appears missing, aside from the cluttered treatment of the history payload.

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%, so the baseline is 3. The description does add one genuinely useful rule not encoded in the schema: identify the plan either by planId or by externalSource plus externalId, which clarifies a pairing that the flat optional-parameter schema does not express. Scenario default and includeDaily are only restated.

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 opens with a precise verb+resource: 'Preview a campaign plan's forecast effect under one scenario', and enumerates what is returned (baseline vs adjusted units and revenue per item over the remaining window, warnings). 'It is the same calculation a planner applies, and it changes nothing' implicitly separates it from mutation siblings like upsert_campaign_plan or close_out_campaign, though 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?

Usage is implied rather than stated: the tool is for inspecting a plan's forecast and comparing stated lift against measured history before acting. There is no explicit 'use X to apply changes' or 'use Y for actuals' routing, and no statement of prerequisites beyond how to identify the plan.

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