vpic_decode_vin_values

Pack: nhtsa · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/vpic_decode_vin_values for the schema, then POST the same URL with its arguments for the data.

Flat vPIC decode of one VIN with error codes.

Tool description as the model sees it

Decode one VIN against the NHTSA Vehicle Product Information Catalog (vPIC) and return a flat record: make, model, model year, trim, vehicle type, body class, manufacturer, plant country, plus every populated attribute and the decode error codes. decoded_cleanly is true only when vPIC reports code 0; other codes are warnings or failures and are returned, not hidden. Optional model_year helps pre-1980 or ambiguous 10th-position VINs. E.g. vin ‘1HGBH41JXMN109186’. For many VINs use vpic_decode_vin_batch.

Parameters

NameTypeRequiredDescription
vinstringyesFull or partial VIN (e.g. “1HGBH41JXMN109186”); ”*” may stand for unknown characters.
model_yearnumbernoOptional model year to decode against (e.g. 2021).

Example call

Arguments

{
  "vin": "1HGBH41JXMN109186"
}

curl

curl -X POST https://gateway.pipeworx.io/nhtsa/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"vpic_decode_vin_values","arguments":{"vin":"1HGBH41JXMN109186"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('vpic_decode_vin_values', {
  "vin": "1HGBH41JXMN109186"
});

More examples

{
  "vin": "1HGBH41JXMN109186",
  "model_year": 2021
}

Response shape

Always returns: found, count, returned, results, source

FieldTypeDescription
foundbooleanFalse when vPIC holds no matching record (see reason and message); true when results is non-empty
reasonstringPresent when found is false: no_match
messagestringPresent when found is false: what was looked up and what to try next
countnumbervPIC’s own total for the query (may exceed returned)
returnednumberRows in results
truncatedbooleanTrue when limit cut results short of the rows vPIC sent
search_criteriastring | nullHow vPIC echoed the query
upstream_messagestring | nullvPIC’s own status message
resultsarrayResult rows
sourcestringPublisher and dataset
licensestringLicence of the data
model_year_hintnumber | nullmodel_year passed in
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean",
      "description": "False when vPIC holds no matching record (see reason and message); true when results is non-empty"
    },
    "reason": {
      "type": "string",
      "description": "Present when found is false: no_match"
    },
    "message": {
      "type": "string",
      "description": "Present when found is false: what was looked up and what to try next"
    },
    "count": {
      "type": "number",
      "description": "vPIC's own total for the query (may exceed returned)"
    },
    "returned": {
      "type": "number",
      "description": "Rows in results"
    },
    "truncated": {
      "type": "boolean",
      "description": "True when limit cut results short of the rows vPIC sent"
    },
    "search_criteria": {
      "type": [
        "string",
        "null"
      ],
      "description": "How vPIC echoed the query"
    },
    "upstream_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "vPIC's own status message"
    },
    "results": {
      "type": "array",
      "description": "Result rows",
      "items": {
        "type": "object",
        "properties": {
          "vin": {
            "type": [
              "string",
              "null"
            ],
            "description": "VIN as decoded"
          },
          "make": {
            "type": [
              "string",
              "null"
            ],
            "description": "Make"
          },
          "model": {
            "type": [
              "string",
              "null"
            ],
            "description": "Model"
          },
          "model_year": {
            "type": [
              "string",
              "null"
            ],
            "description": "Model year"
          },
          "trim": {
            "type": [
              "string",
              "null"
            ],
            "description": "Trim"
          },
          "vehicle_type": {
            "type": [
              "string",
              "null"
            ],
            "description": "Vehicle type"
          },
          "body_class": {
            "type": [
              "string",
              "null"
            ],
            "description": "Body class"
          },
          "manufacturer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Manufacturer"
          },
          "plant_country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Plant country"
          },
          "error_codes": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "vPIC decode error codes; 0 is a clean decode"
          },
          "decoded_cleanly": {
            "type": "boolean",
            "description": "True only when vPIC reports code 0"
          },
          "error_text": {
            "type": [
              "string",
              "null"
            ],
            "description": "vPIC error text"
          },
          "attributes": {
            "type": "object",
            "description": "Every populated vPIC attribute, by vPIC field name"
          }
        }
      }
    },
    "source": {
      "type": "string",
      "description": "Publisher and dataset"
    },
    "license": {
      "type": "string",
      "description": "Licence of the data"
    },
    "model_year_hint": {
      "type": [
        "number",
        "null"
      ],
      "description": "model_year passed in"
    }
  },
  "required": [
    "found",
    "count",
    "returned",
    "results",
    "source"
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the nhtsa pack
{
  "mcpServers": {
    "nhtsa": {
      "url": "https://gateway.pipeworx.io/nhtsa/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build December 2, 2026