Skip to main content
Glama

Search cars for sale near a ZIP

inventory_search
Read-onlyIdempotent

Use this when the shopper wants to find or browse new or used cars for sale near them, at every dealership in CarEdge's marketplace listings: by make, model, year, price, body style, color, miles or stock number, e.g. make: "Toyota", model: "RAV4", price_max: "35000.00". Do not use it for one car the shopper already picked (that is vehicle_get), for a price with tax and fees (that is quote_out_the_door), for what the shopper's own car is worth, or for general car advice. hero_photo_url is a link to the car's main photo that opens in any browser, so it works as a plain link where no car card or image is shown. It is null when the car has no photo.

Without near it searches the stores this connector covers. With near (the shopper's ZIP) and no rooftop_slug, it searches every dealer in CarEdge's marketplace within radius_miles (50 unless set, at most 250), nearest first unless sort is set. Without condition the search covers new and used together (used includes certified pre-owned). price_max is a budget, body_type a body style and stock_no a dealer's stock number; query is a few words of free text such as "red" or "electric", and a word no car matches is dropped, from the end first. A list filter such as drivetrain or exterior_color matches a car holding every word of any one value. Filters combine.

make, model, condition and each list filter take several values, any one matching. body_type, fuel, powertrain, the colors, features, bed_length, dti_grade and sort take only the values their schema lists; any other value answers invalid_params, naming the field and the values it takes. The search leaves out what caredge.com's search treats as listing mistakes: a new car with a sticker under $5,000 or more than 10,000 known miles, and a used car priced under $500 or older than 1990.

near takes the shopper's ZIP and keeps only stores within radius_miles. state keeps only stores in one state; with near too, a store must be in the state and within the radius. When these stores span the whole country, a search with none of query, make, near or state answers too_broad.

A page holds the dealer's chosen number of cars, 10 unless they changed it, and limit overrides that for one call (at most 20). next_cursor, sent back as cursor with the same filters, returns the next page. total is how many cars matched, not how many are on this page; makes splits it by make into new and used.

price_with_fees is the price with the store's own fees in, before any discount and tax: the figure the dealer's own car page shows. participating: true means CarEdge quotes the dealer's own fees and can send it a request the shopper asks for. source says where the price came from.

A car with a rooftop_slug of the form dealer-<id> has participating: false and no price_with_fees: CarEdge has no pricing setup for its dealer and cannot send it a request, and quote_out_the_door prices it from its listed price and the fees that dealer or its state usually charges. dealer says who sells the car: its name, dealer_id, mc_dealer_id, city, state and ZIP, distance_miles from the shopper's ZIP, listed_price (its price), listing_url (the dealer's page for the car, if known), caredge_url (the car's page on caredge.com) and caredge_certified: true for a CarEdge Certified dealer.

freshness says how old each store's data is; stale means older than CarEdge expects. in_transit: true means the car is on its way to the store and not on the lot yet, so it cannot be seen or driven today. inventory_unavailable means CarEdge cannot see the lot at all right now; it is worth one retry, and it never means the car is gone.

Fields: money is a decimal string in US dollars. listed_as_of is when the store's listing was last read. coverage, when present, is every_dealer (every dealer in CarEdge's marketplace within the radius) or partner_stores (only participating: true dealers).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "inventory_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
fuelNoFuel types. Gasoline covers every gas grade and flex fuel.
makeNoMakes, exactly, e.g. ['Chevrolet', 'Ford']. Any one matches.
nearNo
sortNorelevance; price_asc or price_desc; msrp_asc or msrp_desc (sticker price on new cars, asking price on used); year_desc or year_asc (model year); mileage_asc or mileage_desc; newest (newest model year first, as year_desc); days_on_market_asc or days_on_market_desc (days listed for sale). A car with no mileage or no days figure sorts last.relevance
trimNoTrim words, e.g. ['Big Horn'] or ['LT', 'RS'].
limitNoCars per page, 1 to 20; a larger number is read as 20. Use `next_cursor` for more.
modelNoModel names, e.g. ['Wrangler'] or ['F-150', 'Silverado 1500']. A name also finds the index's longer names for it ('Wrangler' finds 'Wrangler 4-Door').
queryNoA few words, e.g. 'red' or 'electric'.
stateNoA US state, as its two-letter code or its name, e.g. 'TX' or 'Texas'. Keeps only stores in that state. With `near`, a store must be in the state and within the radius.
cursorNo`next_cursor` from the last page.
engineNoEngine words, e.g. ['V8'] or ['2.0L'].
storesNoStore slugs from `stores_list` or a car's `rooftop_slug`. Any one matches.
featuresNoFeatures the car must have, all of them: heated-seats (Heated Seats), cooled-seats (Cooled / Ventilated Seats), carplay-android-auto (Apple CarPlay / Android Auto), leather-seats (Leather Seats), sunroof (Sunroof / Moonroof), adaptive-cruise (Adaptive Cruise Control), blind-spot (Blind Spot Monitor), remote-start (Remote Start), third-row (Third Row Seats), navigation (Navigation), camera (Backup / 360 Camera), lane-keep (Lane Keep Assist), wireless-charging (Wireless Charging), towing (Towing Package), head-up-display (Head-Up Display), premium-audio (Premium Audio).
stock_noNoThe dealer's stock number, exactly, e.g. 'DT14462'. Any case.
year_maxNoNewest model year to show.
year_minNoOldest model year to show.
body_typeNoBody styles. Truck means a pickup.
conditionNonew, used or certified (certified pre-owned); several are allowed. Leave it out for new and used together. `used` includes certified.
dti_gradeNoThe selling store's Dealer Transparency Index grade, A (best) to F, from how openly it prices. Any one listed grade matches.
miles_maxNoMost miles, e.g. 30000.
miles_minNoFewest miles. A car with no mileage on file never matches a bound.
one_ownerNotrue keeps only cars the history report shows as one owner.
price_maxNoDollars, e.g. '45000.00'.
price_minNoDollars, e.g. '25000.00'.
bed_lengthNoPickup bed lengths.
drivetrainNoe.g. ['AWD', '4WD'], 'FWD', 'RWD'.
in_transitNotrue keeps only cars on their way to the store; false only cars on the lot. Leave it out for both.
powertrainNoGas (combustion only), EV (battery, extended-range or fuel-cell electric), Hybrid (full or mild) or PHEV (plug-in hybrid).
clean_titleNotrue keeps only cars the history report shows with a clean title.
body_subtypeNoA pickup's cab: Crew (crew cab, CrewMax, SuperCrew), Extended (extended, double, quad, King or SuperCab), Regular (regular or standard cab) or Extended Crew. A cargo van is `body_type` Van, not a cab.
rooftop_slugNoOne store, from `stores_list`.
transmissionNoe.g. ['automatic'], ['manual'], ['CVT'].
exclude_colorsNoBase paint colours to leave out.
exterior_colorNoBase paint colours.
interior_colorNoBase interior colours.
days_on_market_maxNoMost days the car has been listed for sale.
days_on_market_minNoFewest days the car has been listed for sale.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
freshnessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses defaults (radius 50, page 10, limit max 20), error behaviors (`invalid_params`, `too_broad`, `inventory_unavailable` with retry guidance), listing-mistake exclusions, and the meaning of `participating`, `price_with_fees`, `stale`, and `in_transit`. This is unusually rich behavioral context the annotations cannot carry.

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?

It is front-loaded with the use case and well-organized by concern, which is good. But the `near`/`radius_miles` scoping is explained twice (once in the second paragraph, again as '`near` takes the shopper's ZIP and keeps only stores within `radius_miles`'), and a few passages read as verbose for an already schema-documented tool.

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 37 parameters and an output schema, the description covers pagination, return-field semantics (freshness, participating, coverage, total/makes), and error handling. For a broad marketplace search, nothing an agent needs to invoke it correctly 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 97% so the baseline is 3, but the description adds real meaning beyond it: `query` drops non-matching words from the end first, list filters OR across values but AND across fields, `price_max` as a budget, and `condition` defaulting to new-and-used together. It goes past restating the schema.

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?

The opening sentence names a specific verb and resource ('find or browse new or used cars for sale') plus the scope ('every dealership in CarEdge's marketplace listings') and lists the filterable dimensions. It explicitly distinguishes itself from `vehicle_get` and `quote_out_the_door`, so an agent can route correctly 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 Guidelines5/5

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

It states exactly when to use it and enumerates when NOT to: one car already picked (`vehicle_get`), a price with tax and fees (`quote_out_the_door`), trade-in value, or general advice. Alternatives are named directly with the selecting condition.

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