Knowledge base tools
MCP.Scientio.Com documentation

Knowledge bases (KBases)

A KBase is a container for your content. When you add content to a KBase it is chunked, embedded and indexed for retrieval, and a knowledge graph describing the concepts it contains is built alongside it. These tools let an agent create, remove, enumerate and describe KBases, change the metadata of one, and fill one from a PDF document or a web page. The identifier returned by these tools is the indexId used by nearly every other tool on this server.

CreateKBase

destructive

Creates a new, empty knowledge base owned by the calling account.

Parameters

NameTypeDescription
kbaseNamestringThe display name for the new knowledge base.

Returns

The Id of the newly created knowledge base. Keep it — it is the indexId that other tools expect.

UpdateKBaseMetadata

destructive

Changes the descriptive metadata of one of your knowledge bases: what it is called and describes, who wrote it, how it is licensed, and whether it is shared publicly. Every value except the Id is optional; omit a value, or pass null, to leave that part of the metadata as it is.

Parameters

NameTypeDescription
indexIdstringThe Id of the KBase to modify.
kbaseNamestringOptional. The name of the knowledge base.
authorstringOptional. The author of the knowledge base.
copyrightstringOptional. The copyright information of the knowledge base.
descriptionstringOptional. The description of the knowledge base.
isPublicWebsitebooleanOptional. true to publish the knowledge base as a public website.
showOnListbooleanOptional. true to allow the knowledge base to appear on the public list returned by ListOpenKBases.

Returns

true when the metadata was updated.

A KBase that does not exist, or that you do not own, fails with KBase not found.

DeleteKBase

destructive

Permanently deletes a knowledge base, together with its indexed content and knowledge graph. You can only delete knowledge bases that you own; deleting anything else fails with KBase not found.

Parameters

NameTypeDescription
kbaseIdstringThe Id of the KBase to delete.

Returns

true when the knowledge base was deleted.

ListKBases

read-only Try it

Lists every knowledge base belonging to the calling account. This is normally the first tool an agent calls.

Parameters

None.

Returns

A list of records, each containing:

FieldTypeDescription
IdstringThe Id of the knowledge base.
NamestringThe name of the knowledge base.
DescriptionstringThe description of the knowledge base, if one has been set.

ListOpenKBases

read-only Try it

Lists the publicly shared ("open") knowledge bases published on this server, whoever owns them. Use it to discover shared reference material that you can search or chat with, even though you cannot modify it.

Parameters

None.

Returns

A list of records with the same Id, Name and Description fields as ListKBases.

GetKBaseMetadata

read-only Try it

Gets the descriptive metadata held about one of your knowledge bases: what it is called and describes, who wrote it and how it is licensed. Use it when you need the author or copyright of a KBase, which ListKBases does not return.

Parameters

NameTypeDescription
kbaseIdstringThe Id of the KBase.

Returns

A record describing the knowledge base:

FieldTypeDescription
NamestringThe name of the knowledge base.
DescriptionstringThe description of the knowledge base, if one has been set.
AuthorstringThe author of the knowledge base, if one has been set.
CopyrightstringThe copyright information of the knowledge base, if any has been set.

A KBase that does not exist, or that you do not own, fails with KBase not found.

FillFromDocument

destructive

Fills a knowledge base from a PDF document. The document is read page by page, chunked, embedded and indexed, and its concepts are added to the knowledge graph of the KBase.

MCP tools cannot accept binary streams, so the document is not uploaded to the server. Instead it is supplied as a URL that the server can read from — a file share, blob storage or any other location the server can reach. If the client supplies a progress token, progress is reported back as MCP progress notifications as the pages are ingested.

Parameters

NameTypeDescription
indexIdstringThe Id of the KBase to add the document to.
fileNamestringThe file name of the document, which must be a PDF. e.g. handbook.pdf.
blobUrlstringThe url of the document in a file share, blob storage etc.
startintegerOptional. The page number to begin ingestion at. If omitted, ingestion starts at the first page.
endintegerOptional. The page number to end ingestion at. If omitted, ingestion continues to the last page.

Returns

The Id of the content added to the knowledge base.

A KBase that does not exist, or that you do not own, fails with KBase not found. A document that is not a PDF, a URL that is empty, or a page range that is not valid, fails with a description of the problem.

LoadFromWebsite

destructive

Fills a knowledge base from a web page. The page is read, chunked, embedded and indexed, a node representing the page is added to the knowledge graph of the KBase, and a topic node is created and connected to it for each topic found on the page.

Parameters

NameTypeDescription
indexIdstringThe Id of the KBase to add the web page to.
urlstringThe url of the web page to ingest.

Returns

The Id of the node created for the web page.

A KBase that does not exist, or that you do not own, fails with KBase not found. A url that is empty or is not a valid URL fails with a description of the problem.