Skip to main content
Glama

ConvertIt.pro — Calculators, Unit Converters & US Hardscape Catalog

Profit Margin & Markup Calculator

calculate_margin_markup
Read-onlyIdempotent

Compare cost and selling price or compute selling price from a target gross margin % or markup %. Canonical page: https://convertit.pro/margin-markup

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": {
      "mode": "<mode>",
      "cost": "<cost>",
      "value": "<value>"
    },
    "name": "calculate_margin_markup"
  }
}

Input Schema

NameRequiredDescriptionDefault
costYes
modeYes
valueYesSelling price (direct), target margin % (<100), or target markup %

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered and the description does not contradict it. Beyond that it adds only the conceptual model of the three calculation paths, with no mention of output shape, error behavior on invalid margins, or rounding.

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?

Two short sentences with the core capability front-loaded and no filler. The trailing canonical URL is not needed for invocation but is a single low-cost clause rather than bloat.

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?

For a simple 3-parameter, non-destructive calculator with no output schema, the description covers the input side adequately but says nothing about what is returned (margin, markup, and profit are presumably all emitted) or how the modes differ. An agent can call it, but only by inferring the mode semantics from the enum names.

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 coverage is only 33%: `value` is documented but `mode` and `cost` are not. The description partially compensates by explaining that `value` is the selling price in the direct case or a target percentage otherwise, which maps onto the mode enum, but it never explicitly defines the `direct`/`margin`/`markup` values or clarifies `cost` units.

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 gives specific verbs and resources: compare cost against selling price, or compute selling price from a target gross margin % or markup %. That distinguishes the three calculation paths, but it never names the sibling tools (e.g. calculate_roi, calculate_break_even) it should be preferred over, so differentiation is implicit.

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

Usage Guidelines3/5

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

The two clauses hint at when each path applies (direct comparison vs. deriving a price from a target margin/markup), but it never states what the `mode` enum values mean or when to choose one over another. There are no exclusions, prerequisites, or guidance for cases like margin >= 100.

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