---
name: molecule-lineage
description: Query deterministic US drug records, package NDCs, FDA Orange Book therapeutic equivalents and CMS retail NADAC price benchmarks from the Molecule Lineage programmatic lookup endpoint (/api/mcp). Every response carries federal file-and-row citations and a cryptographically signed receipt.
---

# Molecule Lineage — Machine-Readable API & Endpoint Guide

Molecule Lineage is a dated reference for US drug records with signed receipts, compiled from
published FDA, CMS, VA and NLM files. Its programmatic lookup endpoint (`/api/mcp`) answers six
deterministic JSON-RPC 2.0 / MCP methods. Every answer names the federal file and row behind each
fact and ends with a server-signed receipt (`mlin_rcpt_v1...`) so downstream reviewers and systems
can check integrity end to end.

This guide documents how to connect over HTTPS, which tool answers which question, exact request and
response schemas, starter-subset scope rules, and receipt verification.

## Intended scope

Use `/api/mcp` when a client or workflow needs to:

- look up a US drug by federal ingredient or label (brand) name;
- resolve, validate or normalize a package NDC to its cited FDA NDC Directory record;
- list FDA Orange Book A-rated therapeutic equivalence entries for a product;
- compare a paid unit amount against the published CMS retail NADAC benchmark;
- triage up to 12 de-identified NDCs before an audit, formulary review or pricing study;
- verify the cryptographic signature and payload digest of a Molecule receipt (`mlin_rcpt_v1...`).

Do not use this service for clinical dosing, medical advice, patient-specific decisions, or requests
containing protected health information.

## Connect

Connect directly over HTTPS to the stateless endpoint. Zero local package installation is required.

### Endpoint specification

| Property | Value |
| --- | --- |
| Endpoint | `https://moleculelineage.com/api/mcp` |
| Server card | `https://moleculelineage.com/api/mcp/server-card` |
| Transport | Streamable HTTP, JSON-RPC 2.0 over `POST` (`GET` returns discovery JSON) |
| Request headers | `Content-Type: application/json`, `Accept: application/json, text/event-stream` |
| Protocol versions | `2025-11-25`, `2025-06-18`, `2025-03-26` |
| Session model | Stateless. No session identifier. Every `POST` returns one JSON response. |

### Client configuration formats

Direct HTTP `curl` call (keyless):

```sh
curl -fsS https://moleculelineage.com/api/mcp -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"resolve_ndc","arguments":{"ndc":"00003-0894-21"}}}'
```

Standard `.mcp.json` (`mcpServers` HTTP transport):

```json
{
  "mcpServers": {
    "molecule": {
      "type": "http",
      "url": "https://moleculelineage.com/api/mcp"
    }
  }
}
```

Workspace `servers` JSON (`.vscode/mcp.json` or compatible HTTP MCP clients):

```json
{
  "servers": {
    "molecule": {
      "type": "http",
      "url": "https://moleculelineage.com/api/mcp"
    }
  }
}
```

TOML client configuration (`config.toml`):

```toml
[mcp_servers.molecule]
url = "https://moleculelineage.com/api/mcp"
```

### Access modes & starter-subset honesty

| Mode | Header | Tools answered | Catalog scope |
| --- | --- | --- | --- |
| Keyless Mode (Free Trial) | Omit `Authorization` | `find_drug`, `resolve_ndc`, `verify_receipt` | `5,000`-NDC small-molecule starter subset for `find_drug` and `resolve_ndc` (`30` req/min per IP); all Molecule receipts for `verify_receipt` |
| Commercial Mode | `Authorization: Bearer mlin_lic_v1...` | All six tools | Complete rights-cleared commercial index |

Commercial authentication:

- HTTP requests: attach `Authorization: Bearer <access key>` on every `POST`.
- Shell scripts and services: export `MOLECULE_LICENSE_KEY` in the environment and pass `-H "Authorization: Bearer $MOLECULE_LICENSE_KEY"`.

