Skip to main content
Glama

business_profit_margin

Read-onlyIdempotent

Profit margin calculator

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "business_profit_margin"
  }
}

Input Schema

NameRequiredDescriptionDefault
costNoCost of one unit, for example 12.
priceNoSelling price of one unit, for example 30.
profitNoProfit per unit, for example 18. Send any two of cost, price, profit, marginPct, markupPct.
shippingNoShipping cost per unit, for example 4.
marginPctNoProfit margin in percent of price, for example 60.
markupPctNoMarkup in percent of cost, for example 150.
acquisitionNoCustomer acquisition cost per unit, for example 6.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / acquisition / description
      Added value: +"Customer acquisition cost per unit, for example 6."
    • addedInput schema / properties / cost / description
      Added value: +"Cost of one unit, for example 12."
    • addedInput schema / properties / marginPct / description
      Added value: +"Profit margin in percent of price, for example 60."
    • addedInput schema / properties / markupPct / description
      Added value: +"Markup in percent of cost, for example 150."
    • addedInput schema / properties / price / description
      Added value: +"Selling price of one unit, for example 30."
    • addedInput schema / properties / profit / description
      Added value: +"Profit per unit, for example 18. Send any two of cost, price, profit, marginPct, markupPct."
    • addedInput schema / properties / shipping / description
      Added value: +"Shipping cost per unit, for example 4."
  2. Changed2 schema fields changed
    • addedInput schema / properties / cost / minimum
      Added value: +0
    • addedInput schema / properties / price / minimum
      Added value: +0
  3. Changed6 schema fields changed
    • addedInput schema / properties / acquisition
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / marginPct
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / markupPct
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / profit
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / shipping
      Added value: +{
      +  "type": "number"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "cost",
      -  "price"
      -]
  4. First observed

TDQS

C2.1/5.0
Behavior2/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 the safety profile is covered without the description's help. The description adds nothing beyond that: it does not disclose the 'supply any two of five values and the rest are derived' solving behavior, whether shipping and acquisition costs are folded into the calculation, or what a result contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

It is a two-word fragment with no structure at all. Brevity here is under-specification rather than economy, since nothing about inputs, derived values, or outputs is front-loaded for the agent.

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

Completeness1/5

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

For a seven-parameter solver with no required fields, non-obvious degrees of freedom (any two of five metrics, plus optional shipping and acquisition), and no output schema, the description supplies no information whatsoever. An agent cannot know what it will get back or how the optional cost fields affect the result.

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 each of the seven parameters carries an example, including the key note 'Send any two of cost, price, profit, marginPct, markupPct.' With the schema doing all the work, the baseline of 3 applies; the description contributes no additional parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description reads 'Profit margin calculator', which essentially restates the tool name (business_profit_margin) with a generic noun added. It gives no indication of what kind of margin is computed from which inputs, and it does not differentiate this tool from siblings like business_product_margin, business_break_even, or business_marketplace_fee, which plausibly overlap.

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 when-to-use guidance, no prerequisites, and no mention of an alternative. An agent facing business_product_margin versus business_profit_margin has nothing in this definition to route on.

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