Skip to main content
Glama

business_product_margin

Read-onlyIdempotent

Product margin 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>",
      "price": "<price>"
    },
    "name": "business_product_margin"
  }
}

Input Schema

NameRequiredDescriptionDefault
costYesWhat one unit costs you.
priceYesWhat you sell one unit for.
quantityNoUnits, for totals.
fixedCostsNoOne-off costs (tooling, setup, launch) for the break-even quantity.
targetMarginPctNoA margin you want; its price is added to the price ladder.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed5 schema fields changed
    • addedInput schema / properties / cost / description
      Added value: +"What one unit costs you."
    • addedInput schema / properties / fixedCosts
      Added value: +{
      +  "description": "One-off costs (tooling, setup, launch) for the break-even quantity.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / price / description
      Added value: +"What you sell one unit for."
    • addedInput schema / properties / quantity
      Added value: +{
      +  "description": "Units, for totals.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / targetMarginPct
      Added value: +{
      +  "description": "A margin you want; its price is added to the price ladder.",
      +  "maximum": 99.9,
      +  "minimum": 0,
      +  "type": "number"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / cost / minimum
      Added value: +0
    • addedInput schema / properties / price / minimum
      Added value: +0
  4. First observed

TDQS

C2.3/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 fully covered by structured data. The description adds nothing beyond that — no note that optional fields like fixedCosts and targetMarginPct change the computed output, and no indication of what the 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.

Conciseness3/5

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

Three words with zero wasted phrasing, but the extreme brevity reflects under-specification rather than disciplined conciseness. There is no structure or front-loaded explanation to guide the call.

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

Completeness2/5

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

With five parameters including optional fixedCosts, quantity, and targetMarginPct, and no output schema, the description should explain what is returned (margin percentage, totals, price ladder, break-even quantity). None of that is present, leaving the agent unable to anticipate results or understand how optional inputs change the output.

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 of the five parameters clearly documented in the input schema, so the schema carries the full semantic load. The description adds no meaning beyond that, which lands at the baseline for high-coverage schemas.

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 is "Product margin calculator," which essentially restates the tool name and title rather than adding a verb+resource statement of what it computes. It gives no signal distinguishing it from the sibling business_profit_margin, so an agent cannot tell which calculator to pick from the description alone.

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 alternatives such as business_profit_margin or business_break_even. The agent must infer the choice entirely from tool names.

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