AI & MCP

AI & MCP

Listrar provides an AI-native interface for accessing structured product information through the Model Context Protocol. The MCP server exposes 18 read-only tools over the same API-key-authenticated surface as the REST API — no separate credential, no write access.

Running the server

The server is a stdio MCP server. Configure it with two environment variables:

Environment

LISTRAR_API_URL=https://dashboard.listrar.com
LISTRAR_API_KEY=lsk_live_...

LISTRAR_API_KEY is a tenant-scoped API key (Settings → API Keys in the dashboard) — the server resolves your tenant from the key, so no separate tenant ID configuration is needed.

Tools

ToolDescription
search_productsSearch a tenant's currently-published catalogue. Returns agent-ready product listings (gtin, title, price, availability, image, resolvable URL, passportVersion, publishedAt) with a data-quality note.
search_directorySearch the PUBLIC cross-tenant directory of all published Digital Product Passports — the same corpus humans browse at /{locale}/directory (e.g. /en/directory). Filter by brand, taxonomy sector/category/family code, or passport kind (e.g. battery). Returns public-audience fields plus a resolvable passport URL.
get_productFetch a single currently-published product by GTIN or GS1 Digital Link — model level (/01/{gtin}) or item level (/01/{gtin}/21/{serial}). Item identifiers return the item projection: the model data plus serial, batch, manufacture date and state of health. Includes passportVersion and publishedAt for the passport version this listing reflects.
get_dppFetch the full Schema.org + DPP JSON-LD for a product by GTIN or GS1 Digital Link, at a given audience tier (public/customs/recycler/regulator, default public).
get_compliance_statusFetch the latest per-regulation compliance snapshot (score + gaps) for a product by GTIN or GS1 Digital Link.
list_regulation_alertsList sent regulatory alerts affecting the tenant's products (new/changed regulations, effective dates, required actions).
get_requirementsGiven a product category, jurisdiction and date, return the exact set of regulatory requirements that apply and the data points each demands — 'what does this product owe, and by when'.
classify_productAuto-classify a product (name/description/attributes) into the Listrar taxonomy: top-3 candidates with confidence and rationale, mapped CN/HS-style external codes, and the regulatory requirements each candidate owes. Assistive output — final code selection is the declarant's responsibility.
resolve_productResolve a GTIN or GS1 Digital Link URL to the published product it identifies. Returns null-equivalent text when nothing resolves.
get_product_recordThe consolidated registry record: record status (registry lifecycle), data verification (how well claims are substantiated) and legal assessment (whether an assessment exists) as three SEPARATE axes, plus regulatory basis and coverage, evidence, verifications, traceability, change history and content hash. An active record does not mean the product is lawful.
get_regulatory_statusWhich regulatory requirements were determined applicable to a product and why, plus whether a legal assessment exists and how complete it is. Does NOT state whether the product is compliant — Listrar operates a registry and is not a certification body or public authority.
get_regulatory_basisThe legal instruments this record is read against — regulation, citation, jurisdiction, version and effective date — as seeded in the registry. Never inferred: absent values are reported as null.
get_claimsEvery claimed data point with its substantiation tier (unverified, self_declared, document_backed, verified, independently_verified), plus the record-level summary. The summary reports the WEAKEST claim, not the strongest.
get_evidenceDocuments on record for this product (declarations of conformity, certificates, test reports), with their type and reference where available.
get_verificationsActs of verification performed against this record's claims: method, verifier, dates and reference. Revoked and expired verifications are RETAINED and reported with their dates, so 'never verified' can be told apart from 'verification withdrawn'.
get_related_productsTraceability relations from this record to others (component_of, contains, derived_from, replaces, supersedes, related_passport).
get_record_historyImmutable, hash-chained history of what the record contained at each change, newest first (versions), plus which of those changes were actually published (publications): each entry's version, publishedAt, status and content hash. Each version entry pins its predecessor's content hash, so an altered or removed entry breaks the chain.
verify_recordRun the registry's integrity checks on a record: registry identity, content hash, version-chain continuity, currency of verifications, and whether applicability was evaluated. Verifies the RECORD — not the accuracy of its data, and NOT legal compliance. The response carries a scope block stating exactly that.

AI safety

Listrar distinguishes product information from potentially untrusted third-party content. Applications and AI agents should treat externally sourced content according to its declared trust and provenance context — the claims substantiation tiers described in Registry record exist precisely so an agent can tell a substantiated claim from an assertion, rather than treating every field on a record as equally certain.

Not a compliance verdict

None of these tools returns a compliance verdict. get_regulatory_status reports whether an assessment exists and which requirements were determined applicable; verify_record reports record integrity. Neither states whether a product is lawful, and their payloads carry the machine-readable flags that say so. Listrar operates a registry and is not a public authority, notified body or certification body.

AI & MCP | Listrar Docs | Listrar