Skip to main content
Glama
Antonytm

mcp-sitecore-server

by Antonytm

presentation-switch-rendering

Switch an existing Sitecore item rendering to a different rendering. Use the returned new UniqueId for follow-up calls because the old rendering instance no longer exists.

Instructions

Switches an existing rendering on an item with an alternate one. The switched instance gets a NEW uniqueId (SPE regenerates it); the tool returns one row per switched instance with the new UniqueId, RenderingID, Placeholder and Datasource — use that UniqueId for any follow-up call, the old one no longer exists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoThe ID of the item holding the renderings. Supply this or path.
pathNoThe path of the item holding the renderings. Supply this or id.
databaseNoThe context database. Sent when addressing by ID -- a path carries its own database prefix (e.g. master:/sitecore/content/Home).master
languageNoThe language version of the item holding the renderings.
uniqueIdNoThe unique ID of the rendering instance to switch. Supply this, oldRenderingId or oldRenderingPath.
finalLayoutNoTarget the final layout (default true), where list-renderings' uniqueIds live. False = shared only.
newRenderingIdNoThe ID of the new rendering. Supply this or newRenderingPath.
oldRenderingIdNoThe ID of the rendering to switch; every instance of it on the item is switched. Supply this, oldRenderingPath or uniqueId.
newRenderingPathNoThe path of the new rendering. Supply this or newRenderingId.
oldRenderingPathNoThe path of the rendering to switch; every instance of it on the item is switched. Supply this, oldRenderingId or uniqueId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.5

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds critical behavior the annotations cannot convey: the instance receives a NEW regenerated uniqueId, the old one ceases to exist, and one row is returned per switched instance keyed by the new UniqueId. This is exactly the non-obvious, high-risk detail an agent must know before invoking.

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: the first front-loads the action, the second carries the essential behavioral and return-value caveats. No filler, no repetition of schema content.

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 10-parameter mutation tool with no output schema, the description supplies the two things the structured data cannot: the ID-regeneration side effect and the shape of the return row. An agent has everything needed to call it and to chain follow-up calls 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%, so every one of the 10 parameters is already documented (including the 'supply this or that' alternatives). The description adds no parameter-specific meaning beyond the schema, so the baseline of 3 applies.

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 ('Switches') and resource ('an existing rendering on an item') with the replacement target ('an alternate one'). This clearly distinguishes it from siblings like presentation-add-rendering, presentation-set-rendering, and presentation-remove-rendering, which perform different layout mutations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit post-invocation guidance ('use that UniqueId for any follow-up call, the old one no longer exists'), which is valuable. However, it never states when to choose this tool over alternatives such as presentation-set-rendering or presentation-add-rendering, leaving the selection criterion implied rather than explicit.

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