Skip to main content
Glama

Compare comp plans

compare_comp_plans
Read-onlyIdempotent

Use this when the user wants to compare two commission plans or comp plans ("compare these two comp plans", "which plan pays more at 120% of quota"): computes the commission each plan pays at several sales levels, the difference, and where one plan overtakes the other, with tiers, accelerators, quota percentages and caps applied, computed in cents. Does not handle draws, deal lists or taxes, and does not judge which plan is fair. Do not use for a single plan's payout (use calculate_commission).

Input Schema

NameRequiredDescriptionDefault
plan_aYesFirst plan, e.g. {"name":"Flat 10%","rate":10}.
plan_bYesSecond plan, e.g. {"name":"Accelerated","quota":100000,"tier_unit":"quota_percent","tiers":[{"up_to":100,"rate":8},{"up_to":null,"rate":14}]}.
currencyNoISO currency code, default USD, e.g. CAD or EUR.
sales_levelsNoSales totals to compare at, e.g. [50000, 100000, 150000]. Default: 50% to 200% of the quota.

Output Schema

NameRequiredDescriptionDefault
modeYes
rowsYes
plansYes
summaryYes
currencyYes
crossoversYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

The annotations already state that this is a read-only, idempotent, closed-world, non-destructive computation. The description usefully adds that tiers, accelerators, quota percentages and caps are applied, that results are computed in cents, and that it won't judge fairness. However, it claims "Does not handle draws", but the schema exposes draw_amount and draw_type on both plans, so it contradicts the structured data and could mislead an agent about whether draws are respected.

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?

One long but well-structured sentence with the trigger, the computed outputs and the scope limits, followed by two short exclusion sentences; it is reasonably front-loaded. A small amount of density could be trimmed, and the incorrect draws clause is wasted text, but overall there is little padding.

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 complex nested-schema tool, the description covers the purpose, the outputs and routing, and an output schema exists so return values need not be explained. But the "does not handle draws" statement conflicts with the plan schema and leaves the agent unsure whether draw parameters matter, which is a completeness gap on a non-trivial input field.

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 both the plan objects and the sales_levels/currency parameters are already well documented (defaults, examples and formats included). The description only alludes to "several sales levels" and adds no syntax or default information beyond the schema, so the baseline of 3 is appropriate.

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

Purpose5/5

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

The description gives a specific verb and resource (compare two commission/comp plans) and states exactly what the output contains: payouts at several sales levels, the difference, and the crossover point. It distinguishes itself from the sibling calculate_commission by scoping itself to two plans, so an agent can separate the two without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It includes concrete trigger phrases ("compare these two comp plans", "which plan pays more at 120% of quota"), an explicit exclusion ("Do not use for a single plan's payout"), and names the alternative (calculate_commission). This is the when-to-use / when-not-to-use / alternative pattern done properly.

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