Skip to main content
Glama
Antonytm

mcp-sitecore-server

by Antonytm

media-download

Download a Sitecore media library blob by path or GUID. Pass saveTo to save large blobs to a local file; without it, returns inline base64 capped by maxBytes.

Instructions

Downloads a media item's blob from the Sitecore media library via the SPE mediaDownload service. Pass saveTo to write it to a file local to the machine running this MCP server (always do this for anything over ~0.5MB); without saveTo the blob is returned inline as base64, capped at maxBytes. Requires in the CM's SPE services config.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesThe media item path WITHOUT file extension (e.g. 'Project/Stride/Corporate/Migrated/team-photo' — the '/sitecore/media library/' prefix is optional), or the media item's GUID.
saveToNoFile path on the machine running this MCP server to write the blob to. When set, the response carries metadata only — no base64. Refused over the HTTP transport unless MEDIA_LOCAL_FILE_ROOT names a directory to confine it to.
databaseNoThe database holding the media library. Defaults to master.master
maxBytesNoInline-response size cap in bytes (default 512000). A blob over the cap errors with its actual size — pass saveTo instead of raising the cap unless you truly need the bytes inline.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.5

TDQS

A4.7/5.0
Behavior4/5

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

With annotations declaring readOnlyHint=false and destructiveHint=false, the description still adds meaningful context: the SPE config requirement, the HTTP-transport refusal unless MEDIA_LOCAL_FILE_ROOT is set, and the error-with-actual-size behavior on the byte cap. It does not contradict the annotations (writing a file to disk is a genuine side effect). The only gap is what the metadata-only response actually contains when saveTo is used.

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?

Three tight sentences that front-load the core action, then the saveTo/inline fork, then the prerequisite. Every clause carries operative information; nothing is padded.

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 no output schema, the description correctly explains both return shapes (base64 inline vs metadata-only file write), plus size caps, transport restrictions, and the config prerequisite. An agent has everything needed to call it correctly.

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 baseline is 3, but the description adds decision-relevant meaning: the ~0.5MB threshold for choosing saveTo, and the guidance to prefer saveTo over raising maxBytes. It reinforces rather than duplicates the schema's parameter docs.

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 ('Downloads a media item's blob from the Sitecore media library') and names the underlying mechanism (SPE mediaDownload service). An agent can immediately distinguish this from the media-upload and authoring-get-media-item siblings.

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?

Explicitly routes between the two modes: pass saveTo for anything over ~0.5MB, otherwise the blob returns inline as base64 capped at maxBytes. It also states the configuration prerequisite (mediaDownload enabled in SPE services config), so the agent knows when the call will fail.

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