Skip to main content
Glama

SaaSCity

Markup and margin

markup_margin
Read-onlyIdempotent

Selling price, profit and margin from a cost and a markup percent, or markup and margin from a cost and a selling price. Full calculator: https://saascity.io/free-tools/markup-calculator

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": "markup_margin"
  }
}

Input Schema

NameRequiredDescriptionDefault
costYesUnit cost
priceNoSelling price (give this or markup_pct)
markup_pctNoMarkup in percent (give this or price)

Output Schema

NameRequiredDescriptionDefault
resultYesThe calculator result; percentages as 0-1 shares unless the key says pct
calculator_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety and idempotency are covered by structured data. The description adds little beyond that: it does not mention behavior for missing/conflicting inputs or the exact outputs, and the external link is peripheral. Adequate but thin on top of 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.

Conciseness4/5

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

A single front-loaded sentence that names the two modes in the order an agent would scan them, with no redundant padding. The trailing promotional URL is the only element that does not help invocation correctness.

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

Completeness4/5

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

With an output schema present, the description need not enumerate return values, and it correctly focuses on the input combinations that drive them. What remains missing is conflict handling when both optional parameters are supplied, a small gap for a calculator of this complexity.

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%, with each parameter already documented as 'Unit cost', 'Selling price (give this or markup_pct)' and the like, so the baseline is 3. The description adds the mapping from input pair to output set, which is genuine semantic value, but no units, ranges, or precedence rules for conflicting parameters.

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 precisely what is computed and in which direction: price, profit and margin from cost+markup_pct, or markup and margin from cost+price. That is a specific verb+resource statement an agent can match to a request, though it does not explicitly contrast itself with the numeric siblings (calculate_arr, rule_of_40, etc.).

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

Usage Guidelines4/5

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

It makes the branch condition explicit - supply a markup percent to get price, or a selling price to get markup and margin - which is the primary usage decision for this tool. It does not address edge cases such as what happens if both price and markup_pct are passed, or when to prefer a generic calculate_* sibling.

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.