Skip to main content
Glama

memorise

Destructive

Saves or deletes code flows and adds, edits or retires notes, so they persist for later sessions and come back through recall. Use it to record how a feature flows or a decision the code does not state.

Instructions

Saves or deletes a flow, or adds and maintains a note. Kept for later sessions and returned by recall. FLOWS: one trigger to one outcome as ordered method steps. STEPS, one per line: 'path:Type.Member', indented 2 spaces under the step that calls it; the first line is the only trigger. After a step add ~event, ~http, ~ui, ~di or ~job for a link a direct call cannot show, and ' | label' for why it matters. Each new step must exist in the code now and each new link must be a call the code makes; otherwise nothing is saved and the reply lists the problems. action='save_feature_map': create with name, summary and steps. To change a flow, read it with recall and send its whole new steps with expectedVersion (the v shown); newName renames it. If the flow changed since you read it, nothing is saved and the reply shows the current flow to merge with. A new flow that starts at the same step as another is refused unless distinct says how it differs. action='delete_feature_map' with name: removes a flow for good (its notes are kept, detached). NOTES: one idea in plain words that the code does not say: why it is so, a gotcha, a convention, a decision, how to do something. Not a restatement of the code. Search first (recall list with a query) and confirm or edit an existing note instead of adding a duplicate. action='add_note' with note and kind; anchor: name (a flow) and step (one of its steps, as recall shows it) for a step note, name alone for a flow note, neither for a workspace note (optionally about='path' or 'path:Type.Member'). action='edit_note' with noteId and note (a new revision; the old one is kept). action='retire_note' with noteId. action='confirm_note' with noteId after you checked a note marked may be stale against the code and it still holds. You may edit, retire or confirm only notes you wrote; never the owner's or another author's. Text that looks like a secret is refused. WHEN TO SAVE A FLOW: after a change that adds, removes, renames or moves steps, or for a new trigger. An edit inside a step needs no save. RETURNS: what was saved (ids and versions), or the refusal with what to fix.

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": {
      "workspace": "<workspace>",
      "action": "<action>"
    },
    "name": "memorise"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoadd_note, edit_note: note (default), why, gotcha, convention, decision or howto
nameNoThe flow's name: lowercase letters, digits and '-' (at most 60 characters), after the trigger, e.g. 'memorise-save'. add_note: the flow the note is on; leave out for a workspace note
noteNoadd_note, edit_note: the note, one idea in plain words (at most 1200 characters)
stepNoadd_note: one step of the flow named by name, exactly as recall shows it ('path:Type.Member')
aboutNoadd_note without name: what the workspace note is about, 'path' or 'path:Type.Member'
guideNotrue: put the code guide first in the result. Use on your first code call, or when told it changed.
stepsNosave: the steps, one per line, e.g. 'src/Orders/OrderService.cs:OrderService.Place | totals are computed here', indented under the step that calls them. At most 30 steps, 8 levels
actionYes'save_feature_map', 'delete_feature_map', 'add_note', 'edit_note', 'retire_note' or 'confirm_note'
noteIdNoedit_note, retire_note, confirm_note: the note's id (the number after 'note #')
newNameNosave, with expectedVersion: a new name for the flow
summaryNosave: one or two sentences on what the flow does, from trigger to outcome (at most 300 characters). Required to create; left out when changing, the old one stays
distinctNosave, to create: how this flow differs from another that starts at the same step (at most 120 characters)
workspaceYesWorkspace name as shown in Waymark (a single workspace; '*' is not accepted)
expectedVersionNosave: the version (v) of the flow you read with recall. Leave out to create a new flow

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.2.3
    • addedInput schema / properties / about
      Added value: +{
      +  "default": null,
      +  "description": "add_note without name: what the workspace note is about, 'path' or 'path:Type.Member'",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / action / description
      Previous value: -"'save_feature_map' or 'delete_feature_map'"New value: +"'save_feature_map', 'delete_feature_map', 'add_note', 'edit_note', 'retire_note' or 'confirm_note'"
    • addedInput schema / properties / kind
      Added value: +{
      +  "default": null,
      +  "description": "add_note, edit_note: note (default), why, gotcha, convention, decision or howto",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / name / description
      Previous value: -"The flow's name: lowercase letters, digits and '-' (at most 60 characters), after the trigger, e.g. 'memorise-save'"New value: +"The flow's name: lowercase letters, digits and '-' (at most 60 characters), after the trigger, e.g. 'memorise-save'. add_note: the flow the note is on; leave out for a workspace note"
    • addedInput schema / properties / note
      Added value: +{
      +  "default": null,
      +  "description": "add_note, edit_note: the note, one idea in plain words (at most 1200 characters)",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / noteId
      Added value: +{
      +  "default": null,
      +  "description": "edit_note, retire_note, confirm_note: the note's id (the number after 'note #')",
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / step
      Added value: +{
      +  "default": null,
      +  "description": "add_note: one step of the flow named by name, exactly as recall shows it ('path:Type.Member')",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observedv0.2.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations flag destructiveHint=true, and the description goes well beyond them: delete 'removes a flow for good (its notes are kept, detached)', saves are validated so 'nothing is saved and the reply lists the problems', optimistic concurrency via expectedVersion returns the current flow to merge, duplicate triggers are refused unless distinct is supplied, secrets are refused, and edit_note keeps the old revision. This is exactly the mutation-risk context annotations cannot carry.

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?

Front-loaded purpose sentence followed by labeled sections (FLOWS, NOTES, WHEN TO SAVE A FLOW, RETURNS) that map cleanly onto the six actions. The prose is dense and some formatting rules are repeated between the FLOWS block and the steps schema, so it is thorough rather than tight, but almost every line carries operational content.

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

Completeness5/5

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

For a 14-parameter, six-action mutation tool with no output schema, the description covers validation failures, version conflicts, authorship limits, secret rejection, and a RETURNS section describing success and refusal shapes. Nothing an agent needs to invoke it correctly appears to be missing.

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

Parameters4/5

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

Schema coverage is 100% so the baseline is 3, but the description adds real syntax the schema lacks: the 'path:Type.Member' step grammar, two-space indentation for nested steps, '~event/~http/~ui/~di/~job' link markers and ' | label' rationale markers, and that the first line is the only trigger. It also explains expectedVersion/newName/distinct interactions. It does not restate the kind or name value sets beyond the schema, so it falls short of a 5.

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?

Opens with a specific verb+resource statement ('Saves or deletes a flow, or adds and maintains a note') and immediately names the sibling that reads it back ('returned by recall'), then enumerates every action. An agent can distinguish this write-side tool from recall and from the code_* tools without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit when/when-not rules: 'WHEN TO SAVE A FLOW: after a change that adds, removes, renames or moves steps... An edit inside a step needs no save.' It also routes note creation through a duplicate check ('Search first (recall list with a query) and confirm or edit an existing note instead of adding a duplicate') and states an exclusion ('never the owner's or another author's').

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