Skip to main content
Glama

FreeDailyPro Calculators

calculate_discount

Read-onlyIdempotent

Discount calculator

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": {
      "originalPrice": "<originalPrice>"
    },
    "name": "calculate_discount"
  }
}

Input Schema

NameRequiredDescriptionDefault
salePriceNoPrice after discount, for example 64.
originalPriceYesList price before discount, for example 80. Send two of originalPrice, discountPercent, salePrice.
discountPercentNoDiscount in percent, for example: 20 for 20%.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / discountPercent / description
      Added value: +"Discount in percent, for example: 20 for 20%."
    • addedInput schema / properties / originalPrice / description
      Added value: +"List price before discount, for example 80. Send two of originalPrice, discountPercent, salePrice."
    • addedInput schema / properties / salePrice / description
      Added value: +"Price after discount, for example 64."
  2. First observed

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so safety is covered structurally. The description adds nothing beyond that — notably it does not mention the key behavioral rule that exactly two of the three price/percent inputs must be supplied, which lives only in a parameter description.

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

Conciseness2/5

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

Two words are technically concise but represent under-specification rather than economical writing; there is no front-loaded statement of purpose or scope to reward.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Although the tool is simple and the schema is rich, the description leaves the agent to reconstruct the core contract (which combination of inputs, what result is returned) entirely from structured fields. It should at minimum state the two-of-three input rule and the computed output.

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%, with examples (80, 64, 20) and the "send two of" constraint documented in-schema, so the baseline of 3 applies. The description contributes no additional parameter meaning.

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

Purpose2/5

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

"Discount calculator" only restates the tool name and title; it names no verb, no inputs, and no distinguishing scope versus siblings like calculate_sales_tax or calculate_tip. An agent learns nothing about what the tool actually computes beyond the name itself.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool rather than calculate_sales_tax, calculate_tip, or other pricing-adjacent siblings, and no exclusions or prerequisites. Usage must be fully inferred from the name.

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