Skip to main content
Glama

datasets_vehicle_listings_facets

Read-only

Returns terms aggregation counts for the vehicle listings dataset, honoring the same filters as search. Use alongside the related search tool to inspect filter counts under the same query filters.

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": {
      "facet": "<facet>"
    },
    "name": "datasets_vehicle_listings_facets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoOptional full-text query over make, model and trim, max 256 characters.
vinNoOptional exact VIN filter. VIN is present on a best-effort basis and not guaranteed on every listing.
makeNoOptional exact make filter (e.g. Honda, Toyota), max 128 characters.
pageNoResult page number, 1-based, default 1; page times page_size must not exceed 10000.
sortNoOptional sort order. Allowed values: relevance, recently_updated, newly_listed, price_asc, price_desc, mileage_asc, mileage_desc, year_desc, year_asc. Defaults to relevance with q, otherwise recently_updated.
trimNoOptional exact trim filter, max 128 characters.
facetYesRequired facet to aggregate. Allowed values: source, make, model, trim, body_style, transmission, drive_type, fuel_type, seller_type, state, run_id.
modelNoOptional exact model filter (e.g. Civic), max 128 characters.
stateNoOptional exact US state abbreviation filter (e.g. CA), max 8 characters.
run_idNoOptional exact crawl run-id filter, max 128 characters.
sourceNoOptional exact source marketplace filter. Allowed values: carmax, autotrader, carsdotcom.
max_yearNoOptional maximum model year, e.g. 2024.
min_yearNoOptional minimum model year, e.g. 2018.
fuel_typeNoOptional exact fuel type filter (e.g. Gas, Hybrid, Electric), max 128 characters.
max_priceNoOptional maximum price in US dollars, 0 or greater.
min_priceNoOptional minimum price in US dollars, 0 or greater.
page_sizeNoPage size, default 20, max 100; page times page_size must not exceed 10000.
body_styleNoOptional exact body style filter (e.g. Sedan, SUV), max 128 characters.
drive_typeNoOptional exact drivetrain filter (e.g. Front Wheel Drive), max 128 characters.
max_mileageNoOptional maximum odometer mileage, 0 or greater.
seller_typeNoOptional exact seller type filter. Allowed values: retailer, dealer, private.
transmissionNoOptional exact transmission filter, max 128 characters.
is_price_reducedNoOptional filter for listings currently marked down from a previous price.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds that counts honor the same filters as search, but says nothing about why idempotentHint=false is set (counts shifting between calls), whether aggregation ignores page/page_size, or any cost/latency characteristics of a 23-filter aggregation.

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?

Two sentences, no filler, with the output type ('terms aggregation counts') front-loaded before the usage hint. Every clause carries information.

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?

The schema and output schema are both fully specified, and annotations cover safety, so the description only needs to orient the agent — which it does. The remaining gap is the interaction between pagination/sort parameters and the aggregation result, which an agent must currently infer.

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 all 23 parameters are already documented and the baseline is 3. The description adds one useful signal — that filter semantics mirror the search tool — but does not clarify the unusual presence of page, page_size, and sort on an aggregation endpoint, nor that only one facet value is accepted per call.

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?

States a specific verb and resource: 'Returns terms aggregation counts for the vehicle listings dataset.' The phrase 'honoring the same filters as search' implicitly separates it from the search sibling, which returns listings rather than counts, so an agent can distinguish the two without opening a schema.

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

Usage Guidelines4/5

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

Gives clear context: 'Use alongside the related search tool to inspect filter counts under the same query filters,' which tells the agent this is a companion/refinement call rather than a primary retrieval call. It stops short of naming the sibling explicitly and gives no when-not-to-use guidance or note about how many facets can be requested per call.

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.