Skip to main content
Glama

memory_manage

Destructive

Manage projects that contain thoughts: list, create, update, or delete projects and resolve local filesystem paths to their matching project.

Instructions

Manage projects — the containers thoughts belong to; the thoughts themselves are memory_recall and their writes memory_store. Every action answers in one envelope: list returns { items, meta }, the single-project actions return { item, meta }. Actions: list (each project's id, name, description and local_path — the way to resolve a path to its project), create, update, delete (preview→confirm).

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>"
    },
    "name": "memory_manage"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoREQUIRED for "create". OPTIONAL for "update". REJECTED for "list" and "delete".
actionYesAction
fieldsNoFields to include in output; intersected with available columns. OPTIONAL for "list". REJECTED for all other actions.
confirmNoCONSUMED by "delete" (true executes; false/omitted previews). REJECTED for all other actions.
local_pathNoLocal filesystem path. OPTIONAL for "create" and "update". REJECTED for "list" and "delete".
project_idNoREQUIRED ONLY for "update" and "delete". REJECTED for "list" and "create".
descriptionNoProject description. OPTIONAL for "create" and "update". REJECTED for "list" and "delete".
preview_tokenNoOPTIONAL preview token returned by a prior preview. CONSUMED by "delete" (true executes with token validation; missing/stale fails). REJECTED for all other actions.

Output Schema

NameRequiredDescriptionDefault
resultYesAction payload (structuredContent.result); JSON mirror of content[].text, except the raw-text config action, whose result is { item: { text }, meta }

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.26.6
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "list",
      -  "create",
      -  "update",
      -  "delete",
      -  "resolve"
      -]New value: +[
      +  "list",
      +  "create",
      +  "update",
      +  "delete"
      +]
    • removedInput schema / properties / cwd
      Removed value: -{
      -  "description": "REQUIRED for \"resolve\": the working directory path to resolve. ACCEPTED AND IGNORED for all other actions.",
      -  "type": "string"
      -}
    • changedInput schema / properties / description / description
      Previous value: -"Project description. OPTIONAL for \"create\" and \"update\". REJECTED for \"list\", \"delete\", \"resolve\"."New value: +"Project description. OPTIONAL for \"create\" and \"update\". REJECTED for \"list\" and \"delete\"."
    • changedInput schema / properties / local_path / description
      Previous value: -"Local filesystem path. OPTIONAL for \"create\" and \"update\". REJECTED for \"list\", \"delete\", \"resolve\"."New value: +"Local filesystem path. OPTIONAL for \"create\" and \"update\". REJECTED for \"list\" and \"delete\"."
    • changedInput schema / properties / name / description
      Previous value: -"REQUIRED for \"create\". OPTIONAL for \"update\". REJECTED for \"list\", \"delete\", \"resolve\"."New value: +"REQUIRED for \"create\". OPTIONAL for \"update\". REJECTED for \"list\" and \"delete\"."
    • changedInput schema / properties / project_id / description
      Previous value: -"REQUIRED ONLY for \"update\" and \"delete\". REJECTED for \"list\", \"create\", \"resolve\"."New value: +"REQUIRED ONLY for \"update\" and \"delete\". REJECTED for \"list\" and \"create\"."
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds real behavioral detail beyond them: the two-step preview→confirm protocol for delete and the exact response envelope per action (list returns { items, meta }; single-project actions return { item, meta }). It does not say what happens to residual data after delete or whether updates are partial, which keeps it at 4.

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

Conciseness4/5

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

Information is front-loaded: resource definition, sibling routing, envelope contract, then the action list with the one non-obvious workflow inline. The prose is dense but every clause carries signal; the only cost is that the action list is embedded in a single long sentence rather than visually separated.

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

Completeness4/5

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

For a multi-action tool with 8 parameters and an output schema, the description covers the routing decision, the destructive workflow, and the shape distinction between list and single-item responses. With an output schema present, return-value detail is not required, and nothing essential to correct invocation is missing.

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 coverage is 100%, and the schema already documents per-action parameter applicability in detail, so the baseline applies. The description adds some mapping value by tying list output to id, name, description and local_path, and by tying delete to the confirm flow, but it does not clarify semantics the schema leaves implicit.

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

Purpose5/5

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

The description states the resource explicitly (projects, defined as containers thoughts belong to) and enumerates every action: list, create, update, delete. It also distinguishes the tool from its siblings by naming memory_recall for reads and memory_store for writes, so an agent can tell which tool owns which object without opening a schema.

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

Usage Guidelines4/5

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

Guidance is concrete: use this for project containers, use memory_recall/memory_store for thoughts, and use list to resolve a filesystem path to its project via local_path. The delete flow is flagged as preview→confirm. There is no explicit statement of when not to use it or prerequisites, keeping it just short of a 5.

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