Skip to main content
Glama
Antonytm

mcp-sitecore-server

by Antonytm

presentation-add-rendering

Adds a rendering to a Sitecore item's presentation at a chosen placeholder or index. Validate allowed components first when layout validity matters.

Instructions

Adds a rendering to presentation of an item. Writes whatever it is told: use get-allowed-components-by-placeholder first, or add-rendering-to-placeholder, if the layout has to stay valid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoThe ID of the item to add the rendering to. Supply this or path.
pathNoThe path of the item to add the rendering to. Supply this or id.
indexNoThe index at which the Rendering should be inserted.
databaseNoThe context database. Sent when addressing the item or the rendering by ID -- a path carries its own database prefix (e.g. master:/sitecore/content/Home).master
languageNoThe language version of the item to add the rendering to.
dataSourceNoThe rendering data source.
finalLayoutNoSpecifies layout to add the rendering to. If 'true', the final layout is used, otherwise - shared layout.
placeHolderYesThe placeholder to add the rendering to.
renderingIdNoThe ID of the rendering to add. Supply this or renderingPath.
renderingPathNoThe path of the rendering to add. Supply this or renderingId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.5

TDQS

A4/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false), and the description adds genuinely useful behavior beyond them: 'Writes whatever it is told' discloses that no component-validity check is performed, which explains the risk of an invalid layout. It does not mention permissions, index handling, or what happens to existing renderings at the target placeholder.

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?

Two tight sentences, front-loaded with the action and immediately followed by the caution and alternatives. Nothing is repeated from the schema or annotations, and every clause carries decision-relevant information.

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 mutation tool with no output schema but full parameter documentation and annotations, the description supplies purpose, the key behavioral caveat, and routing advice to safer alternatives. Minor gaps remain (layout side effects, index semantics, error behavior), but an agent has enough to invoke it correctly.

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% across all 10 parameters, so the schema already explains id/path, database, finalLayout, renderingId vs renderingPath, etc. The description adds no parameter-level detail of its own, which is the expected baseline when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 rendering to presentation of an item'), which is far more than a restatement of the name. It does point at related tools (get-allowed-components-by-placeholder, add-rendering-to-placeholder), but it does not distinguish itself from the nearest siblings such as presentation-set-rendering or presentation-switch-rendering, which also mutate layout.

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 names the safer alternatives and the condition that selects them ('...if the layout has to stay valid'), so the agent knows when this raw-write path is inappropriate. It stops short of stating positively when this tool is the right choice, but the conditional guidance is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools