Skip to main content
Glama

Install section

install_section

Adds a section to the store's theme, filled in with the settings and blocks you send, as a section of its own named for Add section in the theme editor. Shoppers see nothing until the merchant adds it to a page and saves; the reply has the theme editor link and the steps. It refuses a section with problems: render_section_preview lists them first. Each install is a new file, so a second one needs a new name.

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": "install_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoIts name in Add section, at most 25 characters, like "FAQ – Linen shirt". Default: the section's title.
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.
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.4/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive mutation, and the description adds real substance: shoppers see nothing until the merchant adds the section to a page and saves, the reply carries the theme editor link and the steps, and problem-laden sections are refused outright. It explains why the idempotentHint=false annotation is true ('each install is a new file'). It stops short of covering permission requirements or partial-failure behavior.

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?

Four tightly packed sentences with no filler: action and result first, then shopper visibility and reply contents, then the validation precondition, then the naming constraint. Every sentence carries information an agent needs to call the tool correctly.

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 eight-parameter nested mutation with no output schema, the definition covers the essentials: what gets created, what is and isn't visible to shoppers, what the reply contains, the validation gate, and the naming constraint on repeat installs. Only secondary details, such as behavior against a non-live theme or permission requirements, are left implicit.

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 schema already documents all eight parameters, giving a baseline of 3. The description adds non-obvious meaning beyond the schema by tying the name parameter to an operational constraint: because every install writes a new file, a second install requires a different name. That is the one genuine semantic contribution, and it is a useful one.

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: adds a section to the store's theme, filled with the settings and blocks supplied, as a new named section in the theme editor's 'Add section' list. It also distinguishes itself from render_section_preview, which it says lists problems first, so an agent can tell install apart from preview without opening either 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 clear use context: install only after render_section_preview has cleared the section of problems, and each install creates a new file so a repeat needs a new name. It doesn't address the modify-existing path (e.g., update_section) or when to prefer it over installing a fresh copy, which keeps it short of a 5.

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