Skip to main content
Glama

YardStock NZ Vehicle Listings

search_stock

Search live used cars on ingested NZ dealer yards, with the same filters, ranking and notes as the YardStock search page. Exact matches only. Returns total (every exact match) and up to limit of them. Not Trade Me.

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": "search_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
cityNoA city, suburb or region, matched exactly: Wellington is not Mount Wellington.
fuelNo
makeNoAny spelling: VW is Volkswagen, Great Wall is GWM, Range Rover is Land Rover.
sortNoDefault: deal-desc when a make or model is named, else price-asc.
driveNoAWD counts as 4wd.
limitNoDefault 20. Anonymous callers get at most 20.
modelNoA model's name finds that model and every grade of it (Corolla finds Fielders and Axios, not the Corolla Cross). Anything longer narrows as words in the model (Corolla GX).
cc_maxNo
cc_minNoEngine size in cc.
colourNo
km_maxNo
km_minNo
offsetNo
towbarNoOnly cars whose listing mentions a towbar.
year_maxNo
year_minNo
seats_minNo
transmissionNo
price_max_nzdNo
price_min_nzdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changed
    • addedInput schema / properties / body
      Added value: +{
      +  "enum": [
      +    "convertible",
      +    "coupe",
      +    "hatch",
      +    "people mover",
      +    "sedan",
      +    "suv",
      +    "ute",
      +    "van",
      +    "wagon"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / cc_max
      Added value: +{
      +  "type": "integer"
      +}
    • addedInput schema / properties / cc_min
      Added value: +{
      +  "description": "Engine size in cc.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / city / description
      Added value: +"A city, suburb or region, matched exactly: Wellington is not Mount Wellington."
    • addedInput schema / properties / colour
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / drive
      Added value: +{
      +  "description": "AWD counts as 4wd.",
      +  "enum": [
      +    "4wd",
      +    "2wd"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / fuel / enum
      Added value: +[
      +  "petrol",
      +  "diesel",
      +  "hybrid",
      +  "electric",
      +  "phev"
      +]
    • addedInput schema / properties / km_max
      Added value: +{
      +  "type": "integer"
      +}
    • addedInput schema / properties / km_min
      Added value: +{
      +  "type": "integer"
      +}
    • addedInput schema / properties / limit / description
      Added value: +"Default 20. Anonymous callers get at most 20."
    • addedInput schema / properties / make / description
      Added value: +"Any spelling: VW is Volkswagen, Great Wall is GWM, Range Rover is Land Rover."
    • addedInput schema / properties / model / description
      Added value: +"A model's name finds that model and every grade of it (Corolla finds Fielders and Axios, not the Corolla Cross). Anything longer narrows as words in the model (Corolla GX)."
    • addedInput schema / properties / offset
      Added value: +{
      +  "maximum": 5000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / seats_min
      Added value: +{
      +  "type": "integer"
      +}
    • addedInput schema / properties / sort
      Added value: +{
      +  "description": "Default: deal-desc when a make or model is named, else price-asc.",
      +  "enum": [
      +    "deal-desc",
      +    "drop-desc",
      +    "km-asc",
      +    "listed-desc",
      +    "price-asc",
      +    "price-desc",
      +    "year-desc"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / towbar
      Added value: +{
      +  "description": "Only cars whose listing mentions a towbar.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / transmission
      Added value: +{
      +  "enum": [
      +    "automatic",
      +    "manual"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations the description carries the full burden, and it does disclose useful traits: live data, exact-match strictness, the return shape (`total` plus up to `limit` rows), and that it is not Trade Me. It omits whether filters are ANDed, freshness/ingestion lag, and auth or rate-limit behavior for non-anonymous callers beyond the schema's limit note.

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?

Four short sentences, front-loaded with the resource and scope, then matching strictness, then return shape. Every sentence carries information; 'Not Trade Me' is terse but earns its place as a source discriminator.

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

Completeness3/5

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

A 21-parameter tool with no annotations and no output schema gets only partial coverage: the return contract is stated (total plus up to limit), but filter combination logic, pagination via offset, and the anonymous 20-cap interaction are not explained in the description. Adequate, but thin for a tool of this complexity.

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

Parameters2/5

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

Schema description coverage is only 38%, so the description needs to explain parameter meaning, and it adds essentially nothing beyond telling the agent the filters mirror the YardStock page and how `limit` is returned. Thirteen parameters (body, fuel, colour, km/year/price bounds, offset, seats_min, transmission, cc_max) get no clarifying semantics from either source.

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?

Concrete verb and resource ('Search live used cars on ingested NZ dealer yards'), plus scoping ('live', 'NZ dealer yards', 'Not Trade Me') that tells the agent this is an inventory search over ingested data, not an external marketplace. It does not name or contrast the actual siblings (search_text, coverage, get_listing), so the boundary with a generic text search is left to inference.

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?

'Exact matches only' and 'same filters, ranking and notes as the YardStock search page' imply structured/filtered lookup usage rather than free-text search, which hints at when to prefer this tool. However there is no explicit when-not guidance or named alternative for free-text queries or for fetching a single listing, so routing among siblings stays implicit.

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