Skip to main content
Glama

Model a price increase

calculate_price_increase
Read-onlyIdempotent

Model a subscription price rise: monthly revenue before and after, given how many customers are expected to leave over it, and the share of customers that can be lost before the rise stops paying. Send numbers only (percentages as 5 for 5%). Answers a headline, the figures behind it and notes. Arithmetic on your own numbers, not financial advice. Answers from what you send alone: nothing is fetched or stored.

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": {
      "customers": "<customers>",
      "price": "<price>",
      "newPrice": "<newPrice>"
    },
    "name": "calculate_price_increase"
  }
}

Input Schema

NameRequiredDescriptionDefault
leaveNoCustomers you expect to lose over it (%). Your guess at the share who cancel because of the new price. Optional.
priceYesPrice now, per month
currencyNoThe sign money is written with; "none" for bare numbers. Default "$".
newPriceYesNew price, per month
customersYesPaying customers

Output Schema

NameRequiredDescriptionDefault
toolYes
toolUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld=false; the description reinforces this with 'nothing is fetched or stored' and 'answers from what you send alone', which tells the agent the tool is a pure stateless calculator. It also previews the response ('a headline, the figures behind it and notes'), adding useful context beyond the annotation set.

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?

It is compact and front-loaded with the purpose, then the inputs, then the output and disclaimers. The phrase 'given how many customers are expected to leave over it' is slightly convoluted and forces a re-read, but no sentence is pure filler.

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 five-parameter, stateless calculator with a full input schema, rich annotations and an output schema, the description covers purpose, input encoding, response shape and statelessness. The only remaining gap is orienting the agent among the sibling calculation tools, which is a guidance rather than completeness issue.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description adds a transmission rule not in the schema: 'Send numbers only (percentages as 5 for 5%)', which clarifies the expected encoding of the leave percentage and monetary values. That is real marginal value over the structured fields.

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?

States a specific verb and resource ('Model a subscription price rise') and enumerates the exact outputs: monthly revenue before/after and the break-even churn share. An agent can distinguish this from calculate_mrr or calculate_churn by the revenue-delta framing alone.

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 modeling context and rules out financial advice ('Arithmetic on your own numbers, not financial advice'), but gives no explicit when-to-use versus when-not guidance and names no sibling alternative for plain MRR or churn calculations, leaving the agent to infer the boundary.

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