Skip to main content
Glama

Rahul D Sarker: Marketing & RevOps Tools

ROAS & Break-even ROAS Calculator

roas_calculator
Read-onlyIdempotent

Calculate ROAS, ACOS, break-even ROAS, and profit from ad revenue, ad spend, and gross margin. See the full version at https://rahuldsarker.co/calculators/roas

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
spendYesTotal ad spend
revenueYesRevenue attributed to the ad spend
marginPctYesGross margin, as a percentage, e.g. 60 for 60%

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered. The description adds no behavioral context of its own — no edge-case handling (e.g., zero spend/zero margin), no units assumptions beyond margin percent, no note on output format.

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 lists the outputs immediately, followed by a link. It is efficient; the external URL is the only non-earning element for an agent.

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

Completeness3/5

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

For a simple pure-function calculator with a fully described 3-param schema and complete safety annotations, the essentials are covered. However, it omits any handling notes for degenerate inputs and offers no differentiation from numerically adjacent siblings, leaving small but real gaps.

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 all three parameters documented, so the baseline is 3. The description restates the inputs (ad revenue, ad spend, gross margin) but adds no syntax, range, or unit detail beyond what the schema already provides.

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?

States a specific verb (Calculate) and enumerates concrete outputs (ROAS, ACOS, break-even ROAS, profit), so the agent knows exactly what the tool produces. It does not explicitly distinguish itself from a sibling like roas_to_mer_converter, which is the only gap.

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?

The description never says when to use this tool versus alternatives (e.g., roas_to_mer_converter, ltv_cac_calculator) or what preconditions apply. The only extra guidance is a link to a 'full version', which is promotional rather than situational.

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