Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as FlowState Hosted. If you published it, claim ownership there.

manage_memory

Destructive

Memory import, export, set-aside and wipe. preview_import: a markdown file of records without writing. import_markdown: writes them (an edited FlowState markdown export). export: JSON or markdown. set_aside / restore_aside / list_aside: hide or bring back a record (type + id). delete: every record except rules after a safety copy (clear_rules=true includes them); the answer includes the undo identifier. delete waits for the user's approval when approvals are on (the item then appears in the review queue, and the answer's next line names it). Requires project. Returns counts and ids.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>",
      "project": "<project>"
    },
    "name": "manage_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNostale: unchecked for this many days. Default 60.
kindNoimport (memory format): record kind for each memory. Default learning.
textNoimport: the file contents. Max 200,000 chars.
kindsNocleanup: which checks. Omit for all three.
limitNostale: max facts. Default 20.
modelNoModel name if known. Unknown names are omitted.
pathsNofiles_changed (required): the files you changed, repo-relative.
actionYesThe operation; see the tool description.
formatNoimport: memory (default; one memory per line or bullet) or flowstate_markdown (an edited FlowState markdown export).
originNoimport: where it came from, such as Claude or ChatGPT.
reasonNoset_aside (required): why the record no longer applies.
sourceNoset_source (required) / mark_checked (optional): user_stated, ai_inferred or from_code.
projectYesProject name or id. Required.
record_idNodelete / mark_checked / set_source / set_aside / restore_set_aside: the record's id.
record_typeNodelete / mark_checked / set_source / set_aside / restore_set_aside: the record's type (all but delete: todo, decision, change, learning, problem, variable, method).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / model / description
      Previous value: -"Model name if known. Never guess."New value: +"Model name if known. Unknown names are omitted."
  2. First observed

TDQS

C2.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and readOnlyHint=false, so the destructive nature is known; the description does add real value by stating that delete makes a safety copy first, preserves rules unless clear_rules=true, returns an undo identifier, and blocks on user approval with a review-queue entry. Those are concrete behavioral details beyond the annotations. However, it contradicts the schema on the clear_rules parameter, which does not exist, and it omits behavior for several enum actions such as cleanup, stale and files_changed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The prose is dense but front-loads the resource scope reasonably, packing per-action notes into a compact block. The problem is not length but organization: actions are named with a different vocabulary than the enum, and action-specific notes sit in an undifferentiated run of semicolon-separated clauses, making lookup hard for a 9-action dispatcher.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 9 enum actions, 15 parameters and no output schema, the description should cover each action's required inputs and outcome; instead it fully explains only delete and set-aside while leaving stale, cleanup, mark_checked, set_source and files_changed unaddressed, and it references a nonexistent clear_rules parameter. The action-name mismatch compounds the incompleteness for a tool this complex.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every one of the 15 parameters, which sets the baseline at 3. The description adds some meaning, notably the type+id pairing for set-aside and the fact that delete returns an undo id, but it also invents a clear_rules=true flag absent from the schema, which actively misleads an agent about the parameter surface.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names the resource (memory) and four operations (import, export, set-aside, wipe), but the tool is a multi-action dispatcher whose actual scope is broader than that opening line. The description does enumerate per-action behaviors, yet the naming is inconsistent with the schema: the description calls actions preview_import, import_markdown, export, restore_aside and list_aside, while the enum offers only stale, cleanup, import, mark_checked, set_source, set_aside, restore_set_aside, files_changed, delete. An agent cannot reliably map the prose actions onto the enum values.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage guidance is fragmentary and only partial. It explains preview-before-import and that delete waits for approval, but it never says when to choose stale, cleanup, mark_checked, set_source or files_changed, and gives no guidance relative to siblings like manage_review or log_work. Several enum actions have no described condition for use at all.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources