Skip to main content
Glama

Decode a VIN into year, make, model and trim

decode_vin
Read-onlyIdempotent

Use this when the shopper pastes or gives a VIN and you need to know what car it is (year, make, model, trim, engine), e.g. vin: "1GNSKRKD2PR339514". Do not use it for a car for sale that the shopper picked from a search (that is vehicle_get).

It decodes the VIN with NHTSA's free vPIC database into year, make, model, trim, body type, fuel type, drivetrain and engine. It suits a VIN pasted with nothing else, or a VIN with no year, make or model known.

When the VIN is a car on this dealer's own lot, the answer also carries in_dealer_stock, store_name and dealer_stock_note: it is a car for sale here, not the shopper's own, and vehicle_get has its listing.

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": {
      "vin": "<vin>"
    },
    "name": "decode_vin"
  }
}

Input Schema

NameRequiredDescriptionDefault
vinYes17-character VIN (letters and digits, excluding I, O, Q)

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
freshnessNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, but the description adds real context beyond them: the decode comes from NHTSA's free vPIC database (external dependency, explains openWorldHint), and the response conditionally gains in_dealer_stock, store_name and dealer_stock_note when the VIN matches dealer inventory. It does not cover failure behavior for an invalid or unrecognized VIN, which keeps it short of a 5.

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?

The routing rule is front-loaded in the first sentence and the enrichment caveat is separated into its own paragraph, which reads well. There is mild redundancy, since vehicle_get is named twice and the 'car for sale here, not the shopper's own' point is restated, but nothing is wasted enough to hurt usability.

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?

For a single-parameter lookup with an output schema, this covers everything the agent needs: the trigger, the exclusion and alternative, the upstream data source, and the conditional dealer-stock fields. Return-value detail is correctly left to the output schema rather than duplicated.

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?

Only one parameter and schema coverage is 100%, with the schema already specifying the 17-character format and excluded letters I, O, Q. The description adds a concrete example value, which is modest reinforcement rather than new meaning, so the baseline of 3 is right.

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 ('decode the VIN') and enumerates the decoded outputs (year, make, model, trim, engine, body type, fuel type, drivetrain). It explicitly names the sibling it is not (vehicle_get) so an agent can distinguish the two without inspecting either 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?

Gives an explicit when-to-use trigger ('shopper pastes or gives a VIN', or a VIN with no known year/make/model) and an explicit when-not with the alternative named ('Do not use it for a car for sale that the shopper picked from a search (that is vehicle_get)'). Both directions of routing are covered.

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