Skip to main content
Glama

Ecomwith Commerce Desk

Calculate break-even ROAS

calculate_break_even_roas
Read-onlyIdempotent

Calculate break-even and target-profit ROAS and maximum CPA from user-supplied revenue, costs, percentage fees and refund reserve. Ask for missing inputs even if asked not to ask questions. Unknown fields must be null, never guessed zeros or a default currency. If any input is unknown, returns needs_input with questions and no estimate. Only explicit user-supplied zeros are valid. Does not read an ad account or change a budget.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceYesUser-supplied revenue per order after discounts and excluding collected taxes. Use null if unknown.
currencyYesUser-supplied ISO 4217 currency code. Use null if unknown; never assume USD.
refundRateYesUser-supplied refund reserve percentage. Use null if unknown; do not substitute 0.
productCostYesUser-supplied product cost per order. Use null if unknown; use 0 only when the user explicitly supplied zero.
shippingCostYesUser-supplied net shipping and fulfillment cost per order. Use null if unknown; do not substitute 0.
targetProfitYesUser-supplied desired profit per order, or 0 when the user requests break-even only. Use null if unknown.
paymentFeeRateYesUser-supplied payment fee percentage: 3 means 3%. Use null if unknown; do not substitute 0.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusYes
estimateNo
missingInputsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior. The description goes well beyond that by disclosing the null-handling contract, the refusal to guess zeros or a default currency, the needs_input response with no estimate, and the scope limit that it does not read an ad account or change a budget. This is rich behavioral disclosure beyond structured fields.

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?

The purpose is front-loaded and the critical input-handling rules follow in a logical order. However, there is some repetition: 'Ask for missing inputs even if asked not to ask questions' is restated by the needs_input sentence, and 'Unknown fields must be null, never guessed zeros' overlaps with 'Only explicit user-supplied zeros are valid.'

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

Completeness5/5

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

For a financial calculator with seven required parameters, an output schema, and full annotation coverage, the description covers the essential contract: what it computes, how unknown inputs are handled, the return state when inputs are missing, and its read-only scope. The output schema can carry return-value details, so no important agent-facing behavior is missing.

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%, so the schema already documents every parameter thoroughly, including units, null semantics, and the 3-means-3% rule. The description adds a general cross-parameter rule about nulls and explicit zeros, but nothing about individual parameter syntax or meaning that the schema does not already provide. Baseline 3 is appropriate.

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 a specific verb and resource: calculate break-even and target-profit ROAS plus maximum CPA from user-supplied inputs. It is clear what the tool does, but it never distinguishes itself from the sibling compare_profit_scenarios or any other alternative, so sibling differentiation is absent.

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 description gives strong conditional rules for missing inputs ('Ask for missing inputs even if asked not to ask questions', 'If any input is unknown, returns needs_input'), which is useful invocation context. However, it does not say when to choose this tool over siblings such as compare_profit_scenarios or when not to use it, leaving alternative selection implied at best.

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