Skip to main content
Glama

replace_schema

Destructive

Generates a complete schema from a textual description. REPLACES all the current data. Reserved for the case where the user wants to recreate everything from scratch. The layout is recomputed automatically on the server (positions/sizes optional in the payload); the payload carries the structure, the contentBlocks (notes/actions/links) and the people/assignments. dryRun:true PREVIEWS the diff (added/modified/deleted) of a full replacement — nothing is written.

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": {
      "data": "<data>",
      "label": "<label>"
    },
    "name": "replace_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesComplete SchemaData object: { meta, cells, people, assignments, dependencies }. EACH cell can carry cells[].contentBlocks[] — the rich content is the heart of the product, NOT an optional decoration: the detail goes HERE, and not in desc (truncated to 2 lines). Shape of a contentBlock: { id, type: 'list'|'text'|'actions'|'links', title, colorKey?, entries?, text?, note? }. Entry (entries[]): { text, badge?, badgeType?: 'active'|'pending'|'future'|'ref', done?, status?: 'todo'|'doing'|'done'|'blocked', priority?: 'urgent'|'high'|'normal'|'low', assignee?, due?, url? }. cells[].scopeId / cells[].embedKind: REFUSED. A payload that carries any is rejected ahead of any write, naming the offending blocks. This mechanism (a nested level inside the SAME project) has been abandoned since 2026-08-13 and the column no longer exists. A sub-view under a block is started with create_nested_project. No x/y coordinates: the layout is computed on the server side. Canonical shapes + examples: `get_playbook(kind, 'contenu')`.
