Skip to main content
Glama

AI Builder Marketplace: software pricing dossiers

compare_offer_costs

Read-onlyIdempotent

Compare 1 to 3 offers on the same billing term and period. prices maps offer_id to the monthly price the buyer would pay for that product without the offer (same currency as the vendor). Returns fit and cost per offer: pay today, cost over the period with and without the offer, saving, or why it cannot be calculated (credits, a longer trial, unknown duration).

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": {
      "offer_ids": "<offer_ids>",
      "prices": "<prices>"
    },
    "name": "compare_offer_costs"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthsNoPeriod to compare over, in months (default 12).
pricesYesThe monthly price the buyer would pay without the offer, as {offer_id: amount}, in the vendor's currency.
billingNoBilling term to compare on: 'monthly', 'annual' or 'biennial'.monthly
offer_idsYes1 to 3 offer ids, each from the id field of a search_offers result.
situationNoSame as check_offer_eligibility: {customer, plan, billing}; optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / billing / description
      Added value: +"Billing term to compare on: 'monthly', 'annual' or 'biennial'."
    • addedInput schema / properties / billing / enum
      Added value: +[
      +  "monthly",
      +  "annual",
      +  "biennial"
      +]
    • addedInput schema / properties / months / description
      Added value: +"Period to compare over, in months (default 12)."
    • addedInput schema / properties / offer_ids / description
      Added value: +"1 to 3 offer ids, each from the id field of a search_offers result."
    • addedInput schema / properties / prices / description
      Added value: +"The monthly price the buyer would pay without the offer, as {offer_id: amount}, in the vendor's currency."
    • addedInput schema / properties / situation / description
      Added value: +"Same as check_offer_eligibility: {customer, plan, billing}; optional."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, and the description goes beyond them by describing the returned payload: pay today, cost over the period with and without the offer, saving, and explicit failure reasons (credits, longer trial, unknown duration). That is genuinely useful disclosure given there is no output schema, though the meaning of 'fit' is left undefined.

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?

Two sentences, front-loaded with the core action and scope, with no filler. The second sentence is dense with parenthetical qualifiers but every clause carries information about return values or failure modes.

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 5-parameter tool with nested objects and no output schema, the definition covers purpose, the key cross-parameter constraint, the shape of results, and reasons results may be unavailable. Minor gaps remain around what 'fit' denotes and behavior when more than three offer ids are supplied.

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 coverage is 100%, so the baseline is 3. The prices explanation largely restates the schema text, but the description does add the meaningful constraint that all compared offers must share the same billing term and period, which the schema does not say.

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 gives a specific verb and resource ('Compare 1 to 3 offers') plus the scoping constraint that all offers must share the same billing term and period. It is clear what the tool does, but it never distinguishes itself from cost-adjacent siblings such as estimate_cost or cost_at_growth, so an agent must still infer which tool applies.

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?

Usage is implied by the comparison framing and the 1-to-3 cardinality limit rather than stated. There is no explicit 'use this when X, use estimate_cost when Y' routing, and no preconditions beyond the shared-term constraint are given, though the 'same as check_offer_eligibility' note does help an agent reuse that tool's input shape.

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