Skip to main content
Glama

Add section to one product

add_section_to_product
Destructive

Puts a section from install_section on one product only, when the merchant asks for that: the product gets its own template, a copy of its product page with the section under the product's main section. It goes in two steps. The first call changes nothing and returns a picture of the product page with the section, what will change, and a confirm_token. Show the merchant, then call again with the token once they agree. A product gets one such template; later sections go on it with Add section. Live theme only.

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>",
      "product": "<product>"
    },
    "name": "add_section_to_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNoThe picture's width: desktop (default) or mobile.
productYesThe product, by id or handle.
installed_asYesinstalled_as from install_section.
confirm_tokenNoThe token from the first call, sent once the merchant agrees.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description explains that the first call changes nothing and returns a preview plus confirm_token, while the second call with the token performs the change. It also discloses that the product gets a copied template, that each product gets only one such template, and that this applies to the live theme only.

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?

The description is front-loaded with the core purpose and follows with the two-step workflow and constraints. It is somewhat wordy in the opening sentence, but the sentences generally carry operational information rather than filler.

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 destructive, non-idempotent mutation with preview/confirm behavior, the description covers the key workflow, the no-op first call, the confirm_token handoff, the one-template-per-product rule, and the live-theme restriction. No output schema exists, and the description appropriately explains what the first call returns.

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 defines all four parameters. The description still adds useful meaning by tying installed_as to install_section, confirming that product is limited to one product, and explaining that confirm_token comes from the first call and is used after merchant agreement.

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?

The description states a specific verb and resource: it puts a section from install_section onto one product by creating that product's own template. It also distinguishes this from later section additions, which go on the same template via Add section, so an agent can tell what this tool is for without opening the schema.

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?

It gives an explicit trigger: use this when the merchant asks for a section on one product only. It also explains the required two-step interaction, including showing the preview and calling again with the token once the merchant agrees, and it notes that later sections use Add section instead.

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