Seven tools, one record shape
Neap answers over MCP, plain HTTP and a command line with the same seven read-only tools. Every answer carries the data version, the sources, the credit lines and any warnings.
The tools
| Tool | Use it when |
|---|---|
find_medicine | Finds medicines by product or substance name and returns each register's own codes: the national code for shortages_by_national_code and the ATC code for shortages_by_atc and cross_country_summary. |
shortages_by_atc | Lists shortage records for an ATC code across EU registers, in one record shape. |
shortages_by_national_code | Looks up one product by its national code in one country: Czech KOD_SUKL, Spanish Codigo Nacional, Italian AIC (nine digits for a pack; six digits also returns every pack of that medicine), the ANSM listing id for France, or the EMA shortage page slug with country EU. |
cross_country_summary | Compares one ATC code across every served register: active records per country, split into shortNow and announced (start date after the snapshot), status breakdown, earliest start, latest update, how many are past their expected end, and how many have none. |
changes_since | Returns what moved in the registers since a cursor: rows listed or delisted, status changes, date changes and ATC changes, and Czech products leaving the current view (left_current_view), oldest first. |
source_status | Reports each register's state (ok, stale, drift, error, robots_blocked or never_fetched), last attempt, last success, source row count, served record count and content hash, plus which countries are held back or excluded and why. |
history_for | Shows how shortages for an ATC code moved over time. |
What every answer carries
| Field | Meaning |
|---|---|
dataVersion | The dated version the answer was read from. Pass as_of to pin an older one. |
sources | Each register used, its URL, health, retrieval time and list date. |
attribution | The credit line each source's terms require. Keep it when you pass data on. |
warnings | A register that failed or changed format is named here. Read it on every call. |
complete | False when any warning applies. Treat the answer as partial. |
absence | On empty answers: no record does not mean available. |
The record
| Field | Meaning |
|---|---|
nationalCode | The code as the register prints it: KOD_SUKL, Codigo Nacional, AIC, ANSM listing id or EMA slug. |
status | One of shortage, supply_tension, announced, resolved, discontinued. |
sourceStatus | The register's own wording, unchanged. |
start, expectedEnd | Dates as the register gives them; expectedEndText where it gives words, not a date. |
atc, atcBasis | The ATC code on the record and how it was found: source, cima_medicamento, ema_medicines or substance_name. |
sourceListDate | The list's own date, or the retrieval date where the register publishes none (sourceListDateBasis says which). |
provenance | Source URL, record URL where one exists, fetch time, content hash and record hash. |
Access and limits
The free tier needs no key: 20 calls a day per address. Paid plans send Authorization: Bearer <key>. At the limit the API answers 429 with free_limit and a plain message; nothing is cut silently. Errors are JSON with error and message: invalid_atc, invalid_date, source_not_served, source_excluded, country_not_covered.
Plain HTTP
POST https://neap.bulkhead.solutions/v1/tools/<tool>
content-type: application/json
{"country":"CZ","code":"0269399"}
The OpenAPI description lists every tool with its schema. llms.txt and llms-full.txt describe the service for language models.
MCP
Streamable HTTP at https://neap.bulkhead.solutions/mcp, stateless, every tool annotated read-only. Set-up for each client.