Skip to main content
Glama

Car Image API catalog

Resolve free text to image parameters

resolve_vehicle
Read-onlyIdempotent

Free. The first call for any picture of a car, including one you chose yourself: turn a request such as "red 2018 Mazda MX-5 Miata side view" into the catalog vehicle and exact get_car_image parameters (vehicle_id, make, model, year, view, color), plus alternative candidates and a confidence of high, medium or low. A make and model are read by the rules the image tools read them with, so this names the vehicle they would render. Pass params.vehicle_id as vehicle to get_car_image, create_car_image_urls or create_3d_model. Ask the human to choose when confidence is low or several candidates fit, and tell them when params.year is not the year they asked for (extracted.year).

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": {
      "query": "<query>"
    },
    "name": "resolve_vehicle"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesWhat the human asked for, in words: year, make and model, plus the view and color when they named them, e.g. "red 2024 porsche 911 side view".
marketNoMarket of sale, an ISO 3166-1 alpha-2 country code such as US, GB, DE, AU or JP. Send it only when the human named a market or the vehicles are for one: some model years look different in different markets. Today every market gets the default appearance, and the answer's appearance says which was served. Omit it otherwise: the account's default market applies, if it set one. Never guess it from where the human is.

Output Schema

NameRequiredDescriptionDefault
cliYes
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / market
      Added value: +{
      +  "description": "Market of sale, an ISO 3166-1 alpha-2 country code such as US, GB, DE, AU or JP. Send it only when the human named a market or the vehicles are for one: some model years look different in different markets. Today every market gets the default appearance, and the answer's appearance says which was served. Omit it otherwise: the account's default market applies, if it set one. Never guess it from where the human is.",
      +  "pattern": "^[A-Za-z]{2}$",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavior: the call is free, it returns alternative candidates with a high/medium/low confidence, and it specifies what the agent should do on low confidence or a year mismatch. It does not discuss failure modes for unparseable queries.

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?

It is a single dense paragraph that front-loads the cost and routing cue ("Free. The first call for any picture of a car") before the mechanics. Every sentence carries information, though the list of output fields and downstream tools is packed tightly enough to be slightly hard to scan.

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?

With an output schema present, return-value explanation is optional, yet the description supplies it along with the confidence taxonomy and the human-in-the-loop rule, which is what an agent needs to act. The one gap is that nothing says what to do if the query cannot be resolved at all.

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%, so the baseline is 3; the description goes beyond it by explaining the downstream contract (pass params.vehicle_id as vehicle to get_car_image, create_car_image_urls, or create_3d_model) and by tying params.year to extracted.year so the agent understands the returned field's meaning, not just its format.

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?

The description names a specific action (turn a free-text request into a catalog vehicle plus exact get_car_image parameters) and enumerates the outputs (vehicle_id, make, model, year, view, color, alternatives, confidence). It is clear what the tool does, but it never explicitly separates itself from the sibling search_vehicles, which an agent could plausibly pick for the same vehicle-lookup intent.

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 the routing rule up front ("The first call for any picture of a car, including one you chose yourself"), names the downstream tools that consume params.vehicle_id, and gives explicit escalation conditions: ask the human when confidence is low or several candidates fit, and flag when params.year differs from extracted.year.

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