Skip to content

The MCP tools list: five memory, seven knowledge

Tool definitions

The twelve tools of the server "quelvio": five memory_* and seven knowledge_*. A person's own assistant is offered the seven knowledge_* tools only.

The twelve tools

Over MCP each tool returns a text block; the HTTP route at https://api.quelvio.com returns the JSON. The text holds only the sources' or the people's words, fixed lines and fields. Its first line inside the block says the words are records, not instructions.

ToolReturnsRuns
memory_startThe session id, then the rules block and the chosen memories0
memory_recallThe memories for a question and a step0
memory_save_turnFor a request: its id and context. For a reply: ok0
memory_endok0
memory_traceA memory's Memory trace: what happened to it, line by line, oldest first0
knowledge_scopeThe repositories the key may read, and until when0
knowledge_askThe answer: outcome, evidence, notes and the other lists1
knowledge_searchThe passages that match, in search order, with no judging1
knowledge_openOne passage by id, or a section's passages, each with whether it is still live and what replaced it0
knowledge_changesEvery change since a time, with a served flag1
knowledge_proposeA proposed correction, which changes nothing until a person accepts it0
knowledge_traceAn answer's Answer trace, by its answer id: how the answer was made, line by line0
  • Every tool takes session_id, the Quelvio session id from the line "Quelvio session: {id}" or from memory_start.
  • Every answer also holds consent: "none", "serve_only" or "full".
  • A run is one call to knowledge_ask, knowledge_search or knowledge_changes, answered. The other nine tools are free.
  • A person's own assistant signs in as that person, and is offered the seven knowledge_* tools only.

memory_start

Opens a session and returns the person's rules, then the memories for the request. A hook agent doesn't call it: memories already arrive at each prompt.

Arguments

ArgumentTypeCapIf missing
promptstringThe request, word for wordRequired
projectstringThe project idThe agent's default project
parentstringThe parent session idNo parent
session_idstringOn every call after the firstA new session

Returns

session_id, issued by the server; prompt_id; text, the whole rules block, then the chosen memories; degraded, and reason if degraded.

Runs 0

memory_recall

Asks memory a short question before a step. Rules not yet delivered come first. A question repeated within 10 minutes gets the same answer.

Arguments

ArgumentTypeCapIf missing
querystringA short questionRequired
stepstringWhat the agent is about to doRequired
session_idstringThe session idRequired

Returns

text and degraded. With nothing to add: "Nothing new in memory for this."

Runs 0

memory_save_turn

For agents without hooks: passes each request and each final reply. Where hooks capture the session, it stores nothing.

Arguments

ArgumentTypeCapIf missing
session_idstringThe session idRequired
kindstringprompt or replyRequired
speakerstringperson or agentRequired
textstringThe words, exactly as received or givenRequired
reply_tostringFor a reply: the id of the prompt it answersRequired for a reply

Returns

For a prompt: the prompt's id, text and degraded. For a reply: ok.

Runs 0

memory_end

For agents without hooks: closes the session.

Arguments

ArgumentTypeCapIf missing
session_idstringThe session idRequired

Returns

ok

Runs 0

memory_trace

Returns a memory's Memory trace: what happened to it, line by line, oldest first, in fixed words, then the numbers under Details. It is built when it is opened, and asks no model anything. It answers only for a memory in the session's audience; any other reference, a deleted or erased memory's included, gets the not-found sentence. On a hooks connection it answers, as memory_recall does.

Arguments

ArgumentTypeCapIf missing
session_idstringThe session idRequired
memorystringThe reference at the end of a memory's label, such as #k3x9vq, or the memory's idRequired
fromintegerThe line to start at1

Returns

text: one <quelvio-trace> block, the lines, then their Details, at most 2,000 tokens, ending "More: lines {n} to {m}. Call memory_trace with from {n}." when there is more. Over MCP, beside it, the same answer as structured content: records_notice, id, consent, lines and more. With no trace to show: "Quelvio has no trace of {ref} for this session."

Runs 0

knowledge_scope

Lists the repositories the key may read, and until when.

Arguments

ArgumentTypeCapIf missing
session_idstringOne idThe text block has no id

Returns

id; acting_for, a person or no one; agent, the key's agent; repositories, each with its id, name, via (person or grant) and until.

Runs 0

knowledge_ask

Returns the answer to a question. The answer is evidence, in the sources' own words.

Arguments

ArgumentTypeCapIf missing
questionstring2,000 characters422
repositoriesarray of repository ids20 idsEvery repository the key may read
as_ofdate, YYYY-MM-DDNot after todayThe time is read from the question
session_idstringOne idThe text block has no id

Returns

id; outcome: answered, partly answered, possible or not found; evidence, the passages that answer, each with its words, highlighted sentences, document, section, dates, status, authority and link; notes; related, the passages that may answer, or the nearest ones; documents; changes; search: full, or keywords only.

Runs 1

knowledge_open

Opens one passage by id, or the passages of one section of a document. This is how an agent checks that something still stands before acting on it.

Arguments

ArgumentTypeCapIf missing
passagestring, a passage idOne idGive this, or document with section
documentstring, a document idOne idAs above
sectionarray of strings, a heading path10 headingsThe whole document
limitinteger1 to 5050
cursorstringFrom the previous answerThe first page
session_idstringOne idThe text block has no id

Returns

id; passages, each with its place in the version, what replaced it and when, when it was removed, and since when a newer version has waited for approval; reading; cursor.

Runs 0

knowledge_changes

Lists every change since a time in the documents the key may read, newest first. served says whether this agent was served the old text. Nothing is pushed: each agent asks.

Arguments

ArgumentTypeCapIf missing
sincedate-timeNot in the future422
repositoriesarray of repository ids20 idsEvery repository the key may read
limitinteger1 to 5050
cursorstringFrom the previous answerThe first page
session_idstringOne idThe text block has no id

Returns

id; changes, each with its time, document, kind (reworded, changed, added, removed, moved, or a document added, removed, withdrawn or expired), the old and new words, served and withheld; until; cursor.

Runs 1

knowledge_propose

Proposes a correction to the sentences of one passage. It becomes a "Proposed by an agent" item for the repository's approvers and owners, and changes nothing until a person accepts it. An agent may have 20 open proposals in one repository.

Arguments

ArgumentTypeCapIf missing
passagestring, a passage idOne id422
textstring: the right words8,000 characters422
reasonstring1,000 characters422
request_idstring64 charactersA new call
session_idstringOne idThe text block has no id

Returns

id; received: true; proposal, its id; status: waiting for a person; redacted: true when scrubbing removed something.

Runs 0

knowledge_trace

Returns an answer's Answer trace: how it was made, line by line, oldest first, in fixed words, then the numbers under Details. It is built when it is opened, and asks no model anything. An answer id that is unknown, erased, or not the caller's to see gets what an unknown one gets.

Arguments

ArgumentTypeCapIf missing
answerstring, the answer id: the JSON's id, and the answer attribute of the answer's blockOne id422
frominteger, the line to start atAt least 11
session_idstringOne idThe text block has no id

Returns

id; lines, each {n, at, kind, words, details}, oldest first; more, the next line's number, or null at the end. The text is one <quelvio-knowledge> block of at most 2,000 tokens, ending "More: lines {n} to {m}. Call knowledge_trace with from {n}." when there is more. With no trace to show: an empty lines, and "Quelvio has no trace of {answer id} for you."

Runs 0