Skip to main content
Glama

Compare cars for sale side by side

vehicle_compare
Read-onlyIdempotent

Use this when the shopper is choosing between two to four cars they have already seen and asks how they differ or which is the better buy, e.g. vins: ["3GNKBKRS6PS118420", "1GNSKRKD2PR339514"]. Do not use it to find cars (that is inventory_search) or for an out-the-door price (that is quote_out_the_door).

Each car comes back exactly as vehicle_get gives it, and comparison adds: differs, the fields whose values are not the same on every car (year, trim, engine, drivetrain, color and the like, and store when the cars are at different stores); shared_features and only_features, the features every car lists and, per VIN, the ones no other car lists (a car whose listing has no features is left out of both: its features are unknown, not missing, and no feature implies another); and lowest_price, lowest_miles and newest, the VIN that wins, or null on a tie or when no car has the figure. price_gap is the spread in dollars.

Prices are compared on one basis: price_with_fees (what the dealer's page shows) when every car has it, else the listed price for every car, so a car is never cheaper only because its store's fees are unknown. This is not an out-the-door price; quote_out_the_door gives that for one car.

Pass 2 to 4 different VINs. A VIN at any other dealer in CarEdge's marketplace is compared as well, with participating: false and dealer saying who sells it. A VIN not in the marketplace is listed in missing and left out, as long as two cars remain; otherwise the answer is not_found.

Fields: money is a decimal string in US dollars. dti_grade is the store's Dealer Transparency grade, A to F, or null when it has none. distance_miles is miles from the shopper's ZIP.

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": {
      "vins": "<vins>"
    },
    "name": "vehicle_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
vinsYes2 to 4 different 17-character VINs.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
freshnessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare it read-only, idempotent, non-destructive and closed-world; the description goes far beyond by disclosing the comparison payload (differs, shared_features, only_features, lowest_price, lowest_miles, newest, price_gap), tie/null semantics, and the price basis rule that prevents a car from looking cheaper just because its store's fees are unknown. It also documents cross-marketplace behavior (participating: false, dealer) and the missing/not_found fallback, which are exactly the edge cases an agent cannot infer.

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?

Content is dense and front-loaded, with the when-to-use clause first and return-shape detail after. Minor redundancy: the 'this is not an out-the-door price; quote_out_the_door gives that' point is made twice, and the field glossary at the end could be tightened, but every other sentence carries real information.

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

Completeness5/5

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

Despite an output schema existing, the description still explains the derived comparison fields and their edge-case semantics, plus units (decimal-string USD), dti_grade grading scale, and distance_miles origin. For a one-parameter but output-rich comparison tool, nothing an agent needs to call or interpret it is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter is already documented as '2 to 4 different 17-character VINs', so the baseline is met by structure alone. The description adds value by showing a literal example array and by explaining what happens for VINs outside the marketplace or not found, which is behavior the schema cannot express.

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?

Opens with a specific verb-plus-resource framing: comparing two to four already-seen cars to surface how they differ or which is the better buy, with a concrete VIN-array example. It explicitly distinguishes itself from inventory_search (finding cars) and quote_out_the_door (pricing one car), so an agent can select it without opening any 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?

States the exact trigger condition ('shopper is choosing between two to four cars they have already seen') and two explicit exclusions naming the correct sibling for each. It also names the input constraint (2 to 4 different VINs), which reinforces when the tool is applicable.

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