Skip to main content
Glama
Antonytm

mcp-sitecore-server

by Antonytm

presentation-get-layout

Read-only

Retrieve the Sitecore layout definition item assigned to a content item by ID or path, with language and final/shared layout options. Inspect the assigned layout item, not renderings on the page.

Instructions

Gets the layout definition item assigned to an item -- the Sitecore layout item itself (e.g. 'Headless Layout'), not the renderings placed on the page. Use presentation-list-renderings to see a page's components.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoThe ID of the item to retrieve layout for. Supply this or path.
fullNoReturn the unprojected .NET object graph. Very large (100,000+ chars/item); diagnostics only.
pathNoThe path of the item to retrieve layout for. Supply this or id.
fieldsNoExtra Sitecore field names to include, e.g. ['Title']. Ignored when full is true.
languageNoSpecifies the item language to retrieve layout.
finalLayoutNoSpecifies layout to be retrieved. If 'true', the final layout is retrieved, otherwise - shared layout.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.5

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuine behavioral context beyond that: it clarifies that the returned object is the layout definition item (e.g. 'Headless Layout') rather than the renderings, which is the key semantic distinction an agent needs. It adds no auth, pagination, or size caveats, though the schema's 'full' description covers the size concern.

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 sentences, both earning their place: the first pins the exact return semantics, the second routes to the alternative. The distinguishing scope statement is front-loaded before the alternative reference.

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 read-only lookup with a fully documented 6-parameter schema and a readOnlyHint annotation, the description supplies what the structured data cannot: what the returned layout item actually is versus renderings, plus an alternative. No output schema exists, so clarifying the return semantics is valuable; only minor gaps (finalLayout/shared-layout implication) remain.

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 parameter (id/path mutual option, full, fields, language, finalLayout) is already documented in the schema. The description adds no parameter-level meaning beyond that, which is the expected baseline 3 when the schema does the heavy lifting.

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+resource ('gets the layout definition item assigned to an item') and sharply delimits scope by contrasting it with renderings placed on the page. Names the sibling presentation-list-renderings, so an agent can distinguish it from adjacent presentation tools without opening schemas.

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 routes the agent to presentation-list-renderings when the goal is a page's components, which is a real alternative in this sibling set. It stops short of a full when/when-not matrix (no mention of finalLayout vs shared layout choice or when to prefer this over presentation-get-layout-device), so it's clear context rather than complete guidance.

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