Skip to main content
Glama

nhtsa-vehicle-safety-mcp-server

Nhtsa Search Investigations

nhtsa_search_investigations
Read-only

Search NHTSA defect investigations from the ODI flat file — covering Preliminary Evaluations (PE), Engineering Analyses (EA), Defect Petitions (DP), Recall Queries (RQ), Audit Queries (AQ), and additional ODI types. make, model, and component are structured filters against the investigation record's vehicle associations. All filters are ANDed. Use nhtsaId to fetch one investigation by its exact ID — including the investigationId nhtsa_search_recalls returns for a campaign. Investigations may link to a resulting recall campaign via recallCampaign.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
makeNoStructured filter — matches against the investigation's associated vehicle makes (e.g., "TOYOTA"). ANDed with other filters.
limitNoMax investigations to return. Defaults to 20; max 25. The cap is lower than the other paginated tools because a single investigation summary can run several thousand characters and is rendered in full.
modelNoStructured filter — matches against the investigation's associated vehicle models. ANDed with other filters.
queryNoFree-text search across investigation ID, subject, and summary.
offsetNoPagination offset into the matching investigations. Defaults to 0.
statusNoFilter by status: "O" (Open) or "C" (Closed). Omit to include both.
nhtsaIdNoExact NHTSA investigation ID (e.g. "EA23003"), case-insensitive. Fetches that one record — mutually exclusive with every other filter.
componentNoStructured filter — matches against the investigation's affected components (e.g., "STEERING"). ANDed with other filters.
investigationTypeNoFilter by ODI investigation type code (the leading letters of the NHTSA ID). Named types: "PE" (Preliminary Evaluation), "EA" (Engineering Analysis), "DP" (Defect Petition), "RQ" (Recall Query), "AQ" (Audit Query). Additional valid codes present in the dataset: "SQ", "EQ", "RP", "ID", "TA", "C". Pass any code exactly as it appears in the investigation ID prefix.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
limitNoPagination limit used for this page
noticeNoGuidance when no investigations match the filters, or when the requested page overshoots the result set.
offsetNoPagination offset used for this page
returnedNoNumber of investigations in this page
totalCountNoTotal matching investigations
effectiveQueryNoApplied filters as a readable string, e.g. make="Ford" status="O".
investigationsNoMatching investigations

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "totalCount",
      +      "returned",
      +      "offset",
      +      "limit",
      +      "investigations",
      +      "effectiveQuery"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `mode_conflict`: nhtsaId was combined with another filter. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "mode_conflict"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "totalCount",
      -  "returned",
      -  "offset",
      -  "limit",
      -  "investigations",
      -  "effectiveQuery"
      -]
  2. Changed1 schema field changed
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when no investigations match — e.g. suggestions for broadening the search."New value: +"Guidance when no investigations match the filters, or when the requested page overshoots the result set."
  3. Changed2 schema fields changed
    • addedInput schema / properties / nhtsaId
      Added value: +{
      +  "description": "Exact NHTSA investigation ID (e.g. \"EA23003\"), case-insensitive. Fetches that one record — mutually exclusive with every other filter.",
      +  "type": "string"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Free-text search across investigation subject and summary."New value: +"Free-text search across investigation ID, subject, and summary."
  4. Changed14 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max results to return. Default: 20."New value: +"Max investigations to return. Defaults to 20; max 25. The cap is lower than the other paginated tools because a single investigation summary can run several thousand characters and is rendered in full."
    • addedInput schema / properties / limit / maximum
      Added value: +25
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / offset / description
      Previous value: -"Pagination offset. Default: 0."New value: +"Pagination offset into the matching investigations. Defaults to 0."
    • addedInput schema / properties / offset / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / offset / minimum
      Added value: +0
    • changedInput schema / properties / offset / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / status / description
      Previous value: -"Filter by status: \"O\" (Open), \"C\" (Closed)."New value: +"Filter by status: \"O\" (Open) or \"C\" (Closed). Omit to include both."
    • addedInput schema / properties / status / enum
      Added value: +[
      +  "O",
      +  "C"
      +]
    • addedOutput schema / properties / limit
      Added value: +{
      +  "description": "Pagination limit used for this page",
      +  "type": "number"
      +}
    • addedOutput schema / properties / offset
      Added value: +{
      +  "description": "Pagination offset used for this page",
      +  "type": "number"
      +}
    • addedOutput schema / properties / returned
      Added value: +{
      +  "description": "Number of investigations in this page",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "totalCount",
      -  "investigations",
      -  "effectiveQuery"
      -]New value: +[
      +  "totalCount",
      +  "returned",
      +  "offset",
      +  "limit",
      +  "investigations",
      +  "effectiveQuery"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / investigationType / description
      Previous value: -"Filter by type: \"PE\" (Preliminary Evaluation), \"EA\" (Engineering Analysis), \"DP\" (Defect Petition), \"RQ\" (Recall Query)."New value: +"Filter by ODI investigation type code (the leading letters of the NHTSA ID). Named types: \"PE\" (Preliminary Evaluation), \"EA\" (Engineering Analysis), \"DP\" (Defect Petition), \"RQ\" (Recall Query), \"AQ\" (Audit Query). Additional valid codes present in the dataset: \"SQ\", \"EQ\", \"RP\", \"ID\", \"TA\", \"C\". Pass any code exactly as it appears in the investigation ID prefix."
  6. Changed15 schema fields changed
    • addedInput schema / properties / component
      Added value: +{
      +  "description": "Structured filter — matches against the investigation's affected components (e.g., \"STEERING\"). ANDed with other filters.",
      +  "type": "string"
      +}
    • changedInput schema / properties / make / description
      Previous value: -"Free-text filter — matches manufacturer name against subject/description text. ANDed with other filters."New value: +"Structured filter — matches against the investigation's associated vehicle makes (e.g., \"TOYOTA\"). ANDed with other filters."
    • changedInput schema / properties / model / description
      Previous value: -"Free-text filter — matches model name against subject/description text. ANDed with other filters."New value: +"Structured filter — matches against the investigation's associated vehicle models. ANDed with other filters."
    • changedInput schema / properties / query / description
      Previous value: -"Free-text search across investigation subjects and descriptions."New value: +"Free-text search across investigation subject and summary."
    • addedOutput schema / properties / investigations / items / properties / closeDate
      Added value: +{
      +  "description": "Date investigation closed (YYYY-MM-DD), if closed",
      +  "type": "string"
      +}
    • addedOutput schema / properties / investigations / items / properties / components
      Added value: +{
      +  "description": "Affected components",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / investigations / items / properties / description
      Removed value: -{
      -  "description": "Investigation description (HTML stripped)",
      -  "type": "string"
      -}
    • removedOutput schema / properties / investigations / items / properties / latestActivityDate
      Removed value: -{
      -  "description": "Date of latest activity",
      -  "type": "string"
      -}
    • addedOutput schema / properties / investigations / items / properties / makes
      Added value: +{
      +  "description": "Associated vehicle makes",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / investigations / items / properties / manufacturer
      Added value: +{
      +  "description": "Manufacturer name",
      +  "type": "string"
      +}
    • addedOutput schema / properties / investigations / items / properties / models
      Added value: +{
      +  "description": "Associated vehicle models",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / investigations / items / properties / openDate / description
      Previous value: -"Date investigation opened"New value: +"Date investigation opened (YYYY-MM-DD)"
    • addedOutput schema / properties / investigations / items / properties / recallCampaign
      Added value: +{
      +  "description": "Linked recall campaign number (if any) — use with nhtsa_search_recalls",
      +  "type": "string"
      +}
    • addedOutput schema / properties / investigations / items / properties / summary
      Added value: +{
      +  "description": "Investigation summary",
      +  "type": "string"
      +}
    • addedOutput schema / properties / investigations / items / properties / years
      Added value: +{
      +  "description": "Associated model years",
      +  "items": {
      +    "type": "number"
      +  },
      +  "type": "array"
      +}
  7. Changed4 schema fields changed
    • addedOutput schema / properties / effectiveQuery
      Added value: +{
      +  "description": "Applied filters as a readable string, e.g. make=\"Ford\" status=\"O\".",
      +  "type": "string"
      +}
    • removedOutput schema / properties / message
      Removed value: -{
      -  "description": "Contextual guidance populated when no investigations match the filters",
      -  "type": "string"
      -}
    • addedOutput schema / properties / notice
      Added value: +{
      +  "description": "Guidance when no investigations match — e.g. suggestions for broadening the search.",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "totalCount",
      -  "investigations"
      -]New value: +[
      +  "totalCount",
      +  "investigations",
      +  "effectiveQuery"
      +]
  8. Changed1 schema field changed
    • addedOutput schema / properties / investigations / items / description
      Added value: +"A single NHTSA investigation"
  9. Changed3 schema fields changed
    • removedOutput schema / properties / total
      Removed value: -{
      -  "description": "Total matching investigations",
      -  "type": "number"
      -}
    • addedOutput schema / properties / totalCount
      Added value: +{
      +  "description": "Total matching investigations",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "total",
      -  "investigations"
      -]New value: +[
      +  "totalCount",
      +  "investigations"
      +]
  10. Changed1 schema field changed
    • addedOutput schema / properties / message
      Added value: +{
      +  "description": "Contextual guidance populated when no investigations match the filters",
      +  "type": "string"
      +}
  11. First observed

TDQS

A4.3/5.0
Behavior4/5

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

The readOnlyHint annotation already signals safety, and the description adds valuable behavior details such as pagination (`offset`, `limit`) and the mutual exclusivity of `nhtsaId` with other filters, plus the case-insensitive fetching of a single record. This goes beyond the annotation without contradicting it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every sentence contributes: purpose, filter types, mutual exclusivity, and pagination details. It is well-structured, front-loaded with the core purpose, and avoids redundancy or filler.

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?

The description fully equips a user to call the tool: it covers all filters, explains mutual exclusivity, pagination behavior, investigation type codes, and the single-record fetch mode. Since an output schema exists, return values need not be described. No critical usage gaps remain.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All nine parameters have schema descriptions (100% coverage), and the description adds extra semantics beyond those: `nhtsaId` is case-insensitive and mutually exclusive, `investigationType` explains the leading-letter prefix and lists additional valid codes, and `query` covers specific fields. This enriches parameter understanding beyond the raw schema.

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?

The description clearly states the tool searches NHTSA defect investigations from the ODI flat file, listing coverage of specific investigation types (PE, EA, DP, RQ, AQ, and additional types). It uses a specific verb and resource, making its intent unambiguous and distinct from sibling tools like recalls or complaints.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the tool's scope and filter behavior but does not explicitly mention when to use it over sibling tools (e.g., search_recalls) or provide exclusions. While the coverage types imply a focused use case, explicit guidance on alternatives is missing.

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.