Skip to main content
Glama

presentation-switch-rendering-by-id

Switch an existing rendering with an alternate one for a specific item using item IDs. Update renderings in Sitecore layouts by specifying old and new rendering IDs.

Instructions

Switches an existing rendering specified by item ID with an alternate one for the item specified by item ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYesThe ID of the item holding the renderings.
oldRenderingIdYesThe ID of the rendering to switch.
newRenderingIdYesThe ID of the new rendering.
databaseNoThe context database.master
finalLayoutNoSpecifies the layout to update the rendering. If 'true', the final layout is used, otherwise - shared layout.
languageNoThe language version of the item holding the renderings.
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It states the tool 'switches' renderings, implying a mutation, but doesn't disclose behavioral traits such as permissions required, whether changes are reversible, potential side effects (e.g., affecting layouts), or error conditions. For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's front-loaded with the core action and resources, making it easy to parse quickly. Every part of the sentence earns its place by specifying key elements like 'existing rendering' and 'item ID'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (mutation with 6 parameters) and lack of annotations and output schema, the description is incomplete. It doesn't cover behavioral aspects, usage context, or return values, leaving gaps that could hinder an agent's ability to invoke it correctly. For a mutation tool in this context, more detail is needed to be considered complete.

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 the schema already documents all six parameters thoroughly. The description adds no additional meaning beyond implying that 'itemId' holds renderings and 'oldRenderingId' and 'newRenderingId' are involved in the switch. With high schema coverage, the baseline is 3, as the description doesn't compensate with extra insights like parameter interactions or examples.

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?

The description clearly states the action ('switches') and the resource ('an existing rendering'), specifying it operates on renderings within items. It distinguishes from siblings like 'presentation-add-rendering-by-id' or 'presentation-remove-rendering-by-id' by focusing on replacement rather than addition or removal. However, it doesn't explicitly differentiate from 'presentation-switch-rendering-by-path' or 'presentation-switch-rendering-by-unique-id', which are similar tools using different identifiers.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites (e.g., needing existing renderings), exclusions, or comparisons to sibling tools like 'presentation-switch-rendering-by-path'. Without this, an agent might struggle to choose between similar tools based on ID, path, or unique ID.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ramseur/mcp-sitecore-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server