Skip to main content
Glama

Instilus small-business decision tools

forge_profit_margin

Convert between profit margin and markup, and work out the price a target margin requires. Answers "what is my profit margin?", "what is the difference between margin and markup?" and "what should I charge for a 40% margin?" from cost and price.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
costYesWhat the item costs you.
priceNoWhat you sell it for. Optional if targetMarginPercent is given.
targetMarginPercentNoThe margin you want, as a percentage. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It implies a pure, side-effect-free calculation, but never states that it is read-only/deterministic or describes what the response contains. For a calculator the risk is low, but the disclosure is thin.

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?

Purpose is front-loaded in the first clause and the description is only two sentences. The three example questions are slightly redundant with the opening sentence, which is the only wasted space.

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?

For a simple three-parameter calculator with no output schema and no annotations, the description covers the use cases and inputs adequately. The main gap is that return values (e.g., margin %, markup %, computed price) are only implied rather than stated.

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%, and the schema already explains cost, price, and targetMarginPercent, including the conditional 'optional if targetMarginPercent is given' relationship. The description only restates 'from cost and price' and a 40% margin example, adding no format, unit, or interaction detail beyond the schema, so baseline 3 applies.

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 names specific verbs (convert, work out) and precise resources (profit margin, markup, required price), so an agent immediately knows this is a margin/markup calculator. It does not explicitly contrast itself with the finance siblings (break_even, ebitda, etc.), but the domain is distinct enough that confusion is unlikely.

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?

The three quoted example questions ('what is my profit margin?', 'what is the difference between margin and markup?', 'what should I charge for a 40% margin?') give concrete context for when to invoke the tool. There are no stated exclusions or named alternatives, which keeps it short of a 5.

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