labelYesDescription of the change for versioning
dryRunNo`true` PREVIEWS what this replacement would change — a diff (added/modified/deleted) between the current schema and `data`, computed on the SAME normalized data as the real write. NOTHING IS WRITTEN: neither schema nor version. Useful before a full replacement, the most destructive operation of the registry.
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed4 schema fields changed
    • changedInput schema / properties / data / description
      Previous value: -"Objet SchemaData complet : { meta, cells, people, assignments, dependencies }. CHAQUE cell peut porter cells[].contentBlocks[] — le contenu riche, c'est le cœur du produit, PAS une décoration optionnelle : le détail va ICI, jamais dans desc (tronquée à 2 lignes). Forme d'un contentBlock : { id, type: 'list'|'text'|'actions'|'links', title, colorKey?, entries?, text?, note? }. Entrée (entries[]) : { text, badge?, badgeType?: 'active'|'pending'|'future'|'ref', done?, status?: 'todo'|'doing'|'done'|'blocked', priority?: 'urgent'|'high'|'normal'|'low', assignee?, due?, url? }. cells[].scopeId / cells[].embedKind : REFUSÉS. Un payload qui en porte est rejeté AVANT toute écriture, en nommant les blocs fautifs. Ce mécanisme (sous-scène dans le MÊME projet) est abandonné depuis le 2026-08-13 et la colonne n'existe plus. Un sous-schéma sous un bloc se démarre avec create_nested_project. Aucune coordonnée x/y : le layout est calculé côté serveur. Formes canoniques + exemples : get_playbook(kind, 'contenu')."New value: +"Complete SchemaData object: { meta, cells, people, assignments, dependencies }. EACH cell can carry cells[].contentBlocks[] — the rich content is the heart of the product, NOT an optional decoration: the detail goes HERE, and not in desc (truncated to 2 lines). Shape of a contentBlock: { id, type: 'list'|'text'|'actions'|'links', title, colorKey?, entries?, text?, note? }. Entry (entries[]): { text, badge?, badgeType?: 'active'|'pending'|'future'|'ref', done?, status?: 'todo'|'doing'|'done'|'blocked', priority?: 'urgent'|'high'|'normal'|'low', assignee?, due?, url? }. cells[].scopeId / cells[].embedKind: REFUSED. A payload that carries any is rejected ahead of any write, naming the offending blocks. This mechanism (a nested level inside the SAME project) has been abandoned since 2026-08-13 and the column no longer exists. A sub-view under a block is started with create_nested_project. No x/y coordinates: the layout is computed on the server side. Canonical shapes + examples: `get_playbook(kind, 'contenu')`."
    • changedInput schema / properties / dryRun / description
      Previous value: -"`true` PRÉVISUALISE ce que ce remplacement changerait — un diff (ajoutés/modifiés/supprimés) entre le schéma actuel et `data`, calculé sur les MÊMES données normalisées que l'écriture réelle. RIEN N'EST ÉCRIT : ni schéma, ni version. Utile avant un remplacement complet, l'opération la plus destructrice du registre."New value: +"`true` PREVIEWS what this replacement would change — a diff (added/modified/deleted) between the current schema and `data`, computed on the SAME normalized data as the real write. NOTHING IS WRITTEN: neither schema nor version. Useful before a full replacement, the most destructive operation of the registry."
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / label / description
      Previous value: -"Description du changement pour le versioning"New value: +"Description of the change for versioning"
  4. Changed2 schema fields changed
    • changedInput schema / properties / data / description
      Previous value: -"Objet SchemaData complet : { meta, cells, people, assignments, dependencies }. CHAQUE cell peut porter cells[].contentBlocks[] — le contenu riche, c'est le cœur du produit, PAS une décoration optionnelle : le détail va ICI, jamais dans desc (tronquée à 2 lignes). Forme d'un contentBlock : { id, type: 'list'|'text'|'actions'|'links', title, colorKey?, entries?, text?, note? }. Entrée (entries[]) : { text, badge?, badgeType?: 'active'|'pending'|'future'|'ref', done?, status?: 'todo'|'doing'|'done'|'blocked', priority?: 'urgent'|'high'|'normal'|'low', assignee?, due?, url? }. cells[].scopeId / cells[].embedKind : REFUSÉS. Un payload qui en porte est rejeté AVANT toute écriture, en nommant les blocs fautifs. Ce mécanisme (sous-scène dans le MÊME projet) est abandonné depuis le 2026-08-13 et la colonne n'existe plus. Pour démarrer un sous-schéma sous un bloc, appelle create_nested_project. Aucune coordonnée x/y : le layout est calculé côté serveur. Formes canoniques + exemples : get_playbook(kind, 'contenu')."New value: +"Objet SchemaData complet : { meta, cells, people, assignments, dependencies }. CHAQUE cell peut porter cells[].contentBlocks[] — le contenu riche, c'est le cœur du produit, PAS une décoration optionnelle : le détail va ICI, jamais dans desc (tronquée à 2 lignes). Forme d'un contentBlock : { id, type: 'list'|'text'|'actions'|'links', title, colorKey?, entries?, text?, note? }. Entrée (entries[]) : { text, badge?, badgeType?: 'active'|'pending'|'future'|'ref', done?, status?: 'todo'|'doing'|'done'|'blocked', priority?: 'urgent'|'high'|'normal'|'low', assignee?, due?, url? }. cells[].scopeId / cells[].embedKind : REFUSÉS. Un payload qui en porte est rejeté AVANT toute écriture, en nommant les blocs fautifs. Ce mécanisme (sous-scène dans le MÊME projet) est abandonné depuis le 2026-08-13 et la colonne n'existe plus. Un sous-schéma sous un bloc se démarre avec create_nested_project. Aucune coordonnée x/y : le layout est calculé côté serveur. Formes canoniques + exemples : get_playbook(kind, 'contenu')."
    • changedInput schema / properties / dryRun / description
      Previous value: -"Passe dryRun:true pour PRÉVISUALISER ce que ce remplacement changerait — un diff (ajoutés/modifiés/supprimés) entre le schéma actuel et `data`, calculé sur les MÊMES données normalisées que l'écriture réelle. RIEN N'EST ÉCRIT : ni schéma, ni version. Utile avant un remplacement complet, l'opération la plus destructrice du registre."New value: +"`true` PRÉVISUALISE ce que ce remplacement changerait — un diff (ajoutés/modifiés/supprimés) entre le schéma actuel et `data`, calculé sur les MÊMES données normalisées que l'écriture réelle. RIEN N'EST ÉCRIT : ni schéma, ni version. Utile avant un remplacement complet, l'opération la plus destructrice du registre."
  5. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation: server-side layout recomputation, scopeId/embedKind rejection before any write, and the fact that dryRun writes neither schema nor version. The post-write behavior (layout recomputed, no x/y coordinates) is exactly the kind of 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-loads the destructive nature in the first two sentences, then details payload rules and dryRun. Slight redundancy between "REPLACES all the current data" and "the most destructive operation of the registry," but nothing wasteful.

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?

No output schema exists, and the description covers the dryRun return concept (added/modified/deleted diff) and the write-side rejections. Missing only a note on what the real write returns or how versioning works after the replacement.

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 baseline is 3; the description still adds meaning by clarifying that positions/sizes are optional because layout is server-computed and that dryRun diffs against the same normalized data as the real write. Some of it duplicates the data parameter's own schema text.

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 concrete verb and resource ("Generates a complete schema") plus the blast radius ("REPLACES all the current data"), which immediately separates it from incremental siblings like add_cell. The agent can tell this is a whole-schema reconstruction, not an edit.

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?

Explicitly scopes usage: "Reserved for the case where the user wants to recreate everything from scratch," and points to dryRun:true as the pre-flight path. It stops short of naming the incremental alternatives (add_cell, apply_batch) that should be used instead when not recreating from scratch.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.