Skip to main content
Glama
Antonytm

mcp-sitecore-server

by Antonytm

indexing-rebuild-search-index

Rebuild Sitecore search indexes after content changes. Target specific subtrees with id/path for updates, or rebuild entire indexes when needed.

Instructions

Rebuilds Sitecore search indexes. Omit id and path to rebuild whole indexes — and omit name too to rebuild every index, which is expensive and leaves search results incomplete while it runs. Supply id or path to rebuild only that item's subtree, which is what you want after changing a branch of content. Pass asJob to queue it and poll with common-get-sitecore-job rather than waiting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoRebuild only this item's subtree. Supply this or path, or neither for whole indexes.
nameNoThe index to rebuild; supports wildcards. Omit to rebuild every index when rebuilding whole indexes, or to use 'sitecore_*_index' when rebuilding one item's subtree.
pathNoRebuild only this item's subtree, e.g. /sitecore/content/Home. Supply this or id, or neither for whole indexes.
asJobNoQueue the rebuild as a Sitecore job instead of running it inline.
databaseNoDatabase to resolve an id against (default master).master
includeRemoteIndexNoWhole-index rebuilds only: include remote indexes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.5

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false) by disclosing the cost profile of a full rebuild and the fact that search results are left incomplete while it runs, plus the async job/polling pattern. These are operationally decisive facts an agent would not otherwise know.

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?

Four sentences, zero filler, front-loaded with the core action and then the mode-selection rules in order of increasing scope. Every clause either sets behavior or routes the caller.

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?

With 6 optional parameters, no output schema, and no enum constraints, the description covers all decision paths (scope selection, async behavior, cost). Nothing needed to invoke it correctly is missing.

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 parameter docs already carry the load and baseline is 3. The description adds interaction semantics the schema states only per-field: the id-vs-path-vs-neither decision and the coupling of name to whole-index vs subtree rebuilds, which is genuinely useful but partially redundant.

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 and resource ('Rebuilds Sitecore search indexes') and immediately elaborates the three operating modes. An agent can distinguish it from indexing-find-item and indexing-set-search-index-state without opening any 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?

Gives explicit conditional guidance for each mode: omit id/path for whole indexes, omit name too for every index (with a cost warning), supply id or path for a subtree 'which is what you want after changing a branch of content,' and pass asJob to poll with common-get-sitecore-job. Names both the alternative tool and the trigger conditions.

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