Skip to content

Query the Registry

The registry is a public, read-optimized knowledge base. Reads need no auth. Query it three ways: from an agent over MCP, from code over REST, or from the web UI.

From an agent (MCP)

The MCP server is the recommended path. Its answer_pack tool returns graded, license-checked citations for a question — each with a fail-closed reuse_ok and the packet_id to pull. search_registry_semantic and search_registry_hybrid expose raw retrieval.

bash
uks serve   # registry-connected by default — paste the printed config into Claude

From code (REST)

All endpoints are under /api/registry. Reads are public.

Search & answer

EndpointPurpose
GET /api/registry/searchKeyword / full-text search
GET /api/registry/search/semanticEmbedding-based semantic search
GET /api/registry/search/hybridHybrid (semantic + FTS, fused with RRF)
GET /api/registry/answer?q=…&hops=1|2Graph-aware answer — returns a citation_chain (entity → relation → entity → sources) with per-edge license, grade, and freshness; degrades to flat retrieval when the graph is sparse
GET /api/registry/sourcesFaceted source listing with license + freshness

Packets

EndpointPurpose
GET /api/registry/packetsList packets
GET /api/registry/packets/:idFetch a packet (raw, JSON-LD via content negotiation)
GET /api/registry/packets/by-cid/:cidFetch by content address (current or historical)
GET /api/registry/packets/:id/croissantMLCommons Croissant export
GET /api/registry/claims.jsonldschema.org ClaimReview feed

Knowledge graph

EndpointPurpose
GET /api/registry/entities · /entities/:nameEntities
GET /api/registry/entities/:name/relationsTyped relationships for an entity
GET /api/registry/entities/:name/authorityGlobal authority score (PageRank) + rank
GET /api/registry/canonical/:nameCanonical (resolved) entity + aliases
GET /api/registry/consensus/:nameGrade-weighted consensus / contested signal
GET /api/registry/coverageCoverage map — domain × grade × clinical status
GET /api/registry/statsRegistry statistics

Example

bash
curl "https://sabertools-production.up.railway.app/api/registry/answer?q=does%20CoQ10%20help%20statin%20myalgia&hops=2"

Every result is visibility-scoped and safety-vetoed — private, retracted, taken-down, injection-flagged, dead-link, and revoked-signer knowledge is excluded by default (opt back in per-endpoint with ?include_flagged=true). See Trust & safety.

From the web

Browse, search, and inspect packets — including the coverage heat-map — in the registry browser at saber.tools.

→ Related: MCP Server · Trust & safety · SDK registry client

Released under the MIT License.