Skip to main content
Glama
JOY Automart MCP Server

JOY Automart MCP Server

Official

Compare shortlisted car listings

compare_vehicles
Read-onlyIdempotent

Compare two to four selected vehicle listings side by side on price and key details to evaluate a shortlist, while keeping unknown-price candidates visible and flagging incomplete comparisons.

Instructions

Compare a selected car shortlist; use search_vehicles to discover candidates or get_vehicle for one car.

  • vehicle_ids chooses the adverts to include, in buyer-selected order; it does not rerun search filters. Resolve ID/slug aliases to distinct listing_id values. Repeating an advert must not create extra price evidence or imply another vehicle.

  • Keep unknown-price candidates visible when the buyer still wants to consider them. A cheapest result ranks only distinct, known positive prices; inspect price_comparison_complete before describing it as cheapest across the whole shortlist. Asking prices are not valuations.

  • Anonymous fresh lookups can partially fail. Inspect not_found/unavailable and retry temporary failures before excluding a candidate. Use prepare_vehicle_handoff after choosing; comparison reserves nothing.

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": {
      "vehicle_ids": "<vehicle_ids>"
    },
    "name": "compare_vehicles"
  }
}

Input Schema

NameRequiredDescriptionDefault
vehicle_idsYesTwo to four listing_id values from search_vehicles or public listing slugs, not VINs or URLs. Choose distinct listings; repeated IDs or an ID and its slug do not provide separate price evidence.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.2
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "error": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "error": {
      +          "minLength": 1,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ],
      +      "type": "object"
      +    },
      +    "inspection": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "battery_health_percent": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "final_grade": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "identity_match": {
      +          "type": [
      +            "string",
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "overall_score": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "qc_approved_at": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "repair_estimate_bdt": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "final_grade",
      +        "overall_score",
      +        "repair_estimate_bdt",
      +        "battery_health_percent",
      +        "identity_match",
      +        "qc_approved_at"
      +      ],
      +      "type": "object"
      +    },
      +    "vehicle_detail": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "auction_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "body_type": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "condition": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "currency": {
      +          "const": "BDT",
      +          "type": "string"
      +        },
      +        "description": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "fuel_type": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "hub": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "images": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "maxItems": 8,
      +          "type": "array"
      +        },
      +        "inspection_status": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "listing_id": {
      +          "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,119}$",
      +          "type": "string"
      +        },
      +        "make": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "mileage_km": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "model": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "price_bdt": {
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "status": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "transmission": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "trim": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "url": {
      +          "type": "string"
      +        },
      +        "verified": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "verified_inspection": {
      +          "$ref": "#/$defs/inspection"
      +        },
      +        "year": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "listing_id",
      +        "make",
      +        "model",
      +        "trim",
      +        "condition",
      +        "fuel_type",
      +        "transmission",
      +        "body_type",
      +        "hub",
      +        "inspection_status",
      +        "status",
      +        "year",
      +        "price_bdt",
      +        "mileage_km",
      +        "verified",
      +        "description",
      +        "auction_id",
      +        "images",
      +        "url",
      +        "currency"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "oneOf": [
      +    {
      +      "additionalProperties": false,
      +      "properties": {
      +        "cheapest_listing_id": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "currency": {
      +          "const": "BDT",
      +          "type": "string"
      +        },
      +        "found_listing_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "known_price_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "known_price_listing_ids": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "not_found": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "not_found_listing_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "price_comparison_complete": {
      +          "type": "boolean"
      +        },
      +        "price_comparison_notice": {
      +          "type": "string"
      +        },
      +        "requested_listing_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "unavailable": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "http_status": {
      +                "type": "integer"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "vehicle_id": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "vehicle_id",
      +              "http_status",
      +              "reason"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "unavailable_listing_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "unknown_price_count": {
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "unknown_price_listing_ids": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "vehicles": {
      +          "items": {
      +            "$ref": "#/$defs/vehicle_detail"
      +          },
      +          "maxItems": 4,
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "currency",
      +        "vehicles",
      +        "not_found",
      +        "unavailable",
      +        "requested_listing_count",
      +        "found_listing_count",
      +        "not_found_listing_count",
      +        "unavailable_listing_count",
      +        "known_price_count",
      +        "unknown_price_count",
      +        "known_price_listing_ids",
      +        "unknown_price_listing_ids",
      +        "price_comparison_complete",
      +        "cheapest_listing_id",
      +        "price_comparison_notice"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "$ref": "#/$defs/error"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv1.0.1
    • addedInput schema / properties / vehicle_ids / description
      Added value: +"Two to four listing_id values from search_vehicles or public listing slugs, not VINs or URLs. Choose distinct listings; repeated IDs or an ID and its slug do not provide separate price evidence."
  3. First observedv1.0.0

TDQS

A5/5.0
Behavior5/5

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

Despite annotations already covering the safe-read/idempotent profile, the description adds non-obvious behavior: anonymous fresh lookups can partially fail, not_found/unavailable should be inspected and transient failures retried before excluding, and comparison reserves nothing. It also warns that asking prices are not valuations and that price_comparison_complete must be checked before claiming 'cheapest' — exactly the kind of caveat annotations cannot express.

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

Conciseness5/5

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

Front-loaded one-line purpose followed by three tight bullets, each addressing a distinct failure mode (dedupe/ordering, unknown prices, partial failures). No sentence restates the schema or the annotations, and nothing reads as padding.

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?

Output schema exists, so return values needn't be enumerated, and the description still surfaces the two output fields an agent must reason about (price_comparison_complete, not_found/unavailable). For a single-parameter, read-only comparison tool, nothing needed to call it correctly is missing.

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

Parameters5/5

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

Schema coverage is already 100%, yet the description still adds meaning: vehicle_ids is in buyer-selected order, aliases must be resolved to distinct listing_id values, and repeats do not create extra price evidence. That ordering and deduplication semantics are not conveyed by the schema alone.

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?

States a specific verb and resource ("Compare a selected car shortlist") and immediately distinguishes itself from two siblings: search_vehicles for discovery and get_vehicle for a single car. An agent can route correctly 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?

Explicitly covers when to use (a buyer-selected shortlist), when not (it "does not rerun search filters"), and what to do next ("Use prepare_vehicle_handoff after choosing; comparison reserves nothing"). It also names the alternative tools by name, so no inference about sibling selection is required.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.