Skip to main content
Glama
gherisalim

Sitecore Community MCP

by gherisalim

query-graphql-master

Destructive

Execute a syntax-checked GraphQL query against the Sitecore master endpoint to read unpublished authoring data and return JSON.

Instructions

Executes a GraphQL query against the Sitecore 'master' endpoint and returns the data as JSON. The query is syntax-checked before it is sent. Note what the endpoint can see: 'edge' serves published content only (unpublished master changes are invisible to it), while 'master' / preview schemas read the authoring database. Use introspection-graphql-master for the schema SDL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe GraphQL query document, e.g. 'query($path: String!) { item(path: $path, language: "en") { id name } }'.
variablesNoThe query's variables as a JSON object string, e.g. '{"path": "/sitecore/content/Home"}'. Parsed and sent as the GraphQL variables object.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.3

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and openWorldHint=true, so the safety profile is partly covered. The description adds genuinely useful behavior ('the query is syntax-checked before it is sent') and the endpoint-visibility rule, but it never mentions that this endpoint can execute GraphQL mutations or other writes — a notable omission for a tool flagged destructive, and one that leaves the annotation unexplained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the core action, then the syntax-check behavior, then the endpoint/routing note. Every sentence carries information; the only mild slack is that the edge-vs-master aside is about endpoint selection rather than this tool's mechanics, but it is still decision-relevant.

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?

With no output schema, the description correctly states that data is returned as JSON, and it covers error-adjacent behavior (pre-send syntax checking) plus endpoint semantics. The main remaining gap is write/mutation capability, which the destructive annotation implies but the description never confirms.

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% and both parameters (query, variables) carry their own examples and format notes in the schema. The description adds no syntax, escaping, or variables-handling detail beyond what the schema already provides, 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 and resource ('Executes a GraphQL query against the Sitecore master endpoint') and the return form (JSON), then distinguishes the endpoint from its sibling by explaining that 'edge' serves published content only while 'master'/preview schemas read the authoring database. An agent can tell query-graphql-master apart from query-graphql-edge and authoring-graphql 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 Guidelines4/5

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

Gives a clear selection criterion (master/preview reads the authoring DB and sees unpublished changes, edge does not) and routes schema discovery to a named alternative, introspection-graphql-master. It stops short of explicitly stating 'use query-graphql-edge when you only need published content', so the routing is inferred rather than spelled out.

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