Skip to main content
Glama
LiLara-AI

ShadowGraph

Official

shadowgraph_supersede

Replace a decision with another in the same project, marking the old one superseded while keeping it searchable. Repeating the operation returns the same result and commits a revision.

Instructions

Mark one decision superseded by a replacement in the same project. shadowgraph_update_status handles ordinary lifecycle moves, shadowgraph_link any other relationship. Nothing is deleted: the previous decision stays searchable. A repeat returns the same result and commits a revision.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
decisionIdYesThe decision being replaced. It becomes superseded and is excluded from current context.
replacementIdYesThe decision replacing it. Must be in the same project and must not be superseded, archived, abandoned, or stale.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
previousYesA stored decision, including its alternatives and auditable confidence basis.
relationYesThe supersedes relationship, or null when a repeated supersession found none to report.
replacementYesA stored decision, including its alternatives and auditable confidence basis.

Schema Changelog

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

  1. Changed3 schema fields changedv0.40.1
    • addedInput schema / properties / decisionId / description
      Added value: +"The decision being replaced. It becomes superseded and is excluded from current context."
    • addedInput schema / properties / replacementId / description
      Added value: +"The decision replacing it. Must be in the same project and must not be superseded, archived, abandoned, or stale."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Both sides of the supersession and the relationship that records it.",
      +  "properties": {
      +    "previous": {
      +      "description": "A stored decision, including its alternatives and auditable confidence basis.",
      +      "properties": {
      +        "actor": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Who performed the write."
      +        },
      +        "alternatives": {
      +          "description": "Rejected alternatives, each with id, label, reasonRejected, status, and the reopenWhen rules that make it reconsiderable.",
      +          "type": "array"
      +        },
      +        "assumptions": {
      +          "description": "Assumptions the decision rests on. Searchable content.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "chosen": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The option that was chosen."
      +        },
      +        "client": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Which client performed the write."
      +        },
      +        "confidence": {
      +          "description": "Auditable confidence: initial, current (0-1), policy, a history entry per move, and a basis summarising the contributions it was folded from. Legacy records may lack basis.",
      +          "type": "object"
      +        },
      +        "createdAt": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ISO 8601 creation time."
      +        },
      +        "evidence": {
      +          "description": "Normalised evidence entries: source, type, sourceClass, confidence, observedAt, detail.",
      +          "type": "array"
      +        },
      +        "failedAttempts": {
      +          "description": "Attempt identifiers or notes attached to this decision.",
      +          "type": "array"
      +        },
      +        "goal": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "What the decision was trying to achieve."
      +        },
      +        "id": {
      +          "description": "Stable entity identifier.",
      +          "type": "string"
      +        },
      +        "kind": {
      +          "description": "Entity kind: decision, attempt, memory, fact, relation, review, or alternative.",
      +          "type": "string"
      +        },
      +        "migration": {
      +          "description": "Present only on migrated records; records the legacy value a field was mapped from.",
      +          "type": "object"
      +        },
      +        "outcome": {
      +          "anyOf": [
      +            {
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The recorded outcome, or null until one is recorded."
      +        },
      +        "project": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Project namespace; records imported from a schema that predates projects may carry null."
      +        },
      +        "reviewAfter": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ISO 8601 instant after which shadowgraph_maintain marks this decision stale."
      +        },
      +        "schemaVersion": {
      +          "description": "Storage schema version this entity was written under. A value above the build’s own version is preserved rather than downgraded.",
      +          "type": "integer"
      +        },
      +        "sessionId": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Session identifier recorded with the write."
      +        },
      +        "sourceClass": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Claimed origin class recorded with the write. A claim, never proof."
      +        },
      +        "sourceRaw": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The original origin label when it differed from sourceClass. Audit only; never evidence."
      +        },
      +        "status": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Lifecycle state. Legacy records may carry a value this build does not recognise; shadowgraph_validate reports those."
      +        },
      +        "supersededBy": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Identifier of the decision that replaced this one."
      +        },
      +        "supersedes": {
      +          "description": "Identifiers of decisions this one replaced.",
      +          "type": "array"
      +        },
      +        "title": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Short name of the decision."
      +        },
      +        "updatedAt": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ISO 8601 time of the last change."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "kind"
      +      ],
      +      "type": "object"
      +    },
      +    "relation": {
      +      "anyOf": [
      +        {
      +          "description": "A stored relationship between two entities.",
      +          "properties": {
      +            "actor": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Who performed the write."
      +            },
      +            "client": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Which client performed the write."
      +            },
      +            "createdAt": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "ISO 8601 creation time."
      +            },
      +            "from": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Source entity identifier."
      +            },
      +            "id": {
      +              "description": "Stable entity identifier.",
      +              "type": "string"
      +            },
      +            "kind": {
      +              "description": "Entity kind: decision, attempt, memory, fact, relation, review, or alternative.",
      +              "type": "string"
      +            },
      +            "project": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Project namespace; records imported from a schema that predates projects may carry null."
      +            },
      +            "relation": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Relationship name, such as depends_on or supersedes."
      +            },
      +            "schemaVersion": {
      +              "description": "Storage schema version this entity was written under. A value above the build’s own version is preserved rather than downgraded.",
      +              "type": "integer"
      +            },
      +            "sessionId": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Session identifier recorded with the write."
      +            },
      +            "sourceClass": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Claimed origin class recorded with the write. A claim, never proof."
      +            },
      +            "sourceRaw": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "The original origin label when it differed from sourceClass. Audit only; never evidence."
      +            },
      +            "temporal": {
      +              "description": "Bi-temporal window for the relationship.",
      +              "type": "object"
      +            },
      +            "to": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Target entity identifier."
      +            },
      +            "updatedAt": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "ISO 8601 time of the last change."
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "from",
      +            "to",
      +            "relation"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The supersedes relationship, or null when a repeated supersession found none to report."
      +    },
      +    "replacement": {
      +      "description": "A stored decision, including its alternatives and auditable confidence basis.",
      +      "properties": {
      +        "actor": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Who performed the write."
      +        },
      +        "alternatives": {
      +          "description": "Rejected alternatives, each with id, label, reasonRejected, status, and the reopenWhen rules that make it reconsiderable.",
      +          "type": "array"
      +        },
      +        "assumptions": {
      +          "description": "Assumptions the decision rests on. Searchable content.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "chosen": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The option that was chosen."
      +        },
      +        "client": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Which client performed the write."
      +        },
      +        "confidence": {
      +          "description": "Auditable confidence: initial, current (0-1), policy, a history entry per move, and a basis summarising the contributions it was folded from. Legacy records may lack basis.",
      +          "type": "object"
      +        },
      +        "createdAt": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ISO 8601 creation time."
      +        },
      +        "evidence": {
      +          "description": "Normalised evidence entries: source, type, sourceClass, confidence, observedAt, detail.",
      +          "type": "array"
      +        },
      +        "failedAttempts": {
      +          "description": "Attempt identifiers or notes attached to this decision.",
      +          "type": "array"
      +        },
      +        "goal": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "What the decision was trying to achieve."
      +        },
      +        "id": {
      +          "description": "Stable entity identifier.",
      +          "type": "string"
      +        },
      +        "kind": {
      +          "description": "Entity kind: decision, attempt, memory, fact, relation, review, or alternative.",
      +          "type": "string"
      +        },
      +        "migration": {
      +          "description": "Present only on migrated records; records the legacy value a field was mapped from.",
      +          "type": "object"
      +        },
      +        "outcome": {
      +          "anyOf": [
      +            {
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The recorded outcome, or null until one is recorded."
      +        },
      +        "project": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Project namespace; records imported from a schema that predates projects may carry null."
      +        },
      +        "reviewAfter": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ISO 8601 instant after which shadowgraph_maintain marks this decision stale."
      +        },
      +        "schemaVersion": {
      +          "description": "Storage schema version this entity was written under. A value above the build’s own version is preserved rather than downgraded.",
      +          "type": "integer"
      +        },
      +        "sessionId": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Session identifier recorded with the write."
      +        },
      +        "sourceClass": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Claimed origin class recorded with the write. A claim, never proof."
      +        },
      +        "sourceRaw": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "The original origin label when it differed from sourceClass. Audit only; never evidence."
      +        },
      +        "status": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Lifecycle state. Legacy records may carry a value this build does not recognise; shadowgraph_validate reports those."
      +        },
      +        "supersededBy": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Identifier of the decision that replaced this one."
      +        },
      +        "supersedes": {
      +          "description": "Identifiers of decisions this one replaced.",
      +          "type": "array"
      +        },
      +        "title": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Short name of the decision."
      +        },
      +        "updatedAt": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "ISO 8601 time of the last change."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "kind"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "previous",
      +    "replacement",
      +    "relation"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.40.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, open-world, idempotent, and destructive hints. The description adds meaningful context beyond those flags: nothing is deleted, repeats return the same result but still commit a revision, and superseded decisions are excluded from current context. This is especially useful because idempotentHint is false yet the call appears repeatable.

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?

Four short sentences, each carrying distinct information: the operation, sibling differentiation, persistence behavior, and repeat semantics. The main purpose is front-loaded, and there is no redundant wording.

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 two-parameter operation with a fully described schema and an output schema, the description covers all essential behavioral aspects: what it does, constraints, side effects, and repeat behavior. No missing information would prevent correct invocation.

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 both parameter descriptions are already detailed, stating which decision is replaced and which one replaces it, including validity constraints. The description adds little beyond the schema because the schema already conveys the semantic relationship and project-scope requirement.

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?

States a specific verb ('Mark') and resource ('decision superseded by a replacement') with a project-scope constraint. It names sibling tools that handle other cases, so an agent can distinguish this operation without opening other definitions.

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?

Explicitly routes ordinary lifecycle moves to shadowgraph_update_status and other relationships to shadowgraph_link, clarifying when to choose this tool. It also notes the same-project requirement and the non-deletion behavior, giving the agent clear selection criteria.

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/LiLara-AI/shadowgraph'

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