Skip to main content
Glama
Antonytm

mcp-sitecore-server

by Antonytm

security-set-item-acl

Destructive

Set access rules on a Sitecore item by adding, replacing, or clearing permissions for a chosen account and access right.

Instructions

Changes the access rules on a Sitecore item. action 'add' appends one rule and leaves the others; 'replace' discards every existing rule on the item and leaves only this one; 'clear' removes all rules and adds nothing. Read the current rules with security-get-item-acl and check effective rights with security-test-item-acl.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoThe ID of the item. Supply this or path.
fullNoReturn the unprojected .NET object graph. Very large (100,000+ chars/item); diagnostics only.
pathNoThe path of the item (e.g. /sitecore/content/Home). Supply this or id.
actionYesadd appends a rule; replace discards all existing rules and leaves only this one; clear removes all rules.
fieldsNoExtra Sitecore field names to include, e.g. ['Title']. Ignored when full is true.
databaseNoDatabase to resolve an id against (default master).master
identityNoThe account the rule applies to, e.g. 'sitecore\Author'. Required for add and replace; not allowed for clear.
passThruNoReturn the processed item, projected to its identity.
accessRightNoThe access right the rule covers, e.g. 'item:read'. Required for add and replace; not allowed for clear.
propagationTypeNoHow far the rule propagates: Entity is this item only, Descendants the whole subtree. Sitecore has no children-only propagation.Entity
securityPermissionNoWhether the rule allows or denies the right, or allows/denies inheritance of it.AllowAccess

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 flag destructiveHint=true and readOnlyHint=false, so the safety profile is covered; the description adds genuine value by spelling out exactly what each mode destroys ('replace' discards every existing rule, 'clear' removes all rules and adds nothing). It doesn't mention required permissions or the response shape, but the destructive semantics are made concrete beyond what annotations convey.

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 tight sentences with zero waste; the destructive action semantics are front-loaded and the sibling routing is placed at the end. Every clause earns its place.

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 destructive mutation tool with no output schema but full annotation coverage and 100% schema coverage, the description covers purpose, mode semantics, and related-tool routing adequately. Missing only peripheral details like auth requirements or return behavior, which are minor given the annotations.

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 each parameter (including the action enum, identity, accessRight, propagationType, securityPermission) is documented in the schema itself. The description restates the action semantics but adds no syntax or format detail beyond the structured fields, so the baseline 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+resource ('Changes the access rules on a Sitecore item') and immediately distinguishes itself from the sibling read tools by naming security-get-item-acl and security-test-item-acl. An agent can tell what this tool does and where it sits in the security family 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?

The add/replace/clear explanation effectively tells the agent which mode to pick, and it explicitly routes to security-get-item-acl for reading current rules and security-test-item-acl for checking effective rights. It stops short of stating when NOT to use the tool or any prerequisite permissions, so it's strong but not exhaustive.

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