MCP toolsCognition toolsmemory_reasoning

memory_reasoning

Alpha, on the 3.6.x line. The API can still change within 3.x.

Stores a chain of reasoning (a question, the steps and the conclusion) so it can be reused. Before working through a problem, resolve checks whether a similar question was already answered.

Actions

actionNeedsWhat it does
resolvequeryLooks a question up in the stored reasoning.
recordquestion, chain, conclusionStores a chain, with an optional outcome.
feedbackreasoningId, outcomeRates a stored chain as success or fail.
createquestion, chain, conclusionCreates a reasoning record.
getidReturns one record.
listLists records. Filters: status, topicKeyFilter, limit.
patchidChanges status, chain, conclusion or metadata.
archiveidArchives the record.

Arguments

NameTypeRequiredDefaultNotes
actionstringyesOne of the eight actions above.
querystringper actionThe question to look up. For resolve.
questionstringper actionThe question reasoned about. Up to 20,000 characters.
chainobject[]per actionThe steps, in order. Each one is { "step", "reasoning", "conclusion" }; conclusion is optional. Up to 200 steps.
conclusionstringper actionWhere the reasoning ended.
reasoningIdstringper actionThe record to rate. For feedback.
outcomestringper actionsuccess or fail. Required for feedback, optional for record.
idstringper actionRecord id. For get, patch and archive.
topicKeystringnoGroups records about the same question. For create, record and resolve.
agentIdstringnoThe agent that reasoned. For create and record.
statusstringnoactive, archived, pruned, quarantined or golden. New status in patch, filter in list.
metadataobjectnoFor create and patch.
sensitivitystringnointernalFor create and record.
topicKeyFilterstringnoFor list: only records with this topic key.
limitintegernoFor list. 1 to 500.
targetWorkspaceIdstringnoFor create only, not for record. UUID of another workspace where you have write access.

Example

{
  "name": "memory_reasoning",
  "arguments": {
    "action": "resolve",
    "query": "Why does a Larkspur picker robot stall after a firmware update?"
  }
}

Returns

resolve returns an action field. hit means a stored chain matches, and the response carries reasoning_id, cached_cot (the steps) and conclusion. execute means nothing matched and the agent should reason it through; similar_attempts can list near matches.

{
  "action": "hit",
  "reasoning_id": "<reasoning id>",
  "cached_cot": [
    { "step": 0, "reasoning": "The stall starts right after the update, so compare the motor controller config before and after." },
    { "step": 1, "reasoning": "Firmware 4.2 resets the torque limit to the factory value.", "conclusion": "The torque limit is too low for loaded bins." }
  ],
  "conclusion": "Restore the torque limit after each firmware update."
}

create, record, get and patch return the reasoning record, with successCount, failureCount and worth. archive returns { "id", "archived": true }.

Reasoning records are indexed but not returned by a default recall. Pass kinds: ["reasoning"] to memory_recall to include them.

  • CoT distillation, the concept
  • REST: POST /reasoning/resolve, POST /reasoning/record, POST /reasoning/feedback