An access key begins with `mlin_lic_v1.`. Keys from the Commercial Data Feed (`$299/mo`) and Advisor
Unlimited (`$599/mo`) plans unlock all six `/api/mcp` tools across the full catalog. Treat the key
as a credential: never print it in logs or commit it to source control. Manage keys and plans at
<https://moleculelineage.com/console/#key>.

### Molecule Lineage plans & pricing (USD)

| Plan | Price | Billing | What it unlocks |
| --- | --- | --- | --- |
| Keyless Lookup & Starter API | `$0` | No account | All `83,000+` cited drug/labeler pages, eligible per-table CSVs, `500`-NDC audit sample, `25`-family screener preview, and keyless `find_drug`, `resolve_ndc` (`5,000`-NDC starter subset) + `verify_receipt` (`30` req/min) |
| Screener Pro (`/screener/`) | `$79/mo` | Monthly | Full interactive screener, sorting, Part D spend / Para IV / REMS filters, watchlists and CSV export across `11,326` exportable small-molecule families + `260` of `780` FDA Purple Book biologic families (highest-priority shown, view-only on web pages) (does not include commercial `/api/mcp` tools) |
| Single Audit Pass (`/audit/`) | `$299` | One-time (`30` days) | Single-plan audit pass licensed for `1` employer plan evaluation — in-browser zero-PHI claims scrubbing and fill-date scoring across `46,749` NDCs, `853,612` dated NADAC runs, and `1,154` Part B Payment Limit (`ASP + 6%`) J-code rates (`2024Q1–2026Q4`), plus cited CSV and paginated Board PDF |
| Commercial Data Feed (`/data/`) | `$299/mo` | Monthly | All six `/api/mcp` lookup tools with server-signed receipts (`mlin_rcpt_v1`), plus `38` Parquet views, `2,518` dated ingredient JSONs, `index/occurrences.json` edition dates, and `SHA256SUMS` (FDA Purple Book biologic rows are view-only on web pages and excluded from bulk Parquet/API exports pending FDA reuse confirmation) |
| Advisor Unlimited (`/audit/`) | `$599/mo` | Monthly | Multi-client advisory practice — unlimited client evaluations, personalized white-label paginated Board PDFs, and all six signed `/api/mcp` lookup tools |

