Lore DB | Docs

MCP Tools Reference

Lore DB exposes 18 MCP tools when connected. Here’s the complete reference.

Document tools

create_doc

Create and store a document. By default it is added to your Personal library. Optionally specify a library_id to add it to a specific library. Long documents are automatically split into overlapping chunks for better search coverage.

ParameterTypeRequiredDescription
document_namestringYesTitle of the document
document_contentstringYesMarkdown content
library_idstringNoTarget library (defaults to Personal)
restrictedbooleanNoMark as restricted access

read_doc

Read a specific document from Lore DB. Returns the full title and content.

ParameterTypeRequiredDescription
document_idstringYesUUID of the document

update_doc

Update an existing document, replacing the current content. Chunks and embeddings are automatically regenerated.

ParameterTypeRequiredDescription
document_idstringYesUUID of the document
document_contentstringYesNew markdown content

delete_doc

Delete a document from Lore DB permanently.

ParameterTypeRequiredDescription
document_idstringYesUUID of the document

verify_doc

Mark a document as verified — bumps its verified_at timestamp without changing content. Freshly verified documents rank higher in search.

ParameterTypeRequiredDescription
document_idstringYesUUID of the document

Search & AI tools

search_doc

Hybrid search (semantic similarity + keyword matching + freshness ranking). Returns ranked results with id, title, and score.

ParameterTypeRequiredDescription
document_querystringYesNatural language search query
library_idstringNoScope to a specific library
system_idstringNoScope to a specific system

ask_doc

Ask a question and get an AI-generated answer based on your documents. Uses RAG: retrieves relevant documents via hybrid search, then generates an answer grounded in their content.

ParameterTypeRequiredDescription
questionstringYesNatural language question
library_idstringNoScope to a specific library
system_idstringNoScope to a specific system

Library tools

list_libraries

List all libraries the user is a member of. Shows which libraries are active (included in search/ask).

No parameters.

create_library

Create a new library. The caller becomes the owner.

ParameterTypeRequiredDescription
namestringYesLibrary name
descriptionstringNoLibrary description

add_doc_to_library

Add a document to a library. The document must be accessible to you.

ParameterTypeRequiredDescription
document_idstringYesUUID of the document
library_idstringYesUUID of the library

remove_doc_from_library

Remove a document from a library. Requires editor or owner role.

ParameterTypeRequiredDescription
document_idstringYesUUID of the document
library_idstringYesUUID of the library

move_doc_between_libraries

Move a document from one library to another. Requires editor/owner role in both libraries.

ParameterTypeRequiredDescription
document_idstringYesUUID of the document
from_library_idstringYesSource library UUID
to_library_idstringYesDestination library UUID

System tools

list_systems

List all systems the user is a member of. Shows which systems are active.

No parameters.

create_system

Create a new system (a grouping of libraries). The caller becomes the owner.

ParameterTypeRequiredDescription
namestringYesSystem name
descriptionstringNoSystem description

add_library_to_system

Add a library to a system. Requires editor or owner role in the system, and membership in the library.

ParameterTypeRequiredDescription
system_idstringYesUUID of the system
library_idstringYesUUID of the library

remove_library_from_system

Remove a library from a system. Requires editor or owner role in the system.

ParameterTypeRequiredDescription
system_idstringYesUUID of the system
library_idstringYesUUID of the library

reindex_documents

Re-chunk and re-embed all documents. Admin only. Run this after deploying chunking changes or changing the embedding model. This is a heavy operation.

No parameters. Requires admin access.

Use list_libraries and list_systems to discover IDs, then pass them to search_doc or ask_doc to scope your queries.