Skip to main content
Glama

Zindex

Change a diagram

diagram_edit
Idempotent

Changes a saved diagram as a new revision; old revisions are kept. Give baseRevision (the revision you last read), a one-line message, and ops (typed operations, https://zindex.ai/schemas/ops.schema.json), mermaid (the whole diagram edited from view mermaid; only differences apply), restoreRevision (an earlier version back), or brief. An edit with an error saves nothing; one that changes nothing returns noop. requestId makes a retry return the first result. A conflict lists what changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe diagram's id or key
opsNo
briefNoReplace the brief; null removes it
mermaidNoThe whole diagram as Mermaid; not with ops or restoreRevision
messageYesOne line on what the edit does and why
requestIdNoYour id for this edit, e.g. a UUID
baseRevisionYes
restoreRevisionNoA revision number, or { asOf } for the version current at that instant

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
keyNo
hashYes
noopNo
chainYes
changedNo
createdNo
replayedNo
revisionYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources