Skip to main content
Glama

Update page element

update_page_element
DestructiveIdempotent

Replace an element's content on a folder's published page. This is a FULL-element replace, not a field patch: every top-level key you send replaces the stored one WHOLESALE, so { props: { text } } DROPS every other stored prop. Read the element with get_page_layout, change what you need, and send its whole props back; top-level keys you omit are left alone. elementType cannot change, and element.id must be omitted or equal element_id. The response never reports converged, even when nothing changed. Requires modify on the folder and page-layout API writes enabled for the workspace — otherwise 403 page_layout_api_disabled, which only Playbook can turn on; retrying does not help. Concurrency: pass the version_token from get_page_layout as expected_version_token; if the page changed since, the call answers 409 stale_document and applies NOTHING — read again, re-decide, re-send. A successful write that sent a token returns the NEW version_token: send that on your next write, because your own write already made the old one stale. Of the 409s only lock_wait_timeout and page_layout_library_locked are safe to repeat unchanged. converged: true in the response means nothing changed (the goal state already held); materialized: true means the page had no stored document and this call saved the template's defaults. Both keys are ABSENT when false. The public page can keep showing the old version for up to an hour after a successful write, so a reload may not show the change.

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": {
      "token": "<token>",
      "element_id": "<element_id>",
      "slot_id": "<slot_id>",
      "element": "<element>"
    },
    "name": "update_page_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesFolder token of the published folder
elementYes
slot_idYesThe slot holding the element (id or name). A section row is addressed through its slot.
element_idYesId of the element to replace, from get_page_layout.
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.
subfolder_tokenNoEdit a nested folder's section of this page instead of the page itself: the `collectionToken` of an entry in get_page_layout's `subboards_settings`. Omit for the main page.
expected_version_tokenNoThe `version_token` from get_page_layout, echoed verbatim to make this write a compare-and-swap. Omit to write unconditionally.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / subboard_token
      Removed value: -{
      -  "description": "Edit a nested board's section of this page instead of the page itself: the `collectionToken` of an entry in get_page_layout's `subboards_settings`. Omit for the main page.",
      -  "minLength": 1,
      -  "type": "string"
      -}
    • addedInput schema / properties / subfolder_token
      Added value: +{
      +  "description": "Edit a nested folder's section of this page instead of the page itself: the `collectionToken` of an entry in get_page_layout's `subboards_settings`. Omit for the main page.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / token / description
      Previous value: -"Board token of the published board"New value: +"Folder token of the published folder"
  2. Changed4 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / element / additionalProperties
      Previous value: -trueNew value: +{}
    • addedInput schema / properties / element / properties / props / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / element / properties / sectionColumns / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): \"Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization.\"",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "token",
      -  "element_id",
      -  "slot_id",
      -  "element",
      -  "context"
      -]New value: +[
      +  "token",
      +  "element_id",
      +  "slot_id",
      +  "element"
      +]
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations, which only flag destructive/idempotent/openWorld: it explains that omitted top-level keys survive while sent keys are replaced WHOLESALE, discloses the 403 page_layout_api_disabled cause and that retrying won't help, specifies which 409s are safe to repeat (lock_wait_timeout, page_layout_library_locked) and which are not (stale_document applies NOTHING), and describes the version_token rotation and the up-to-an-hour public-page lag.

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?

Dense but front-loaded: the wholesale-replace hazard and the read-modify-write cycle come first, then auth, concurrency, and response semantics. Every sentence carries information, though the single-block paragraph runs long and could be segmented into bullets for faster scanning of the error/response rules.

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?

No output schema exists, yet the description fully covers return semantics (converged, materialized, absence when false, new version_token) plus the non-obvious eventual-consistency behavior. For a destructive, concurrency-sensitive 7-param mutation, nothing an agent needs to call it safely 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 already 86%, so the baseline is 3, but the description adds genuine meaning beyond it: elementType is immutable on update, element.id must be omitted or equal element_id, and expected_version_token turns the write into a compare-and-swap whose returned value must be reused next time. It does not elaborate organization/subfolder_token, but those are already documented in-schema.

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?

Opens with a specific verb and resource ('Replace an element's content on a folder's published page') and immediately distinguishes itself from a field-patch by labeling it a FULL-element replace. An agent can tell this apart from add_page_element, move_page_element, or delete_page_element without opening any schema.

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?

Gives an explicit read-modify-write workflow ('Read the element with get_page_layout, change what you need, and send its whole props back') and states the constraint that elementType cannot change, which routes the agent to add/delete for type changes. It stops short of naming sibling alternatives for edge cases (e.g. moving vs replacing), so it is clear context but not a full when/when-not table.

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.

Resources