Skip to main content
Glama

Update section

update_section
Destructive

Changes a section Section Store added, from install_section or the app's Pre-customise with AI: on every page the merchant placed it, and in Add section. Send only what changes: a setting you leave out keeps its value, and blocks, when sent, replace the whole list. The reply has a picture. If the section is on a page of the live theme, the first call changes nothing: show the merchant the picture and changes, and call again with confirm_token once they agree. undo_change reverses it. It can't move or remove a section: the merchant does that in the theme editor.

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": {
      "installed_as": "<installed_as>"
    },
    "name": "update_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
blocksNoThe whole new block list, in order, each { type, settings }. Leave it out to keep the blocks.
settingsNoOnly the settings that change, by id as get_section lists them.
theme_idNoA theme id from list_themes. Default: the live theme.
leave_emptyNoPhoto slots to keep empty on purpose, by the path a problem names, like settings.background_image or blocks[1].image.
installed_asYesThe section's file, as installed_as from install_section or check_section.
confirm_tokenNoFrom the first call's reply, once the merchant agrees. Only for a section on the live theme.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructive=true, idempotent=false, openWorld=true, but the description goes well beyond them: partial-update semantics, that blocks replace the entire list, that the reply includes a preview picture, that live-theme calls are dry-run-then-confirm, and that undo_change reverses it. These are non-obvious behavioral traits that materially change how an agent should invoke the tool.

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 core change semantics come first, then the confirm flow, then the boundary with undo_change and the theme editor. The opening clause ('from install_section or the app's Pre-customise with AI: on every page the merchant placed it, and in Add section') is syntactically tangled, costing a little clarity against otherwise zero-waste sentences.

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?

For a destructive, open-world mutation with no output schema, the description covers the safety-critical flow (dry run, merchant approval, confirm_token), reversibility via undo_change, and update semantics. Minor gaps remain: nothing about failure modes when installed_as is stale or theme_id is invalid, and 'the reply has a picture' is the only hint at return content.

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 the baseline is 3; the description earns above that by explaining merge-vs-replace semantics across parameters ('a setting you leave out keeps its value, and blocks, when sent, replace the whole list') and the meaning of the confirm_token in the two-step flow. It stops short of explaining leave_empty or theme_id beyond what the schema already says, so not a full 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+resource ('Changes a section') and pins the scope precisely: sections the app added via install_section or Pre-customise with AI, affecting every placement plus the Add section entry. It also names the sibling boundary ('undo_change reverses it', theme editor handles move/remove), so an agent can distinguish it from install_section and undo_change without opening schemas.

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?

Explicit when-to-use is given (send only what changes; omit a setting to preserve it), along with a critical when-not/alternative ('It can't move or remove a section: the merchant does that in the theme editor'). The conditional two-call flow for live-theme sections ('first call changes nothing... call again with confirm_token once they agree') is exactly the routing guidance an agent needs.

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