get_models
Pack: nhtsa · Endpoint: https://gateway.pipeworx.io/nhtsa/mcp
Get all vehicle models for a make and year. Returns model names and IDs. E.g., make ‘Toyota’, year ‘2023’.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
make | string | yes | Vehicle make name (e.g., “Toyota”, “Ford”, “BMW”) |
year | number | yes | Model year (e.g., 2022) |
Example call
Arguments
{
"make": "Toyota",
"year": 2023
}
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":"get_models","arguments":{"make":"Toyota","year":2023}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_models', {
"make": "Toyota",
"year": 2023
});
More examples
{
"make": "Ford",
"year": 2022
}
Response shape
Always returns: make, year, count, models
| Field | Type | Description |
|---|---|---|
make | string | Vehicle make name |
year | number | Model year |
count | number | Total count of models |
models | array | List of vehicle models |
Full JSON Schema
{
"type": "object",
"properties": {
"make": {
"type": "string",
"description": "Vehicle make name"
},
"year": {
"type": "number",
"description": "Model year"
},
"count": {
"type": "number",
"description": "Total count of models"
},
"models": {
"type": "array",
"description": "List of vehicle models",
"items": {
"type": "object",
"properties": {
"make_id": {
"type": [
"number",
"null"
],
"description": "Make ID"
},
"make_name": {
"type": [
"string",
"null"
],
"description": "Make name"
},
"model_id": {
"type": [
"number",
"null"
],
"description": "Model ID"
},
"model_name": {
"type": [
"string",
"null"
],
"description": "Model name"
}
},
"required": [
"make_id",
"make_name",
"model_id",
"model_name"
]
}
}
},
"required": [
"make",
"year",
"count",
"models"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"nhtsa": {
"url": "https://gateway.pipeworx.io/nhtsa/mcp"
}
}
}
See Getting Started for client-specific install steps.