Skip to main content
Glama

Clear trouble codes (destructive)

clear_dtcs
Destructive

Clears stored OBD-II diagnostic trouble codes and turns off the MIL after explicit confirmation, erasing freeze frame data and resetting readiness monitors.

Instructions

Clear stored DTCs and turn off the MIL (mode 04). DESTRUCTIVE: also erases freeze frame data and resets readiness monitors, which can make the vehicle fail an emissions inspection until drive cycles complete. Read read_dtcs and read_freeze_frame first, and only call this with confirm=true after the user explicitly agrees.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "confirm": "<confirm>"
    },
    "name": "clear_dtcs"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYesMust be true. Confirms the user understands freeze frame data will be lost and readiness monitors reset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and non-idempotent, but the description goes further and names exactly what is destroyed (freeze frame data, readiness monitors) and the real-world consequence (possible emissions-inspection failure until drive cycles complete). That is precisely the extra context annotations cannot convey.

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?

Three short sentences, front-loaded with the action and the DESTRUCTIVE warning, then the prerequisite reads, then the confirm condition. No filler or repetition of the annotation fields.

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?

For a destructive one-parameter tool with no output schema, the description supplies everything an agent needs: what is cleared, what side effects occur, the precondition reads, and the confirmation requirement.

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?

With one parameter at 100% schema coverage, the baseline is 3, but the description adds meaning beyond the schema by framing confirm as a consent gate tied to prior reads and explicit user agreement rather than a bare boolean.

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 names a specific verb and resource ('Clear stored DTCs') plus the secondary effect ('turn off the MIL (mode 04)'), so an agent can distinguish it from the sibling reads like read_dtcs without opening any schema.

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

Usage Guidelines5/5

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

It gives explicit sequencing ('Read read_dtcs and read_freeze_frame first'), names the required gate ('only call this with confirm=true'), and states the human-consent condition ('after the user explicitly agrees'). Both when-to-use and a prerequisite chain are spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.