Knowledge Base tools
Base product reference. Discover the live schema before a call; project, role and release settings can change availability.
knowledge_append_table_rows
Add rows to the end of a table: a CSV document in the project's Knowledge Base (one made with knowledge_create_table, or an uploaded .csv). Use it instead of rewriting the document with knowledge_update_document: only the rows are sent, and two agents adding rows at the same time both land. Each row names its columns; a column the table doesn't have is refused, with the columns it does have. After an error you couldn't read the answer to, query the table before adding again, so a row isn't added twice. Whoever added the table, a Team Lead or the Organization Admin writes at once (a new version of the document); anyone else's change is proposed and waits to be approved (the answer then has proposal). Refused if a value looks like a key, token or password. The answer is a summary, not the table: read it with knowledge_query_table. Returns rowsAdded, rowCount and the new version.
declare const tools: { mcp__MassifyAI__knowledge_append_table_rows(args: {
// The CSV document's id, e.g. doc_k3x9…
id: string;
// Rows as objects of column name to value, e.g. [{"id": "r12", "qubits": 2900000, "verdict": "keep"}]; a column left out or null is an empty cell. At most 500
rows: Array<{ [key: string]: string | number | boolean | null; }>;
}): Promise<CallToolResult>; };
knowledge_create_folder
Create a folder in the project's Knowledge Base for your current project, by path ("Runbooks/Database"); missing parent folders are created too, and an existing one is answered as it is. Names are 1 to 120 characters without "/", unique among their siblings ignoring case, at most 8 levels deep. Only a project editor or admin can.
declare const tools: { mcp__MassifyAI__knowledge_create_folder(args: {
// The folder's path, e.g. "Runbooks/Database"
path: string;
}): Promise<CallToolResult>; };
knowledge_create_table
Create a table in the project's Knowledge Base for your current project: a CSV document with these columns and, optionally, its first rows. Use it for anything people and agents keep adding to and asking about: an experiment log, a results table, a decision or route register, a risk list. Then add rows with knowledge_append_table_rows, change them with knowledge_update_table_rows, and ask questions with knowledge_query_table (SQL), so no one rewrites the whole document. Give each row a column with a unique value (an id) so rows can be changed later. Pass folder (a path like "Research/Results") to file it; missing folders are made. Only a project editor or admin can create one. Returns its id and consolePath, its page in the console; the hub adds consoleUrl: show that link to the person.
declare const tools: { mcp__MassifyAI__knowledge_create_table(args: {
// The column names, in order, e.g. ["id", "route", "qubits", "verdict"]
columns: Array<string>;
// The folder to save it in, as a path ("Research/Results"); missing folders are made
folder?: string;
// Rows as objects of column name to value, e.g. [{"id": "r12", "qubits": 2900000, "verdict": "keep"}]; a column left out or null is an empty cell. At most 500
rows?: Array<{ [key: string]: string | number | boolean | null; }>;
// A clear title, e.g. "Route ledger"
title: string;
}): Promise<CallToolResult>; };
knowledge_get_document
Read one document from the project's Knowledge Base (runbooks, design docs, guides): its title and text (Markdown or plain text). Use the id agents_load gave you for a document context source, or one from knowledge_list_documents. Only documents in your current project are visible; anything else answers not_found. A long document comes in parts: the reply carries totalChars and nextOffset, and while nextOffset is not null, call again with offset set to it to read on. If version changes between parts, the document changed: read it again from offset 0. If a part is still too long for you, pass a smaller maxChars. An image document (fileType png, jpeg, gif, webp, bmp, tiff or heic) has a short description as its text and comes with the picture itself, after the text (image.sent true); when it can't be sent (TIFF, HEIC, or over about 5 MB), image.reason says why. content null (readable false) means the text is withheld, not that it ended: say so rather than using what you read. path is the folder it is in ("Runbooks/Database"; "" at the top level; null for one shared in from another project). consolePath is the document's page in the console; the hub adds consoleUrl, its full address: show that link to the person.
declare const tools: { mcp__MassifyAI__knowledge_get_document(args: {
// The document id, e.g. doc_k3x9…
id: string;
// Most characters in one part, default 12000
maxChars?: number;
// Where to start, in characters: 0 (the default), or nextOffset from the previous part
offset?: number;
}): Promise<CallToolResult>; };
knowledge_list_documents
List the documents in the project's Knowledge Base for your current project, newest first: id, title, format, path (the folder it is in, e.g. "Runbooks/Database"; "" at the top level; null for one shared in from another project) and when each was updated, without their text (read one with knowledge_get_document). Without folder, every document; with it, only those directly in that folder. Pass nextCursor back as cursor for the next page.
declare const tools: { mcp__MassifyAI__knowledge_list_documents(args: {
// nextCursor from the previous page
cursor?: string;
// A folder, by path ("Runbooks/Database", names ignoring case) or by id; "/" is the top level
folder?: string;
// Page size, default 50
limit?: number;
}): Promise<CallToolResult>; };
knowledge_list_folders
List the folders of the project's Knowledge Base for your current project as a tree: each with id, name, path ("Runbooks/Database"), documentCount and folderCount (directly inside) and children. Without folder, from the top level; with it, below that folder. depth limits how many levels come back (all by default); a folder at the last level has no children listed, and its folderCount says how many are below. Use the paths with knowledge_list_documents, knowledge_search, knowledge_move and knowledge_save_document.
declare const tools: { mcp__MassifyAI__knowledge_list_folders(args: {
// How many levels below to list, 1 to 8 (default: all)
depth?: number;
// A folder, by path ("Runbooks/Database", names ignoring case) or by id; "/" is the top level
folder?: string;
}): Promise<CallToolResult>; };
knowledge_move
Move documents and folders of the project's Knowledge Base for your current project into a folder (to: a path, an id, or "/" for the top level), as the console does. Any document can be filed, uploaded files and Google Drive documents too: a move changes no text and needs no approval. A folder takes everything inside it, can't go into itself or a folder under it, must stay within 8 levels, and can't take a name a folder there already has. A document shared in from another project can't be moved. All or nothing: if anything can't move, nothing moves. Only a project editor or admin can.
declare const tools: { mcp__MassifyAI__knowledge_move(args: {
// Document ids
documents?: Array<string>;
// Folders, by path or id
folders?: Array<string>;
// A folder, by path ("Runbooks/Database", names ignoring case) or by id; "/" is the top level
to: string;
}): Promise<CallToolResult>; };
knowledge_query_table
Ask a table a question with SQL: one SELECT over a CSV document in the project's Knowledge Base, which the query sees as the table t. Use it instead of reading the whole document, e.g. SELECT id, qubits FROM t WHERE verdict = 'keep' ORDER BY qubits LIMIT 5, or SELECT verdict, count(*) FROM t GROUP BY verdict. DuckDB SQL; column names with spaces or capitals go in double quotes. A column whose filled cells are all numbers is a number column, all dates (2026-10-25) a date column, anything else text; an empty cell is NULL. The answer has table.columns (each column's name and type), rows, and nextOffset: while it isn't null, call again with offset set to it for more. Only a SELECT is run, over 5 seconds it is stopped, and nothing outside the table can be read. Queries from your organization run one at a time: another one waits its turn, and busy means none finished in time, so try again. Change the table with knowledge_append_table_rows and knowledge_update_table_rows. Only documents in your current project are visible.
declare const tools: { mcp__MassifyAI__knowledge_query_table(args: {
// The CSV document's id, e.g. doc_k3x9…
id: string;
// Most rows in this answer, default 100
limit?: number;
// Most characters of rows in this answer, default 12000
maxChars?: number;
// Rows to skip: 0 (the default), or nextOffset from the previous answer; at most 10000
offset?: number;
// One SELECT (or WITH ... SELECT) over the table t
sql: string;
}): Promise<CallToolResult>; };
knowledge_rename_folder
Rename a folder of the project's Knowledge Base for your current project, as the console does: 1 to 120 characters without "/", not a name a sibling folder already has (ignoring case). Its documents and folders stay inside it. Only a project editor or admin can.
declare const tools: { mcp__MassifyAI__knowledge_rename_folder(args: {
// A folder, by path ("Runbooks/Database", names ignoring case) or by id; "/" is the top level
folder: string;
// The new name
name: string;
}): Promise<CallToolResult>; };
knowledge_save_document
Save a document to the project's Knowledge Base for your current project: a runbook, design doc, guide or decision, as Markdown. For a table that people and agents keep adding rows to (an experiment log, results, decisions), use knowledge_create_table instead. Use it when the user asks to save something to the knowledge base, e.g. a doc written in this session or a file from this repository (read the file and pass its text). It always adds a new document: first search with knowledge_search, and if the document already exists, change it with knowledge_update_document instead. Give it a clear title. Pass folder (a path like "Runbooks/Database") to file it in a folder; folders that don't exist yet are made (names of 1 to 120 characters, without "/", at most 8 levels deep); without it, it goes at the top level. Only a project editor or admin can save; refused if the text looks like it contains a key, token or password. Returns the new document's id, its path, and consolePath, its page in the console; the hub adds consoleUrl, its full address: show that link to the person, who can link the document to an agent profile there.
declare const tools: { mcp__MassifyAI__knowledge_save_document(args: {
// The document, as Markdown (at most 1 MB)
content: string;
// The folder to save it in, as a path ("Runbooks/Database"); missing folders are made
folder?: string;
// A clear title, e.g. "EdgeCloud on-call runbook"
title: string;
}): Promise<CallToolResult>; };
knowledge_search
Search the project's Knowledge Base for your current project by words in a document's title, text or folder names, best match first: id, title, format, path (its folder, e.g. "Runbooks/Database"; "" at the top level; null for one shared in from another project) and when each was updated, without their text (read one with knowledge_get_document); and, as folders, the folders whose name matches. A title holding the typed text comes first, then documents matching more of the words. Typos and partial words are corrected to words the documents use. Pass folder to search only that folder and the folders under it. Use it to find a runbook, design doc or guide before you read it; knowledge_list_documents lists them all by date instead.
declare const tools: { mcp__MassifyAI__knowledge_search(args: {
// A folder, by path ("Runbooks/Database", names ignoring case) or by id; "/" is the top level
folder?: string;
// Most documents to return, default 20
limit?: number;
// The words to look for, e.g. "deploy rollback"
query: string;
}): Promise<CallToolResult>; };
knowledge_trash
Move documents and folders of the project's Knowledge Base for your current project to the trash, as the console's Delete does. A document named directly can only be trashed by whoever added it, a Team Lead or the Organization Admin. A folder can be trashed by any project editor or admin, and it takes every folder and document inside it, whoever added them. A document shared in from another project can't be trashed here. All or nothing: everything is checked first, and if any can't go, none does. Everything trashed can be restored for 30 days from Recently deleted in the console (a folder with everything that went with it). Nothing is deleted for good here: that is only in the console, by someone with the right to delete everything inside.
declare const tools: { mcp__MassifyAI__knowledge_trash(args: {
// Document ids
documents?: Array<string>;
// Folders, by path or id
folders?: Array<string>;
}): Promise<CallToolResult>; };
knowledge_update_document
Change a document already in the project's Knowledge Base for your current project: its text (the whole new text: Markdown, or for an uploaded .txt or .csv file its plain text or CSV), its title, or the folder it is in (a path like "Runbooks/Database" or a folder id; "/" for the top level; the folder must exist). Read it first with knowledge_get_document and pass its version as baseVersion, so a change someone made meanwhile isn't overwritten (version_conflict means read it again). Whoever added it, a Team Lead or the Organization Admin changes it at once (a new version); anyone else who may write proposes the change, which waits to be approved: the answer then has proposal and pendingVersion, and version stays as it was (a move to another folder is made at once either way). Only documents written as text can be changed here: typed, saved from a session, or an uploaded Markdown (.md, .markdown), plain text (.txt) or CSV (.csv) file with up to 1,000,000 bytes of text, whose stored file is then rewritten from the new text, as UTF-8 with LF line ends (for a CSV, send the whole file as CSV). An upload that wasn't saved as UTF-8 can't be changed here. For a table that people and agents keep up to date, prefer a CSV: an Excel or other spreadsheet's text is a summary of its cells and can't be changed here. To add or change rows of a CSV, use knowledge_append_table_rows or knowledge_update_table_rows rather than rewriting the whole text here. Any other uploaded file, a bigger text upload or a Google Drive document can't be changed through this tool at all, not even its title or folder: file it in a folder with knowledge_move (any document of this project, with no approval); its title is changed in the console (at once by whoever added it, a Team Lead or the Organization Admin; as a proposal by any other editor); a Google document's text is edited in Google Drive; any other upload's text only by uploading the changed file as a new document in the console. Refused if the text looks like it contains a key, token or password. Returns the document as knowledge_get_document does, with consolePath: show the person that link.
declare const tools: { mcp__MassifyAI__knowledge_update_document(args: {
// The version you read; the change is refused if the document has moved on
baseVersion?: number;
// The whole new text (at most 1 MB): Markdown, or the plain text or CSV of an uploaded .txt or .csv file
content?: string;
// A folder, by path ("Runbooks/Database", names ignoring case) or by id; "/" is the top level
folder?: string;
// The document id, e.g. doc_k3x9…
id: string;
// A new title
title?: string;
}): Promise<CallToolResult>; };
knowledge_update_table_rows
Change rows of a table (a CSV document in the project's Knowledge Base) without rewriting it: each row given is found by its value in the key column (e.g. key "id"), and only the columns it names change. A row whose key matches nothing comes back in notFound and is never added (use knowledge_append_table_rows for new rows). Pass baseVersion, the version you read the table at: a row someone else changed since then comes back in conflicts with what it holds now, and is left alone while the other rows are written; read it again and redo just that row. Whoever added the table, a Team Lead or the Organization Admin writes at once (a new version of the document); anyone else's change is proposed and waits to be approved (the answer then has proposal). Refused if a value looks like a key, token or password. The answer is a summary, not the table: read it with knowledge_query_table. Returns updated (the keys changed), notFound and conflicts when there are any, and the new version.
declare const tools: { mcp__MassifyAI__knowledge_update_table_rows(args: {
// The version you read the table at (knowledge_get_document or knowledge_query_table answer it)
baseVersion?: number;
// The CSV document's id, e.g. doc_k3x9…
id: string;
// The column whose value finds each row, e.g. "id"; its values must be unique
key: string;
// Rows as objects of column name to value, e.g. [{"id": "r12", "qubits": 2900000, "verdict": "keep"}]; a column left out or null is an empty cell. At most 500
rows: Array<{ [key: string]: string | number | boolean | null; }>;
}): Promise<CallToolResult>; };