In Keyless Mode, calling one of the three commercial tools (`get_price_benchmark`, `get_equivalents`,
`diagnose_ndc_cohort`) returns a normal JSON-RPC result with `"status": "upgrade_required"` (see
[Errors and limits](#errors-and-limits)). Report which plan is required and do not retry in a loop.

Always note whether a result came from Keyless Mode or Commercial Mode. Because Keyless Mode
searches a `5,000`-NDC small-molecule starter subset (excluding FDA Purple Book biologics), a zero-hit
lookup in Keyless Mode carries `"index_scope": "starter_subset_5000_ndc"` and `"scope_note"` — never
interpret a starter-subset miss as evidence that a drug or NDC does not exist.

## Protocol quick start

Every call is a `POST` with a JSON-RPC 2.0 body. `id` must be a string or safe integer. Standard
requests are capped at 16 KB (`verify_receipt` requests carrying `payload` accept up to 256 KB).

```sh
# 1. Handshake (optional for stateless HTTP callers, supported for MCP clients)
curl -sS https://moleculelineage.com/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"http-client","version":"1.0"}}}'

# 2. List the tools and their input schemas
curl -sS https://moleculelineage.com/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

# 3. Call a tool
curl -sS https://moleculelineage.com/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"resolve_ndc","arguments":{"ndc":"00003-0894-21"}}}'
```

A successful `tools/call` response has this envelope. Read `result.structuredContent`.
`result.content[0].text` serializes the identical JSON object as text for clients that read text
blocks.

```json
{
  "jsonrpc": "2.0",
  "id": 2,
  "result": {
    "structuredContent": { "...": "the answer", "receipt": "mlin_rcpt_v1.<digest>.<signature>" },
    "content": [{ "type": "text", "text": "{...the same JSON...}" }],
    "isError": false
  }
}
```

Each tool accepts only the arguments documented below (`additionalProperties: false`). Unknown or
misspelled arguments return JSON-RPC error `-32602`.

## Tools

Example values below reflect a representative federal edition and update with each release. Every
tool response (except an `upgrade_required` notice) includes `receipt_meta` naming `tool`,
`arguments`, `release_id` and `issued_at` UTC. Receipts in documentation use placeholders; a live
receipt is 100 characters long.

### 1. `find_drug`: search by ingredient or label name (Keyless)

Search federal ingredient and label (brand) names. Returns matching ingredient entries, available
catalog attributes, and federal file-and-row citations.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `query` | string, 2 to 100 characters | yes | Ingredient or label (brand) name. Case-insensitive. |
| `limit` | integer, 1 to 20 | no | Default 10. |

```json
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"find_drug","arguments":{"query":"apixaban","limit":5}}}
```

```json
{
  "status": "found",
  "results": [
    {
      "name": "APIXABAN",
      "citations": [
        "fda_ndc_directory@2026-11-17/package.txt:202",
        "fda_ndc_directory@2026-11-17/product.txt:161",
        "fda_orange_book@2026-11-13/products.txt:27920"
      ]
    }
  ],
  "receipt": "mlin_rcpt_v1.<digest>.<signature>"
}
```

When available in the served index, each entry in `results` also includes optional catalog fields
such as `strength`, `dosage_form`, `route`, `package_description`, `labeler`, `marketing_status`,
`application_number`, `rxcui`, `unii`, and `slug`. Results rank exact matches first, prefix matches
second, and substring matches third. When a Keyless Mode search finds zero matches in the
`5,000`-NDC starter subset, the response includes `"index_scope": "starter_subset_5000_ndc"` and
`"scope_note"` explaining that full-catalog queries require a paid API key.

### 2. `resolve_ndc`: identify a package NDC (Keyless)

Resolve a package NDC before quoting product names, application numbers, or package attributes.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `ndc` | string, 1 to 100 characters | yes | Hyphenated (`00003-0894-21`) or 11 digits (`00003089421`). Always pass as a string. |

```json
{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"resolve_ndc","arguments":{"ndc":"00003-0894-21"}}}
```

```json
{
  "status": "found",
  "ndc11": "00003089421",
  "ambiguous_ndc10": false,
  "packages": [
    {
      "name": "ELIQUIS",
      "application_number": "NDA202155",
      "citations": [
        "fda_ndc_directory@2026-11-17/package.txt:205",
        "fda_ndc_directory@2026-11-17/product.txt:162"
      ]
    }
  ],
  "citations": [
    "fda_ndc_directory@2026-11-17/package.txt:205",
    "fda_ndc_directory@2026-11-17/product.txt:162"
  ],
  "receipt": "mlin_rcpt_v1.<digest>.<signature>"
}
```

When present in the index shard, each item in `packages` also returns `strength`, `dosage_form`,
`route`, `package_description`, `labeler`, `labeler_code`, `marketing_status`, `marketing_category`,
`generic_name`, `product_ndc`, `package_ndc`, and `active_ingredients`.

| `status` | Meaning | Client handling |
| --- | --- | --- |
| `found` | The NDC resolved to a cited federal listing. | Report `ndc11`, package fields, and `citations`. |
| `unresolved` | Either an unhyphenated 10-digit NDC maps to multiple possible 11-digit forms (`ambiguous_ndc10: true`), or the NDC is outside the Keyless `5,000`-NDC starter subset (`index_scope: "starter_subset_5000_ndc"`). | Request the hyphenated NDC when `ambiguous_ndc10` is `true`, or supply a commercial key to query the complete catalog. |
| `not_found` | No listing exists for this NDC in the complete catalog (or the input is not a valid NDC). | Report that no listing was found; never guess a nearby NDC. |

### 3. `get_price_benchmark`: CMS retail NADAC for one NDC (Commercial)

Retrieve the CMS retail NADAC per-unit benchmark for one NDC in the current served edition.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `ndc` | string, 1 to 100 characters | yes | Same string formats as `resolve_ndc`. |

```json
{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"get_price_benchmark","arguments":{"ndc":"00003089421"}}}
```

```json
{
  "outcomes": [
    {
      "ndc11": "00003089421",
      "held": "HELD",
      "comparison": "MATCHES",
      "federal_edition": "cms_nadac@2026-11-18",
      "price_benchmark": { "per_unit": "5.52099", "pricing_unit": "EA", "effective_date": "2026-11-18" },
      "citations": [
        "cms_nadac@2026-11-17/csv:1368130",
        "fda_ndc_directory@2026-11-17/package.txt:205",
        "fda_ndc_directory@2026-11-17/product.txt:162"
      ],
      "va_fss_only": false,
      "active_shortage_excused": false,
      "ambiguous_ndc10": false,
      "competing_pack_assertions": false
    }
  ],
  "question_fit": {
    "total_inputs": 1,
    "unique_ndc11_count": 1,
    "matched_retail_nadac_count": 1,
    "differs_retail_nadac_count": 0,
    "absent_retail_nadac_count": 0,
    "not_compared_count": 0,
    "unlisted_ndc_count": 0,
    "va_fss_only_count": 0,
    "active_shortage_excused_count": 0,
    "ambiguous_ndc10_count": 0,
    "competing_pack_assertions_count": 0
  },
  "receipt_meta": {
    "tool": "get_price_benchmark",
    "arguments": { "ndc": "00003089421" },
    "release_id": "20261202-05",
    "issued_at": "2026-12-03T01:17:29.362Z"
  },
  "receipt": "mlin_rcpt_v1.<digest>.<signature>"
}
```

`per_unit` is an exact decimal string from the CMS edition named in `federal_edition`: preserve all
decimal digits without floating-point rounding.

### 4. `get_equivalents`: FDA Orange Book A-rated equivalents (Commercial)

List products carrying an FDA Orange Book A-rated therapeutic equivalence evaluation in the same
comparator group as the queried NDC.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `ndc` | string, 1 to 100 characters | yes | Same string formats as `resolve_ndc`. |

```json
{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"get_equivalents","arguments":{"ndc":"00003089421"}}}
```

```json
{
  "status": "found",
  "ndc11": "00003089421",
  "ambiguous_ndc10": false,
  "equivalents": [
    {
      "application_number": "ANDA209898",
      "strength": "5MG",
      "te_code": "AB",
      "is_reference": false,
      "citations": ["fda_orange_book@2026-11-13/products.txt:29900"]
    },
    {
      "application_number": "ANDA210180",
      "strength": "5MG",
      "te_code": "AB",
      "is_reference": false,
      "citations": ["fda_orange_book@2026-11-13/products.txt:29880"]
    }
  ],
  "citations": [
    "fda_orange_book@2026-11-13/products.txt:29880",
    "fda_orange_book@2026-11-13/products.txt:29900"
  ],
  "receipt": "mlin_rcpt_v1.<digest>.<signature>"
}
```

`status` is `found` or `unresolved`. `unresolved` indicates that no A-rated comparator row was
published for this package in the served index. Quote `te_code` verbatim; an FDA listing is a
regulatory record, not a statement of commercial availability.

### 5. `diagnose_ndc_cohort`: screen up to 12 NDCs (Commercial)

Assess benchmark coverage and control flags across a cohort of up to 12 de-identified NDCs before
aggregating pricing conclusions.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `ndcs` | array of 1 to 12 strings | yes | De-identified NDCs only. Never include patient, member or claim identifiers. |
| `profile` | string | no | `strict_federal@1` (default) or `amplified_discovery@1`. |

```json
{"jsonrpc":"2.0","id":5,"method":"tools/call","params":{"name":"diagnose_ndc_cohort","arguments":{"ndcs":["00003089421","59572041028"]}}}
```

```json
{
  "outcomes": [
    {
      "ndc11": "00003089421",
      "held": "HELD",
      "comparison": "MATCHES",
      "federal_edition": "cms_nadac@2026-11-18",
      "price_benchmark": { "per_unit": "5.52099", "pricing_unit": "EA", "effective_date": "2026-11-18" },
      "citations": [
        "cms_nadac@2026-11-17/csv:1368130",
        "fda_ndc_directory@2026-11-17/package.txt:205",
        "fda_ndc_directory@2026-11-17/product.txt:162"
      ],
      "va_fss_only": false,
      "active_shortage_excused": false,
      "ambiguous_ndc10": false,
      "competing_pack_assertions": false
    },
    {
      "ndc11": "59572041028",
      "held": "HELD",
      "comparison": "ABSENT_FROM",
      "federal_edition": "cms_nadac@2026-11-18",
      "price_benchmark": null,
      "citations": [
        "fda_ndc_directory@2026-11-17/package.txt:97606",
        "fda_ndc_directory@2026-11-17/product.txt:53016",
        "va_fss@2026-11-01/va_fss:12716",
        "va_fss@2026-11-01/va_fss:14506",
        "va_fss@2026-11-01/va_fss:35379",
        "va_fss@2026-11-01/va_fss:36060"
      ],
      "va_fss_only": true,
      "active_shortage_excused": false,
      "ambiguous_ndc10": false,
      "competing_pack_assertions": false
    }
  ],
  "question_fit": {
    "total_inputs": 2,
    "unique_ndc11_count": 2,
    "matched_retail_nadac_count": 1,
    "differs_retail_nadac_count": 0,
    "absent_retail_nadac_count": 1,
    "not_compared_count": 0,
    "unlisted_ndc_count": 0,
    "va_fss_only_count": 1,
    "active_shortage_excused_count": 0,
    "ambiguous_ndc10_count": 0,
    "competing_pack_assertions_count": 0
  },
  "receipt_meta": {
    "tool": "diagnose_ndc_cohort",
    "arguments": { "ndcs": ["00003089421", "59572041028"] },
    "release_id": "20261202-05",
    "issued_at": "2026-12-03T01:17:29.362Z"
  },
  "receipt": "mlin_rcpt_v1.<digest>.<signature>"
}
```

Outcomes preserve input order. For cohorts larger than 12 NDCs, batch in groups of 12 and retain
each batch's receipt alongside its rows.

### 6. `verify_receipt`: verify cryptographic signature and payload binding (Keyless)

Verify any Molecule outcome receipt (`mlin_rcpt_v1...`) without an API key. Supplying the optional
`payload` (either the JSON-RPC response object, `structuredContent`, or its JSON string) also
recomputes the canonical key-sorted SHA-256 digest on the server and checks payload binding.

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `receipt` | string, 1 to 256 characters | yes | Full `mlin_rcpt_v1.<digest>.<signature>` string, unchanged. |
| `payload` | object or JSON string (whole request up to 256 KB) | no | Optional response object or JSON text to verify against the receipt's digest. |

```json
{"jsonrpc":"2.0","id":6,"method":"tools/call","params":{"name":"verify_receipt","arguments":{"receipt":"mlin_rcpt_v1.<digest>.<signature>"}}}
```

```json
{
  "status": "verified",
  "valid": true,
  "signature_verified": true,
  "digest_verified": false,
  "payload_provided": false,
  "receipt_digest": "<digest>",
  "receipt": "mlin_rcpt_v1.<digest>.<signature>"
}
```

When `payload` is supplied, `status` is `"verified"` (`signature_verified: true`,
`digest_verified: true`), `"payload_mismatch"` (`signature_verified: true`,
`digest_verified: false`), `"invalid_signature"`, or `"malformed"`.

## Reading an outcome row

`get_price_benchmark` and `diagnose_ndc_cohort` return rows with these fields:

| Field | Values | Meaning |
| --- | --- | --- |
| `ndc11` | 11 digits, or `null` | Resolved 11-digit billing NDC (`null` when input is malformed or ambiguous). |
| `held` | `HELD`, `NOT_HELD`, `NOT_ASSESSED` | Whether Molecule holds supporting federal evidence for the row. |
| `comparison` | `MATCHES`, `DIFFERS_FROM`, `ABSENT_FROM`, `NOT_COMPARED` | Comparison status against the CMS NADAC edition in `federal_edition`. |
| `federal_edition` | `cms_nadac@YYYY-MM-DD`, or `null` | CMS NADAC edition evaluated. |
| `price_benchmark` | object, or `null` | `per_unit` (decimal string), `pricing_unit` (`EA`, `ML` or `GM`) and `effective_date`. |
| `citations` | array of strings | Source locators formatted as `source@edition/file:row`. |
| `va_fss_only` | boolean | VA Federal Supply Schedule price exists on record with no retail CMS NADAC rate. |
| `active_shortage_excused` | boolean | Active FDA drug shortage record applies to the package. |
| `ambiguous_ndc10` | boolean | Unhyphenated 10-digit NDC maps to multiple possible 11-digit NDCs. |
| `competing_pack_assertions` | boolean | Primary federal files carry differing package assertions for the NDC. |

`question_fit` summarizes distinct resolved NDC-11s in the call: `total_inputs`,
`unique_ndc11_count`, `matched_retail_nadac_count`, `differs_retail_nadac_count`,
`absent_retail_nadac_count`, `not_compared_count`, `unlisted_ndc_count`, `va_fss_only_count`,
`active_shortage_excused_count`, `ambiguous_ndc10_count` and `competing_pack_assertions_count`.
Unlisted NDCs (`unlisted_ndc: true`) carry `comparison: "NOT_COMPARED"` so nonexistent codes are
never counted as FDA-listed packages absent from retail NADAC.

A CMS NADAC rate is a retail pharmacy acquisition cost survey published by CMS — not a patient
out-of-pocket price, plan net cost, or commercial quote.

## The Golden Citation & Receipt Rule

Follow all six rules whenever consuming or relaying `/api/mcp` data:

1. **Never guess an NDC.** Never pad, re-hyphenate, or synthesize an NDC from memory. Pass the raw
   string to `resolve_ndc` and use the returned `ndc11`. See [NDC rules](#ndc-rules).
2. **Cite the source locator for every fact.** Every `citations` entry has the form
   `source@edition/file:row` (for example `fda_orange_book@2026-11-13/products.txt:29900`). Keep the
   locator beside each fact it supports.
3. **Report `question_fit` scope counts.** When summarizing `get_price_benchmark` or
   `diagnose_ndc_cohort`, quote `question_fit` counts and `federal_edition` alongside any aggregate
   figure.
4. **Preserve the receipt.** Keep each `mlin_rcpt_v1...` token intact with its response. Never
   truncate or re-encode it.
5. **Verify relayed receipts and payloads.** When consuming a relayed receipt, call `verify_receipt`
   (free and keyless) with both `receipt` and `payload` to confirm `status: "verified"` before
   relying on the figures.
6. **Treat data gaps as explicit outcomes.** `not_found`, `unresolved`, `null` and `NOT_ASSESSED`
   are exact outcomes — never backfill missing federal records with estimates.

An API outcome receipt (`mlin_rcpt_v1.<digest>.<signature>`) binds the base64url SHA-256 digest of
`structuredContent` serialized as key-sorted compact JSON without the `receipt` field (preserving
`receipt_meta`). Any client can recompute that SHA-256 digest locally, and any client can verify
both the digest and the server's cryptographic signature via `verify_receipt` on `/api/mcp` or on
<https://moleculelineage.com/console/#verify>.

The browser-based PBM claims audit at <https://moleculelineage.com/audit/> prints a distinct
client-side run fingerprint (`mlin_run_v1:` followed by 16 hexadecimal characters). It is a
deterministic SHA-256 fingerprint computed locally in the browser over the release ID, benchmark
count, scrubbed claim rows, and Module A/B/C totals. Because zero claim rows leave the browser,
Molecule servers never sign or store run fingerprints; reproduce a run by scoring the same CSV
against the same release's benchmark pack.

## NDC rules

- Always treat NDCs as strings so leading zeros are preserved.
- **NDC-11** is the 11-digit 5-4-2 billing format (`00003089421` or `00003-0894-21`). Prefer it.
- **NDC-10** is the 10-digit FDA label format (`4-4-2`, `5-3-2`, or `5-4-1`). When hyphenated,
  `resolve_ndc` normalizes it deterministically to NDC-11.
- An unhyphenated 10-digit string can correspond to up to three distinct NDC-11 codes. When
  ambiguous, `resolve_ndc` returns `ambiguous_ndc10: true` rather than guessing; request the
  hyphenated package code.

## Errors and limits

| HTTP | JSON-RPC code | Meaning | Client action |
| --- | --- | --- | --- |
| 200 | (result) `status: "upgrade_required"` | A commercial tool was called without a paid key. | Report required plan (`$299/mo` Data Feed or `$599/mo` Advisor Unlimited); do not retry. |
| 200 | `-32602` | Unknown tool name or invalid tool arguments. | Check input schema and argument types. |
| 200 | `-32601` | Unknown JSON-RPC method. | Use `initialize`, `ping`, `tools/list` or `tools/call`. |
| 400 | `-32700` / `-32600` | Malformed JSON-RPC 2.0 body or unsupported protocol version. | Fix request body or `MCP-Protocol-Version` header. |
| 401 | `-32001` | Invalid, revoked or expired access key. | Supply an active `mlin_lic_v1...` key. |
| 403 | `-32003` | Access key tier does not include commercial `/api/mcp` tools. | Use a `data_feed` or `audit_advisor` key. |
| 403 | `-32000` | Cross-origin browser `Origin` header rejected. | Call from a backend, CLI, or same-origin console. |
| 413 | `-32600` | Request body exceeds size limit (16 KB standard; 256 KB for `verify_receipt` with `payload`). | Split large cohorts into batches of up to 12 NDCs. |
| 415 | `-32600` | `Content-Type` is not `application/json`. | Set `Content-Type: application/json`. |
| 429 | `-32029` | Keyless Mode rate limit (`30` req/min) reached. | Respect `Retry-After` or authenticate with a commercial key. |
| 503 | `-32000` | Service temporarily unavailable. | Retry once after a brief backoff. |

FDA Purple Book biologic rows are view-only on web pages and excluded from `/api/mcp` and bulk
Parquet exports pending FDA reuse confirmation.

## Data handling boundaries

- Never transmit patient names, member IDs, dates of birth, or claim IDs to `/api/mcp`.
- Never present a CMS NADAC survey figure as a patient copay or plan net price.
- Never state clinical substitutability beyond quoting the published FDA `te_code`.
- Never combine rows from separate calls or federal editions under a single receipt.

## Commercial Parquet snapshots for offline pipelines

Commercial Data Feed subscribers (`$299/mo`) can mirror checksummed Parquet views (`38` views,
updated with each federal edition) and `2,518` dated ingredient JSON documents from
<https://moleculelineage.com/data/> for air-gapped or warehouse pipelines with `SHA256SUMS`
checks. Counts on this page are for release `20261205-01`; the live figures for every release are in
<https://moleculelineage.com/release/manifest.json>.

## Links

- API & Data Console, live playground and receipt verifier: <https://moleculelineage.com/console/>
- MCP server card: <https://moleculelineage.com/api/mcp/server-card>
- Plain-text endpoint summary: <https://moleculelineage.com/llms.txt>
- Access keys and plans: <https://moleculelineage.com/console/#key>
- Sources and editions: <https://moleculelineage.com/sources/>
- Methodology: <https://moleculelineage.com/methodology/>
- Data terms: <https://moleculelineage.com/data-terms/>
- Support: access@moleculelineage.com
