Skip to main content
Glama

UK Data: Finance formulas

calculate_discounted_price

Read-onlyIdempotent

Calculates the final price after applying a discount percentage to the original price, rounded to 2 decimal places. (cost: 1 credit)

Input Schema

NameRequiredDescriptionDefault
original_priceNonumber, required, the original price before discount
discount_percentageNonumber, required, the discount percentage (e.g., 20 for 20% off)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, and open-world behavior. The description usefully adds that the result is rounded to 2 decimal places and that invocation costs 1 credit, which is operational context beyond the annotations.

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?

The definition is one front-loaded sentence plus a short cost note, with no redundant wording. Every element contributes useful information.

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?

For a simple two-parameter pure calculation with full schema coverage and no output schema, the description is complete enough. It states the calculation, rounding behavior, and credit cost without needing further return-value explanation.

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%, and the schema already explains original_price and discount_percentage, including an example percentage. The description adds no parameter-level meaning beyond the schema, so the baseline score of 3 applies.

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 and resource: calculates the final price after applying a discount percentage, with rounding behavior. It is clear what the tool does, but it does not distinguish itself from the sibling calculate_discount tool.

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 explicit when-to-use guidance, no exclusions, and no routing to or from the closely related calculate_discount sibling. The purpose implies a use case, but the definition leaves alternative selection unaddressed.

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