Skip to main content
Glama

Render section preview

render_section_preview

Shows a section filled in with the settings and blocks you send, on the store's theme as shoppers would see it: a picture of the section between the store's header and footer, on desktop or mobile. It lists what install_section would refuse (problems). Look at it, fix what's off, and render again before you install.

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": {
      "section": "<section>"
    },
    "name": "render_section_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoThe page the section goes on. Default: the first page get_section lists, else page.
blocksNoThe section's blocks in order, each { type, settings }. Types from get_section.
deviceNodesktop (default, 1280 px) or mobile (390 px).
productNoFor a product page: the product, by id or handle. Previews show the section on it and the editor link opens it.
sectionYesA section's file name from search_sections, like ss-faq-20.
settingsNoSetting ids and values, as get_section lists them. Left-out settings keep their defaults.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false), so the description doesn't need to restate it. It does add real behavior the annotations can't convey: the preview is a shopper-view image between header and footer, and it surfaces the problems install_section would refuse — a validation signal that matters before a write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with what the tool produces, then the problems it reports, then the action to take. No sentence is redundant and nothing is buried.

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 an 8-parameter tool with nested blocks and no output schema, the description covers what comes back in prose (a rendered picture plus a problem list) and how to act on it. It stops short of describing the returned link/handle or what happens on a failed render, which would fully close the loop.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the descriptions there are already rich (defaults, enum meanings, blob path format for leave_empty), so the baseline of 3 applies. The description only restates that settings and blocks are what you send, adding no format or precedence detail beyond the 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?

States a specific verb and resource ('shows a section filled in with the settings and blocks you send') plus the rendering context (store theme, between header and footer, desktop or mobile). That scope is enough to separate it from the other render_* previews and from install_section without opening a 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?

Explicitly places the tool in a workflow: 'Look at it, fix what's off, and render again before you install,' which tells the agent to run this ahead of install_section. It does not address when to prefer it over the related check_section sibling, so the guidance is strong but not exhaustive.

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