Skip to main content
Glama

Counter-promo margin & break-even lift simulator

magpie_promo_simulator
Read-only

Calculate exact CM1/CM2 unit economics, break-even floor price, max safe discount %, and required order volume lift to break even on a proposed discount or counter-promotion. Optionally pass competitorDomain to pull a rival's live sale discount depth from Magpie's Brand Graph. Costs 1 credit.

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": {
      "regularPrice": "<regularPrice>"
    },
    "name": "magpie_promo_simulator"
  }
}

Input Schema

NameRequiredDescriptionDefault
cogsNoUnit landed COGS in the same currency. Omit to estimate from defaultCogsPct (default 32%).
vatPctNoVAT/GST included in storefront price (0 for US, 20 for UK, 25 for NO/SE/DK; default 0).
adCostPctNoBlended ad spend as % of net sales / MER (default 18).
discountPctNoProposed discount percentage (0 to 90), e.g. 20. If omitted and competitorDomain is on sale, uses the competitor's live discount depth.
regularPriceYesYour regular storefront selling price (incl. VAT if vatPct > 0), e.g. 120.
shippingCostNoFulfillment/shipping cost per order (default 6).
extraOrderCostNoOptional extra promo cost per order such as free-shipping absorption or gift-with-purchase.
competitorDomainNoOptional competitor domain in Magpie's Brand Graph to compare against their live sale depth.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description adds two traits not in the schema: the call costs 1 credit, and competitorDomain triggers a live pull from Magpie's Brand Graph. It does not state rate limits, whether results are cached, or how defaults interact, which keeps it below a 5.

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?

Three sentences, front-loaded with the payoff (what it computes), followed by the optional enrichment and the cost. No filler, and each sentence carries distinct information.

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 enumerates the return values (CM1/CM2, floor price, max discount, required lift) plus per-call cost, which is enough for an agent to call it correctly. It leaves the response shape (units, single vs. scenario comparison) implicit, which is a minor gap for a tool with eight parameters and computed outputs.

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 every parameter's meaning and default is already documented there. The description only restates the competitorDomain behavior and the discount's role, adding essentially no semantics beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (calculate) and enumerates the exact outputs: CM1/CM2 unit economics, break-even floor price, max safe discount %, and required volume lift. An agent can tell this is an economics simulator rather than a pricing lookup or promo planner, and it names the optional Brand Graph enrichment explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The framing 'on a proposed discount or counter-promotion' makes the triggering context clear, and the competitorDomain sentence tells the agent when to use the optional enrichment. It stops short of naming when to prefer a sibling such as magpie_promo_plan or magpie_sale_response instead, so there is no explicit exclusion guidance.

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