# Check Digits (npm · @toolstop/check-digits)

Catch a mistyped barcode, ISBN, VIN, NPI or LEI before a bad identifier corrupts a record.

- Trust score: 78/100 (medium)
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-12

## Components

- remote · `check-digits.toolstop.dev`: 58/100, [markdown](https://verifymcp.io/servers/dev-toolstop-check-digits/check-digits.md), [page](https://verifymcp.io/servers/dev-toolstop-check-digits/check-digits)
- npm · `@toolstop/check-digits`: 78/100 (this document), [markdown](https://verifymcp.io/servers/dev-toolstop-check-digits/toolstop-check-digits.md), [page](https://verifymcp.io/servers/dev-toolstop-check-digits/toolstop-check-digits)

## Channel facts

- Registry: `npm`
- Package: `@toolstop/check-digits`
- Version: `0.2.2`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-12.

- **Supply Chain Security**: 100/100
  - No malware found by supply-chain analysis.
  - No known CVEs affecting this package version or its production dependencies.
  - No install/post-install scripts declared.
  - No production dependencies, so there is no dependency health to assess.
- **Provenance & Transparency**: 97/100
  - Source repository is publicly reachable at the declared URL.
  - Cryptographically verified build provenance (signed, bound to toolstop/toolstop).
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 1 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 66/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 920 tokens (~306/item across 3 items; 3 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 17/100
  - Stability observed for 5 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
  - Structured output schemas are declared (100% of tools); any adoption earns full credit.
- **Capabilities**: 60/100
  - Spec-recency check failed: implements MCP spec 2025-06-18; the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add dev-toolstop-check-digits -- npx -y @toolstop/check-digits
```

### Codex

```bash
codex mcp add dev-toolstop-check-digits -- npx -y @toolstop/check-digits
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "dev-toolstop-check-digits": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@toolstop/check-digits"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add dev-toolstop-check-digits --command npx --arg -y --arg @toolstop/check-digits
```

### Hermes

```yaml
mcp_servers:
  dev-toolstop-check-digits:
    command: "npx"
    args: ["-y", "@toolstop/check-digits"]
```

### Other

```json
{
  "mcpServers": {
    "dev-toolstop-check-digits": {
      "command": "npx",
      "args": [
        "-y",
        "@toolstop/check-digits"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-12 (score 78, +15)

- [security improvement] Malware scan: unverified → pass

### 2026-08-11 (score 63, −12)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-08-07 (score 75)

First indexed and scored.

## MCP tools (3)

### `validate_identifier` (~246 tokens)

Check whether an identifier is mistyped

Verify a number when you already know what it is supposed to be. Use this whenever someone gives you a product barcode (GTIN, UPC or EAN), a book number (ISBN-10 or ISBN-13), a vehicle VIN, a US healthcare provider NPI, a security ISIN, or a legal entity LEI, and acting on a wrong one would cost something: a bounced claim, a rejected listing, a record that quietly corrupts a dataset.

Every supported format is a public identifier. Bank accounts, IBANs, routing numbers and payment cards are not supported and must not be sent.

Returns whether the checksum passes and, when it fails, the specific reason. If you do not already know the format, call identify_format first rather than guessing a `kind`, since a valid identifier checked against the wrong format comes back invalid. A passing checksum proves only that the digits are internally consistent: it does not mean the book, product, vehicle or provider exists, is active, or belongs to any particular person.

Input parameters:

- `kind` (string, required): Which identifier format to validate against.
- `value` (string, required): The identifier to check. Spaces and dashes are ignored.

Output parameters:

- `actualCheckDigit` (string): The digit the VIN actually carries at position 9. VIN only.
- `code` (string): Bounded reason the check failed. Absent when valid.
- `country` (string): ISO country code parsed from the identifier. ISIN only.
- `expectedCheckDigit` (string): The digit a VIN should carry at position 9. VIN only.
- `normalized` (string): The input with spaces and dashes removed, upper-cased.
- `reason` (string): Human-readable detail on the failure. Absent when valid.
- `valid` (boolean): Whether the check digit is arithmetically consistent.
- `width` (string): The resolved width of a GTIN. GTIN input only.

### `identify_format` (~169 tokens)

Work out what an unlabeled number is

Identify a bare number whose type was never recorded. Tests it against every supported format and reports which ones its check digit satisfies. Use it for an unlabeled spreadsheet column, a value pulled out of a log line or a scanned document, or any number handed over without being named.

Reports every format that matches rather than choosing between them. Several matches is normal and does not mean the answer is unclear: some formats are subsets of others, so every ISBN-13 is also a valid EAN-13, and a short value can satisfy two unrelated formats by chance. Read one match as strong evidence and several as a set to narrow from context. As with validation, a match means the arithmetic is consistent, not that the identifier is registered or real.

Input parameters:

- `value` (string, required): The identifier to classify.

Output parameters:

- `input` (string): The normalized input that was tested.
- `matched` (boolean): Whether any supported format matched.
- `matches` (array): Every format whose check digit the input satisfies, in registry order. Each entry carries `kind` plus the same format-specific fields validate_identifier returns for that format, such as `country` fo…

### `compute_luhn_digit` (~169 tokens)

Complete a number that is missing its check digit

Given digits with the final check digit omitted, return the one that completes them. US healthcare NPIs and securities ISINs use the Luhn formula.

Use it to build valid test fixtures, to recover a last digit that was lost or illegible, or to check an implementation against a reference. To test a number you already have in full, use validate_identifier instead. Input must reduce to digits only once spaces and dashes are stripped; anything else is an error. Payment cards also use Luhn, and are deliberately out of scope here: do not pass card digits, partial or complete. This constructs a well-formed number and nothing more: it does not create, reserve or verify a real provider or security.

Input parameters:

- `partial` (string, required): Digits excluding the final check digit.

Output parameters:

- `checkDigit` (string): The single digit that completes a Luhn-valid string.
- `partial` (string): The input digits, echoed back.

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/dev-toolstop-check-digits/toolstop-check-digits#diagnostics

## Score history

- 2026-08-12: 78
- 2026-08-11: 63
- 2026-08-10: 75
- 2026-08-09: 75
- 2026-08-08: 75
- 2026-08-07: 75

## Links

- npm package: https://www.npmjs.com/package/@toolstop/check-digits
- Socket report: https://socket.dev/npm/package/@toolstop/check-digits
- Repository: https://github.com/toolstop/toolstop
- Website: https://check-digits.toolstop.dev/
- Changelog RSS feed: https://verifymcp.io/servers/dev-toolstop-check-digits/toolstop-check-digits.xml
- Changelog JSON feed: https://verifymcp.io/servers/dev-toolstop-check-digits/toolstop-check-digits.json
- HTML version of this page: https://verifymcp.io/servers/dev-toolstop-check-digits/toolstop-check-digits
