Skip to main content
Glama

Supersede workfile memory

project_memory_supersede

Atomically supersede one memory record with another, keeping the retired record readable. Both sides update together; the replacement must exist first.

Instructions

Supersede one memory record with another and update both sides atomically. Create the replacement first; neither record is deleted, so the superseded one stays readable and its ID keeps resolving.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesMemory record being retired.
replacementIdYesMemory record that replaces it. Must already exist.
expectedRevisionNoRevision string from an earlier read of this record. The write is refused if it no longer matches, so a concurrent edit is reported rather than overwritten. Omit to skip the check.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
recordYesThe superseded record.
replacementYesThe record that replaces it.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changedv0.5.4
    • addedInput schema / properties / expectedRevision / description
      Added value: +"Revision string from an earlier read of this record. The write is refused if it no longer matches, so a concurrent edit is reported rather than overwritten. Omit to skip the check."
    • addedInput schema / properties / id / description
      Added value: +"Memory record being retired."
    • addedInput schema / properties / replacementId / description
      Added value: +"Memory record that replaces it. Must already exist."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "record": {
      +      "additionalProperties": true,
      +      "description": "The superseded record.",
      +      "properties": {
      +        "archived": {
      +          "description": "Whether the record lives in the archive directory.",
      +          "type": "boolean"
      +        },
      +        "body": {
      +          "description": "Markdown body below the frontmatter.",
      +          "type": "string"
      +        },
      +        "created": {
      +          "description": "Creation date, YYYY-MM-DD.",
      +          "type": "string"
      +        },
      +        "file": {
      +          "description": "File name within the collection directory.",
      +          "type": "string"
      +        },
      +        "id": {
      +          "description": "Stable record ID.",
      +          "type": "string"
      +        },
      +        "incoming": {
      +          "description": "Backlinks: references other records make to this one.",
      +          "items": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "incomingTotal": {
      +          "description": "Total backlinks, which may exceed the returned page.",
      +          "type": "integer"
      +        },
      +        "issues": {
      +          "description": "Validation findings doctor would report for this record.",
      +          "items": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "kind": {
      +          "description": "Record family: card, doc, change, release or memory.",
      +          "type": "string"
      +        },
      +        "outgoing": {
      +          "description": "References this record makes to others.",
      +          "items": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "path": {
      +          "description": "Repository-relative path to the Markdown file.",
      +          "type": "string"
      +        },
      +        "recordType": {
      +          "description": "Type within the family.",
      +          "type": "string"
      +        },
      +        "revision": {
      +          "description": "Content hash to pass back as expectedRevision on the next write.",
      +          "type": "string"
      +        },
      +        "status": {
      +          "description": "Lifecycle status.",
      +          "type": "string"
      +        },
      +        "tags": {
      +          "description": "Free-form tags.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "title": {
      +          "description": "Human-readable title.",
      +          "type": "string"
      +        },
      +        "updated": {
      +          "description": "Date of the last write, YYYY-MM-DD.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "replacement": {
      +      "additionalProperties": true,
      +      "description": "The record that replaces it.",
      +      "properties": {
      +        "archived": {
      +          "description": "Whether the record lives in the archive directory.",
      +          "type": "boolean"
      +        },
      +        "body": {
      +          "description": "Markdown body below the frontmatter.",
      +          "type": "string"
      +        },
      +        "created": {
      +          "description": "Creation date, YYYY-MM-DD.",
      +          "type": "string"
      +        },
      +        "file": {
      +          "description": "File name within the collection directory.",
      +          "type": "string"
      +        },
      +        "id": {
      +          "description": "Stable record ID.",
      +          "type": "string"
      +        },
      +        "incoming": {
      +          "description": "Backlinks: references other records make to this one.",
      +          "items": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "incomingTotal": {
      +          "description": "Total backlinks, which may exceed the returned page.",
      +          "type": "integer"
      +        },
      +        "issues": {
      +          "description": "Validation findings doctor would report for this record.",
      +          "items": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "kind": {
      +          "description": "Record family: card, doc, change, release or memory.",
      +          "type": "string"
      +        },
      +        "outgoing": {
      +          "description": "References this record makes to others.",
      +          "items": {
      +            "additionalProperties": true,
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "path": {
      +          "description": "Repository-relative path to the Markdown file.",
      +          "type": "string"
      +        },
      +        "recordType": {
      +          "description": "Type within the family.",
      +          "type": "string"
      +        },
      +        "revision": {
      +          "description": "Content hash to pass back as expectedRevision on the next write.",
      +          "type": "string"
      +        },
      +        "status": {
      +          "description": "Lifecycle status.",
      +          "type": "string"
      +        },
      +        "tags": {
      +          "description": "Free-form tags.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "title": {
      +          "description": "Human-readable title.",
      +          "type": "string"
      +        },
      +        "updated": {
      +          "description": "Date of the last write, YYYY-MM-DD.",
      +          "type": "string"
      +        }
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "record",
      +    "replacement"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, which already convey this is a write operation that isn't destructive. The description adds atomicity ('update both sides atomically') and the non-deletion detail, which is genuinely useful. However, it doesn't disclose behaviors like whether the operation requires additional permissions, whether it's reversible, or what the response shape validates—though the output schema partially covers the latter.

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

Conciseness5/5

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

Three sentences, no filler. Every clause adds value: atomicity, prerequisite ordering, non-deletion behavior, and ID persistence. Front-loaded purpose with critical behavioral caveats following. No wasted words.

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 3-parameter tool with full schema coverage and an output schema present, the description covers the core semantics well: atomicity, prerequisite, and non-destructive nature. It could mention reversibility or permission requirements for full completeness, but for the complexity level this is solidly complete.

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 all three parameters already have descriptions in the schema. The description reinforces that replacementId 'must already exist' and explains the expectedRevision 'revision string' guard (concurrent edit protection), which adds semantic meaning beyond the schema. With full schema coverage, this is the appropriate baseline 3 with slight credit.

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 a specific verb ('supersede') and resource (memory records), and clearly explains the binary relationship: one record supersedes another with both sides updated. It distinguishes itself from siblings like project_memory_graduate and project_memory_patch by framing the action as a pair-wise replacement rather than a single-record modification.

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?

The description explicitly instructs to 'Create the replacement first' as a prerequisite, and explains the important exclusion: 'neither record is deleted, so the superseded one stays readable and its ID keeps resolving.' This gives clear when-to-use framing and sets expectations about alternative behaviors (non-destructive) that differentiate it from delete-like operations.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/illodev/workfile'

If you have feedback or need assistance with the MCP directory API, please join our Discord server