Skip to main content
Glama

Update element

editor_updateElement

Edit one element identified by nodeId — replace its text, change its props, and/or reposition it in a single call. Call editor_getDocument first and copy nodeId from it — never guess or reuse an ID from an earlier conversation. content: replace the entire text of a paragraph/header/list-item/table-cell, etc. (whole-element replace, not a substring or document-wide replace; not valid on input/option shells). properties (partial — send only what changes): isHidden, isThankYouPage (page only — marks the post-submit thank-you page), required, titleIsHidden, label (renames an option, question-title, or question), maxStars (rating-input), min/max/minLabel/maxLabel (linear-scale-input), placeholder / defaultValue (text, email, phone, url, number — defaultValue null clears). moveTo: reposition instead of recreating — e.g. moveTo:{parentId:<columnId>,position:"last"} to move it into a column for a side-by-side layout, or moveTo:{after:<nodeId>} to place it right after another element. To set conditional logic rules on a logic element, use editor_setLogic instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formIdYesForm ID
moveToNoReposition (keeps id/content).
nodeIdYes
contentNoReplace the whole text of a paragraph/header/list-item/cell. Not a substring; not for input/option shells (rename a title via properties.label).
propertiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare non-readOnly, non-destructive, closed-world, so the safety bar is partly met. The description adds real behavioral context beyond them: whole-element replacement semantics ('not a substring or document-wide replace'), 'not valid on input/option shells', that properties are partial, and that moveTo preserves id/content. It does not address reversibility or permission requirements, so not a full 5.

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 with the core purpose and the required-call precondition, then grouped by content/properties/moveTo. The properties enumeration is dense but justified by 60% schema coverage; the block is long but each clause carries a node-type constraint or example.

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 5-param, nested-object mutation tool with no output schema, the description covers purpose, precondition, per-field validity, moveTo usage examples, and the sibling to use for logic. Nothing an agent needs to invoke it correctly is 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 60%, so the description must compensate and it largely does: it documents the two undescribed fields (isHidden, titleIsHidden) and adds cross-type validity (maxStars on rating-input, min/max/minLabel/maxLabel on linear-scale, defaultValue null clears). Much of the rest duplicates schema descriptions, capping it below 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?

States a specific verb and resource (edit one element by nodeId) and enumerates the three editable facets (text, props, position). It clearly distinguishes itself from the insert_* siblings and from editor_formatText/editor_setLogic, which it names.

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 an explicit precondition ('Call editor_getDocument first and copy nodeId... never guess or reuse an ID from an earlier conversation') and routes one case to an alternative ('To set conditional logic rules... use editor_setLogic instead'). Both when-to-use and when-not-to-use are covered.

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.