Skip to main content
Glama

WritersLogic business agents

vin-decode

VIN decode: manufacturer (WMI), model year, check digit — Decodes up to 50 VINs per call for an agent handling a vehicle listing, claim or order: validates the 17 characters and letters I/O/Q, the position-9 check digit (49 CFR 565.15), the world manufacturer identifier from a bundled NHTSA vPIC snapshot, and the model year from position 10. Position 10 repeats every 30 years: pass vehicleClass light (position 7 resolves the century) or asOf, otherwise b

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

Input Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description does real work: it discloses the validation rules enforced (exactly 17 characters, letters I/O/Q rejected, position-9 check digit per 49 CFR 565.15), that WMI resolution comes from a bundled NHTSA vPIC snapshot, and that no clock is read. However, it never states what happens when a VIN fails validation — whether the call errors, returns a per-item result, or drops the entry — nor does it describe the response shape, and the final sentence is cut off mid-clause, leaving the fallback behavior for ambiguous model years unknown.

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

Conciseness3/5

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

The information is front-loaded correctly, with the identity of the tool and its outputs stated first. But it is a single dense run-on built from an em-dash and a colon, and it terminates mid-word ('otherwise b'), which is an obvious structural defect an agent must work around rather than merely skim past.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a domain-specific tool with legal-citation validation logic, no annotations, and no output schema, so the description carries the full burden. It covers inputs and validation rules but says nothing about the result format, per-item versus whole-batch failure, or the resolution behavior referenced by the severed final clause — gaps an agent must know before calling with a batch of 50.

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?

Although the reported schema coverage is 0%, the description supplies the key semantics the caller needs: why vehicleClass=light matters (position 7 fixes the century when position 10 repeats every 30 years) and that asOf is the alternative for the same ambiguity. This meaningfully extends the schema's own terse field descriptions. The credit is limited by the truncated closing clause, which presumably explains the default when neither is supplied but never gets there.

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 definition opens with a specific verb and resource ('VIN decode') and immediately enumerates the outputs it produces: WMI/manufacturer, model year, and check digit, plus a stated capacity of 50 VINs per call. That is enough for an agent to distinguish it from generic siblings like calldata-decode. The trailing fragment 'otherwise b' does not obscure what the tool does, only a detail of how it behaves.

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?

It gives an explicit situational context — 'for an agent handling a vehicle listing, claim or order' — which tells the caller when the tool fits. It also tells the caller when to supply vehicleClass=light (position 7 resolves the century) versus asOf. What is missing is any exclusion or named alternative for adjacent tasks such as checksum or generic decoding work.

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