Skip to main content
Glama

x402-discount-calc

Discount Calc: Computes discount savings and final price from an original price and a 0-100 percent 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
priceNo
percentNo
discountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / discount / description
      Removed value: -"Discount to process"
    • removedInput schema / properties / percent / description
      Removed value: -"Percent to process"
    • removedInput schema / properties / price / description
      Removed value: -"Price to process"
  2. First observed

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden, and it discloses little: no indication that this is a pure, side-effect-free computation, no output shape, and no behavior for out-of-range or missing inputs. The only behavioral detail is the '🆓 5 free trial calls per signed wallet' billing note, which is promotional rather than operational.

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

Conciseness3/5

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

The core sentence is efficient and front-loaded, but the trailing '🆓 5 free trial calls per signed wallet' emoji/promo fragment is clutter that does not help selection or invocation.

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?

For a 3-parameter tool with zero schema descriptions, no annotations, and no output schema, the description should clarify each input and what is returned (savings amount vs. final price). It gestures at the outputs but leaves the parameter roles and edge-case behavior unresolved.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so all three string params are undocumented. The description maps loosely to 'original price' and '0-100 percent', but leaves the third parameter (discount) completely unexplained, and the overlap between 'percent' and 'discount' is exactly the ambiguity the agent needs resolved.

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?

States a specific verb and resource ('computes discount savings and final price from an original price and a 0-100 percent'), so the agent knows this is a discount/price arithmetic tool. It is distinguishable from generic siblings like x402-percent-of, though it does not explicitly reference the near-identical x402-discount sibling.

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?

No when-to-use guidance, no prerequisites, and no mention of alternatives such as x402-discount, x402-decrease-by-percent, or x402-percent-of. The agent is left to infer that this is the discount-specific entry point.

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