Skip to main content
Glama

Oil & Miles

Trouble code meaning

get_trouble_code
Read-onlyIdempotent

What an OBD-II trouble code means in plain words, what the engine computer saw, what the code does not prove, what gets checked first and the related codes. One code, for example P0420.

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": {
      "code": "<code>"
    },
    "name": "get_trouble_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe five-character code, for example P0420.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare this as a read-only, idempotent, non-destructive lookup, so the bar is lower. The description still adds real value by enumerating what the response contains — plain-language meaning, what the computer saw, what the code does not prove, what gets checked first, and related codes — which is useful since no output schema exists.

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

Conciseness4/5

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

Two tight sentences, front-loaded with the core purpose and then the scope constraint. The final 'One code, for example P0420' is slightly redundant with the schema example but usefully reinforces single-code scope.

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 one-parameter, read-only lookup with fully described schema and annotations, the description covers everything an agent needs, including a preview of the returned content categories in lieu of an output schema.

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

Parameters3/5

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

Schema coverage is 100% and the pattern plus example already document the single 'code' parameter, so the description inherits the baseline of 3. The trailing 'for example P0420' merely repeats the schema's example rather than adding format or validation meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete resource and task: it explains what a single OBD-II trouble code means, including the ECU's view, caveats, first checks, and related codes. The phrase 'One code, for example P0420' implicitly distinguishes it from a bulk listing, but it never names or explicitly contrasts with list_trouble_codes.

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?

Usage is only implied: you bring a code and get its interpretation. There is no explicit statement of when to prefer this over list_trouble_codes (e.g., when you already have a code rather than wanting a catalog), and no preconditions or exclusions are given.

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.

Resources