vpic_decode_vin_batch

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_batch for the schema, then POST the same URL with its arguments for the data.

Flat vPIC decode of up to 50 VINs.

Tool description as the model sees it

Decode up to 50 VINs in one call against NHTSA vPIC and return one flat record per VIN (same fields as vpic_decode_vin_values), with counts of how many decoded cleanly. Each entry is a VIN string or an object {vin, model_year}. More than 50 entries are refused, never silently cut.

Parameters

NameTypeRequiredDescription
vinsarrayyesUp to 50 VINs. Strings, or objects {vin, model_year}.
itemsstringno

Example call

Arguments

{
  "vins": [
    "1HGBH41JXMN109186",
    "5UXWX7C5*BA"
  ]
}

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_batch","arguments":{"vins":["1HGBH41JXMN109186","5UXWX7C5*BA"]}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('vpic_decode_vin_batch', {
  "vins": [
    "1HGBH41JXMN109186",
    "5UXWX7C5*BA"
  ]
});

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
submittednumberVINs sent
decoded_cleanlynumberRows with code 0
not_cleannumberRows with any other code
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"
    },
    "submitted": {
      "type": "number",
      "description": "VINs sent"
    },
    "decoded_cleanly": {
      "type": "number",
      "description": "Rows with code 0"
    },
    "not_clean": {
      "type": "number",
      "description": "Rows with any other code"
    }
  },
  "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