Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

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

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": {
      "price": "<price>"
    },
    "name": "x402-discount-calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceYes
percentNo
discountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "price"
      +]
  2. 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"
  3. First observed

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral-disclosure burden. It mentions a free-trial quota per signed wallet, but does not explain authentication or payment requirements, side effects, error behavior, or return format. For a pure calculation tool these omissions are less severe, but they are still present.

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 front-loaded and appropriately short, but the appended '🆓 5 free trial calls per signed wallet' is promotional context awkwardly attached to the calculation purpose. The phrasing 'from an original price and a 0-100 percent' is also slightly imprecise.

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?

With no annotations, no output schema, and 0% schema description coverage, the definition should do more. It names the outputs but not their format, and it leaves one of the three parameters undocumented, so an agent cannot confidently infer all calling details.

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 description coverage is 0%, and the description explains 'price' as an original price and 'percent' as a 0-100 value, but it leaves the 'discount' parameter entirely undefined. It also does not clarify the relationship between 'percent' and 'discount' or which parameter drives the calculation when multiple are supplied.

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 ('Computes') and outputs ('discount savings and final price'), and identifies the inputs as original price and a 0-100 percent. It is clear enough to distinguish from unrelated calculators, though it does not explicitly differentiate itself from the similar 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?

There is no guidance on when to choose this tool over x402-discount or other calculator siblings, and no exclusions or prerequisites are given. Usage is only implied by the calculation described in the sentence.

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.