Skip to main content
Glama

Rahul D Sarker: Marketing & RevOps Tools

Performance Marketing Margin Protector

performance_marketing_margin_protector
Read-onlyIdempotent

Calculate the break-even and maximum CPA that protect a target profit margin, and check current CPA against that ceiling. See the full version at https://rahuldsarker.co/calculators/performance-marketing-margin-protector

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aovYesAverage order / contract value
currentCpaYesCurrent CPA
grossMarginPctYesGross margin, as a percentage
targetProfitPctYesTarget profit margin to keep after ad cost, as a percentage

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so the safety profile is fully covered. The description adds the comparison behavior (current CPA is checked against the computed ceiling), which hints at the result shape, but says nothing about output format or precision. Reasonable but thin given the low bar set by annotations.

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?

Front-loaded single operational sentence that states the computation and the check; efficient. The trailing promotional link to 'the full version' is the only sentence that doesn't serve invocation, a minor deduction.

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 four-parameter, fully documented, read-only calculator with no output schema, the description conveys what is produced (break-even CPA, max CPA, and a ceiling comparison). Return values are only implied rather than enumerated, which is the main remaining gap.

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 all four parameters (aov, grossMarginPct, targetProfitPct, currentCpa) are self-documented with units noted. The description adds no additional meaning, syntax, or unit clarification beyond the schema, so the 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?

Names a specific verb (calculate) and concrete outputs (break-even CPA, maximum CPA) plus a validation step (check current CPA against the ceiling). This is clearly distinct from generic CPA/CAC siblings like cpa_to_cac_scalability_matrix or roas_calculator, though it never explicitly names an alternative. Clear but without sibling differentiation in text.

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 implies the scenario (protecting a target margin while evaluating paid acquisition costs), but states no explicit when-to-use condition, prerequisites, or which sibling calculator to prefer. Usage is inferable from the outputs described rather than stated.

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