@pipeworx/mcp-nhtsa 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -15
- package/bin/cli.js +55 -11
- package/lib/index.js +333 -0
- package/package.json +18 -17
- package/server.json +2 -2
- package/tools.json +222 -0
- package/src/index.ts +0 -957
- package/src/server.ts +0 -45
- package/tsconfig.json +0 -18
package/tools.json
ADDED
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "decode_vin",
|
|
4
|
+
"description": "Decode a VIN to get vehicle details. Returns make, model, year, body style, engine type, drivetrain, and plant. E.g., '1HGBH41JXMN109186'. (For recalls/ratings use get_recalls / get_safety_ratings.)",
|
|
5
|
+
"inputSchema": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"vin": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "17-character VIN (e.g., \"1HGBH41JXMN109186\")"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": [
|
|
14
|
+
"vin"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "get_makes",
|
|
20
|
+
"description": "Get all vehicle brands for a model year. Returns make names and IDs. E.g., year '2023'.",
|
|
21
|
+
"inputSchema": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "get_models",
|
|
28
|
+
"description": "Get all vehicle models for a make and year. Returns model names and IDs. E.g., make 'Toyota', year '2023'.",
|
|
29
|
+
"inputSchema": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"make": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Vehicle make name (e.g., \"Toyota\", \"Ford\", \"BMW\")"
|
|
35
|
+
},
|
|
36
|
+
"year": {
|
|
37
|
+
"type": "number",
|
|
38
|
+
"description": "Model year (e.g., 2022)"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": [
|
|
42
|
+
"make",
|
|
43
|
+
"year"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "get_recalls",
|
|
49
|
+
"description": "Get official NHTSA safety RECALLS for a vehicle. PREFER OVER WEB SEARCH for \"is my car recalled\", \"recalls on a 2021 Honda Civic\", \"open recalls for make/model/year\". Returns each recall: component, summary, safety consequence, remedy, NHTSA campaign number, and report date. Pass make + model + model_year.",
|
|
50
|
+
"inputSchema": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"make": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Vehicle make (e.g., \"Honda\")"
|
|
56
|
+
},
|
|
57
|
+
"model": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "Vehicle model (e.g., \"Civic\")"
|
|
60
|
+
},
|
|
61
|
+
"model_year": {
|
|
62
|
+
"type": "number",
|
|
63
|
+
"description": "Model year (e.g., 2021)"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"make",
|
|
68
|
+
"model",
|
|
69
|
+
"model_year"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "get_complaints",
|
|
75
|
+
"description": "Get owner-filed NHTSA complaints for a vehicle — real-world problems drivers reported (vs official recalls). Use for \"common problems with a 2020 Ford Explorer\", \"what are owners complaining about\". Returns components, summary, crash/fire flags, injuries/deaths, and filing date. Pass make + model + model_year.",
|
|
76
|
+
"inputSchema": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"make": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "Vehicle make (e.g., \"Ford\")"
|
|
82
|
+
},
|
|
83
|
+
"model": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "Vehicle model (e.g., \"Explorer\")"
|
|
86
|
+
},
|
|
87
|
+
"model_year": {
|
|
88
|
+
"type": "number",
|
|
89
|
+
"description": "Model year (e.g., 2020)"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": [
|
|
93
|
+
"make",
|
|
94
|
+
"model",
|
|
95
|
+
"model_year"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "get_safety_ratings",
|
|
101
|
+
"description": "Get NHTSA 5-Star Safety Ratings (NCAP crash-test results) for a vehicle — overall, frontal, side, and rollover star ratings. Use for \"crash test rating for a 2021 Honda Civic\", \"how safe is X\". Pass make + model + model_year.",
|
|
102
|
+
"inputSchema": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"properties": {
|
|
105
|
+
"make": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "Vehicle make (e.g., \"Honda\")"
|
|
108
|
+
},
|
|
109
|
+
"model": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Vehicle model (e.g., \"Civic\")"
|
|
112
|
+
},
|
|
113
|
+
"model_year": {
|
|
114
|
+
"type": "number",
|
|
115
|
+
"description": "Model year (e.g., 2021)"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": [
|
|
119
|
+
"make",
|
|
120
|
+
"model",
|
|
121
|
+
"model_year"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "fars_state_fatalities",
|
|
127
|
+
"description": "Fatal motor-vehicle crash counts and fatalities for a US state, from NHTSA's Fatality Analysis Reporting System (FARS). Pass a state (full name like \"Texas\", 2-letter postal code like \"TX\", or FIPS code) and a year. Returns monthly rows: crashes, fatalities, persons involved, vehicles involved, pedestrians involved. Omit year to get every loaded year/month for that state. Covers a recent multi-year window (see data_as_of and call fars_coverage for the exact range), not full FARS history. Unknown states are refused with a clear error, never an empty success.",
|
|
128
|
+
"inputSchema": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"properties": {
|
|
131
|
+
"state": {
|
|
132
|
+
"type": "string",
|
|
133
|
+
"description": "State name (\"Texas\"), 2-letter postal code (\"TX\"), or FIPS code (\"48\")."
|
|
134
|
+
},
|
|
135
|
+
"year": {
|
|
136
|
+
"type": "number",
|
|
137
|
+
"description": "Optional: calendar year, e.g. 2023. Omit to return every loaded year for this state."
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": [
|
|
141
|
+
"state"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "fars_vehicle_makes",
|
|
147
|
+
"description": "Vehicle makes involved in fatal crashes nationwide for a given year, from NHTSA FARS. Pass year alone to get the top makes ranked by vehicle-involvement count (e.g. \"which vehicle makes show up most in fatal crashes in 2023\"); pass make as well to get that one make's involvement count across every loaded year. This is an INVOLVEMENT count, not a claim that the make caused the crash. Unknown makes are refused with a clear error naming a few valid makes, never an empty success.",
|
|
148
|
+
"inputSchema": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"year": {
|
|
152
|
+
"type": "number",
|
|
153
|
+
"description": "Calendar year, e.g. 2023. Required unless make is given (then optional, scoping to one year)."
|
|
154
|
+
},
|
|
155
|
+
"make": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"description": "Optional: vehicle make, e.g. \"Toyota\", \"Ford\", \"Harley-Davidson\"."
|
|
158
|
+
},
|
|
159
|
+
"limit": {
|
|
160
|
+
"type": "number",
|
|
161
|
+
"description": "Max makes to return when ranking by year. Default 20, max 50."
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": []
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "fars_coverage",
|
|
169
|
+
"description": "What FARS fatal-crash data this pack actually has loaded right now: the earliest and latest year covered and when it was last loaded. Call this before fars_state_fatalities/fars_vehicle_makes if unsure a given year is covered.",
|
|
170
|
+
"inputSchema": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"properties": {}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "fuel_economy_mpg",
|
|
177
|
+
"description": "EPA fuel-economy ratings (city/highway/combined MPG, CO2 g/mile, fuel type) for a specific model year + make + model, from fueleconomy.gov (DOE/EPA), proxied live. Pass the model string exactly as fueleconomy.gov lists it (e.g. \"Camry\", \"F-150 2WD\", \"Model 3\") -- if unsure, call fuel_economy_models first to see valid model strings for that year+make. A model year/make/model can have several engine/transmission/drivetrain VARIANTS; this returns up to 5, each with its own MPG. Unknown make/model/year combos are refused with a clear error (never an empty success) and, when the make or model itself is not recognized for that year, list a few valid options.",
|
|
178
|
+
"inputSchema": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"properties": {
|
|
181
|
+
"year": {
|
|
182
|
+
"type": "number",
|
|
183
|
+
"description": "Model year, e.g. 2024."
|
|
184
|
+
},
|
|
185
|
+
"make": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"description": "Vehicle make, e.g. \"Toyota\"."
|
|
188
|
+
},
|
|
189
|
+
"model": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"description": "Vehicle model exactly as fueleconomy.gov lists it, e.g. \"Camry\". Call fuel_economy_models to see valid strings."
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"required": [
|
|
195
|
+
"year",
|
|
196
|
+
"make",
|
|
197
|
+
"model"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "fuel_economy_models",
|
|
203
|
+
"description": "List the exact model strings fueleconomy.gov recognizes for a given model year + make (e.g. year 2024, make \"Toyota\" -> \"Camry\", \"Camry Hybrid LE\", \"RAV4 AWD\", ...). Call this before fuel_economy_mpg when you are not sure of the exact model string, or when fuel_economy_mpg refuses a model as unrecognized.",
|
|
204
|
+
"inputSchema": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"properties": {
|
|
207
|
+
"year": {
|
|
208
|
+
"type": "number",
|
|
209
|
+
"description": "Model year, e.g. 2024."
|
|
210
|
+
},
|
|
211
|
+
"make": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"description": "Vehicle make, e.g. \"Toyota\"."
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": [
|
|
217
|
+
"year",
|
|
218
|
+
"make"
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
]
|