Skip to main content
Glama

PriceSway

Estimate the effect of a price change

estimate_price_change
Read-onlyIdempotent

Estimates how a price change is likely to move units sold, revenue and gross profit for a product sold online, with a constant-elasticity demand model. Uses a reference elasticity for the product's category unless the merchant gives their own. An estimate with its assumptions stated, not a forecast.

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": {
      "currentPrice": "<currentPrice>",
      "newPrice": "<newPrice>"
    },
    "name": "estimate_price_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryNoThe product's category, e.g. "kitchen". Chooses the reference elasticity.
newPriceYesThe price being considered.
unitCostNoWhat one unit costs the store. With it the answer includes gross profit.
elasticityNoThe product's own price elasticity of demand, if the merchant has measured one (negative, e.g. -1.8). Replaces the reference figure.
productNameNoThe product's name, used when no category is given.
currentPriceYesThe price today.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish that this is a safe, read-only, idempotent, non-destructive estimate. The description adds meaningful behavioral context beyond that: it uses a constant-elasticity model, defaults to a category reference elasticity unless one is supplied, and deliberately frames the result as an estimate with assumptions rather than a forecast.

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 short sentences, front-loaded with the purpose and outcomes, followed by the modeling assumption and the estimate-not-forecast caveat. Every sentence adds useful information without padding.

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 estimation tool with no output schema, the description covers the modeled outputs and the key assumptions, which is enough for an agent to invoke it correctly. It stops short of describing the exact response shape or how assumptions are surfaced, leaving a small gap.

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 all six parameters are already documented in the schema. The description reinforces the key relationships (category chooses the reference elasticity, merchant elasticity replaces it, unitCost enables gross profit), but largely repeats meaning already present in the parameter descriptions.

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 states a specific verb (estimates) and resource (effect of a price change) and names the modeled outcomes: units sold, revenue and gross profit. It does not distinguish itself from siblings such as calculate_profit_per_sale or apply_pricing_rule, so 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?

The context of use is implied clearly (evaluate a proposed price change using elasticity), and it notes that a merchant-supplied elasticity replaces the reference. It gives no explicit when-not-to-use guidance or comparison to sibling tools, so it is only implied usage.

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