Skip to main content
Glama

Promotion Response

get_promotion_response
Read-only

The measured promotion or price response for a Promotion or PriceChange demand forecast plan: a suggested Conservative / Expected / Optimistic percent range measured from this workspace's own discount windows, line discounts, price history and completed plans, against the plan's frozen forecast or the in-stock daily rate just before (stock-out days left out). It is labelled with its sample size (promotionCount), its scope (item: the plan items' own history; category: their categories') and the promotions it came from, plus the post-promotion dip. Below minObservedPromotions status is insufficient_history and there is no number; a price change without a current and planned price is needs_prices. No AI originates these numbers. Advisory and read-only: it never changes the plan; a planner adopts it explicitly in Spark.

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": {
      "planId": "<planId>"
    },
    "name": "get_promotion_response"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdYesDemand forecast plan id (GUID) of a Promotion or PriceChange plan.

Output Schema

NameRequiredDescriptionDefault
dipNo
asOfNo
kindNo
liftNo
noteNo
itemsNo
scopeNo
statusNo
summaryNo
excludedNo
suggestedNo
elasticityNo
methodNoteNo
promotionsNo
lookbackDaysNo
promotionCountNo
scopeTruncatedNo
scopeCategoriesNo
observationCountNo
medianDiscountPercentNo
minObservedPromotionsNo
planPriceChangePercentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Far beyond the annotations: it discloses the measurement basis (workspace discount windows, price history, completed plans), the exclusion of stock-out days, the labelling metadata (promotionCount, item vs category scope), and the two failure states insufficient_history and needs_prices. It also asserts that no AI originates the numbers and that the tool is advisory and never mutates the plan.

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?

Purpose, method, and caveats are front-loaded and nearly every clause carries new information. The first sentence is long and clause-heavy, though, and the status conditions would read more clearly as a separate sentence rather than trailing the main claim.

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

Completeness5/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 values need not be described, yet the definition still covers scope, sample size, status outcomes, and the non-mutating adoption model. Nothing an agent needs in order to decide whether the returned number is trustworthy is missing.

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 planId is fully documented in the schema with the same GUID phrasing and plan-type restriction the description uses. The description adds no additional meaning about the parameter, so the baseline 3 is appropriate.

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 statement of the resource ('The measured promotion or price response for a Promotion or PriceChange demand forecast plan') and specifies the output shape (Conservative / Expected / Optimistic percent range). It doesn't name a sibling tool to contrast against, which is the only reason it falls short of a 5.

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?

It implies the applicable context (Promotion or PriceChange plans) and mentions the planner workflow in Spark, but never states explicitly when to call this versus alternatives such as the plain demand forecast tool. The agent must infer eligibility from the plan-type restriction.

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