Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-markup-calc

Markup Calc: Computes price, profit, and margin percent from cost and a markup percent using price = cost * (1 + markup/100), rounded to 2 decimals 🆓 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": {
      "cost": "<cost>"
    },
    "name": "x402-markup-calc"
  }
}

Input Schema

NameRequiredDescriptionDefault
costYes
markupNo
markupPercentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "cost"
      +]
  2. Changed3 schema fields changed
    • removedInput schema / properties / cost / description
      Removed value: -"Cost to process"
    • removedInput schema / properties / markup / description
      Removed value: -"Markup to process"
    • removedInput schema / properties / markupPercent / description
      Removed value: -"MarkupPercent to process"
  3. First observed

TDQS

B3.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose meaningful behavior: the exact computation, that results are rounded to 2 decimals, what values come back (price, profit, margin percent), and that usage is gated by a 5-call free trial per signed wallet. It stops short of stating explicitly that the call is pure/stateless with no side effects, which would have closed the remaining gap.

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?

One front-loaded sentence that states the operation, the formula, the rounding rule, and the outputs, plus a short quota note. Nothing is padded, though the emoji and trial-call clause are promotional rather than functional.

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

Completeness3/5

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

There is no output schema, and the description compensates by naming the three returned values, which is adequate for a simple calculator. However, for a three-parameter tool with zero schema documentation, the unresolved markup vs markupPercent ambiguity leaves the agent guessing at invocation 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% across three string parameters, so the description must disambiguate them — but it does not. It references 'cost' and 'a markup percent' and the formula uses 'markup', leaving it unclear what the separate 'markup' and 'markupPercent' parameters are and which one the formula consumes, nor that values are passed as numeric strings.

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?

Names the tool's operation precisely ('Computes price, profit, and margin percent from cost and a markup percent') and even supplies the exact formula, so the agent knows exactly what output to expect. It does not distinguish itself from the closely related siblings x402-margin-calc and x402-discount-calc, which is the only thing keeping it from a 5.

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 statement of when to pick this tool over the sibling margin or discount calculators, and no preconditions or exclusions. The only contextual line is a commercial one ('5 free trial calls per signed wallet'), which tells the agent about quota but not about tool selection.

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