Skip to main content
Glama

VinCode

Decode VIN structure

decode_vin
Read-onlyIdempotent

Use this when the user wants to know what a 17-character vehicle identification number (VIN) itself encodes. Works offline from the structure of the VIN: validates the format, verifies the check digit and says when a mismatch is expected, and reads the manufacturer identifier (manufacturer, make and country for 22 makes in the reference table, region and country of the identifier block for others), the model year code with both candidate years when it is ambiguous, the plant code and the serial section. It looks nothing up about the individual vehicle: no vehicle history, title, accident, theft, mileage or ownership records, and no model, trim or engine names.

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": {
      "vin": "<vin>"
    },
    "name": "decode_vin"
  }
}

Input Schema

NameRequiredDescriptionDefault
vinYesThe 17-character VIN. Letters and digits only (never I, O or Q); spaces and dashes are ignored.

Output Schema

NameRequiredDescriptionDefault
vinYesThe VIN in upper case without spaces or dashes.
wmiYes
plantYes
scopeYesWhat this decode does and does not include.
serialYes
model_yearYes
check_digitYes
vehicle_descriptorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly, non-destructive, idempotent and closed-world, so the burden is light — yet the description adds substantial context: it works fully offline, validates format, verifies the check digit, and pre-empts confusion by noting when a check-digit mismatch is expected. It also discloses coverage limits (manufacturer/make/country resolved for 22 makes in a reference table, only region/country for others) and that ambiguous model-year codes return both candidate years.

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?

Front-loaded with the triggering condition, then a dense clause-by-clause account of what is parsed, then a single exclusion sentence. The negative enumeration is long but each item prevents a distinct misuse, so almost nothing is wasted; the middle sentence is heavy but readable.

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 single-parameter, closed-world read tool with an output schema that documents the return shape, the description covers everything an agent needs: when to call it, that it needs no network, how ambiguity and check-digit failure are surfaced, and the exact boundary of its knowledge.

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?

The schema already documents the sole parameter at 100% coverage, including that I, O and Q never appear and that spaces and dashes are ignored. The description reinforces '17-character VIN' but adds no syntax or format detail beyond the schema, so the baseline of 3 applies.

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?

States a specific verb and resource — decoding what a 17-character VIN encodes — and immediately scopes it to the VIN's own structure rather than the vehicle. This cleanly separates it from the sibling fee/import-cost calculators, which an agent could otherwise confuse with a vehicle-related tool.

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

Usage Guidelines4/5

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

'Use this when the user wants to know what a 17-character VIN itself encodes' gives a clear trigger, and the closing sentence enumerates what it will NOT answer (history, title, accident, theft, mileage, ownership, model/trim/engine), which implicitly routes those requests elsewhere. It stops short of naming a specific alternative tool or stating what to do when the VIN is malformed or non-17 characters.

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