Skip to main content
Glama

Compare commercial offers

compare_offers
Read-onlyIdempotent

Compare 2 to 4 offers for one request. Returns technical fit, commercial eligibility, validity at as_of and economics separately: supplier charge components with typed missing reasons, a supplier charge subtotal only when charge_comparability holds (task supplied and matching, complete charges, one currency and tax basis, known minimum commitments, same acceptance units, valid offers), and costs the customer keeps as customer_retained_cost_not_modelled. total_customer_cost is always null and decision_comparability always false in this version. Never a ranking or a winner; unknown is never zero or an exclusion.

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": {
      "offers": "<offers>"
    },
    "name": "compare_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskNoReviewed task id task_<slug>_v<n> the work must match
as_ofNoDate the validity windows are checked against, YYYY-MM-DD; default the snapshot date
offersYesOffer ids (off_...) or offer version ids (ofv_..._v<n>) to compare
robotsNoRobots or systems needed
territoryNoISO 3166-1 alpha-2 country code
output_unitNoUnit of output_quantity: accepted_inspection or accepted_output
period_monthsNoPeriod of the comparison in months, 1 to 240
operating_hoursNoSystem hours over the period
output_quantityNoAccepted outputs over the period; needs output_unit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Well beyond the annotations, it discloses the exact conditions under which a subtotal is emitted (charge_comparability: matching task, complete charges, one currency and tax basis, known minimum commitments, same acceptance units), that unmodelled costs land in customer_retained_cost_not_modelled, and that total_customer_cost is always null and decision_comparability always false in this version. These are genuinely useful behavioral caveats not carried by readOnlyHint/idempotentHint; the only gap is no statement about result size, latency or partial-failure behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first clause, and nearly every clause carries information. But the single run-on sentence with a six-item parenthetical condition list is hard to parse and would read far better as a short list.

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?

With 9 parameters, no output schema and 100% schema coverage, the description does the necessary work of explaining the return shape and its version limitations. It stops short of describing each returned facet's contents in depth, but nothing essential for calling it correctly 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 all 9 parameters. The description echoes a few of those semantics (task matching, as_of validity windows, single currency/tax basis) but adds no syntax, format or default details 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 and resource ('Compare 2 to 4 offers for one request') and immediately enumerates the facets returned, so the agent knows precisely what the tool does. It does not name a sibling to contrast with (e.g. get_offer or find_offers), which keeps it just short of a 5.

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?

Implies usage through constraints ('for one request', 2-4 offers, task must match) and rules out a common misreading ('Never a ranking or a winner'). However, it never states when to choose this over get_offer or find_offers, nor any prerequisites or when-not conditions.

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.