Skip to main content
Glama

protect-page

Destructive

Change a wiki page's protection levels for edit, move, upload, or create, optionally setting expiry and cascade. Specify only actions to update; omitted actions keep current protection.

Instructions

Changes the protection of a wiki page and returns its title, its own protections afterwards with their expiries, and whether cascading is on. Each action named in protections is set to its level until expiry. Actions left out keep their current protection, so lifting all protection means naming every action the page takes with "all". Protection the page inherits from a cascade-protected page that transcludes it is neither changed nor listed. Fails if the authenticated user lacks the protect permission, if the wiki does not accept an action or level for this page, or if the expiry is invalid or in the past.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "title": "<title>",
      "protections": "<protections>"
    },
    "name": "protect-page"
  }
}

Input Schema

NameRequiredDescriptionDefault
wikiNoWiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki.
titleYesWiki page title
expiryNoWhen the protections named in protections end: infinite, a relative time such as "1 week", or a timestamp such as 2026-10-01T00:00:00Z.infinite
cascadeNoAlso protect every page transcluded into this one against editing. Applies only while edit protection is at a cascading level, sysop by default. Omit to keep the current setting.
commentNoReason for changing the protection
protectionsYesProtection level for each action, e.g. {"edit": "autoconfirmed", "move": "sysop"}. The actions are edit and move, plus upload on a file description page; a page that does not exist takes only create, which limits who can create the title. Levels are the wiki's own; MediaWiki's defaults are autoconfirmed (semi-protection) and sysop (full protection). "all" lifts the action's protection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.22.0
    • changedInput schema / properties / protections / description
      Previous value: -"Protection level for each action, e.g. {\"edit\": \"autoconfirmed\", \"move\": \"sysop\"}. The actions are edit and move, plus upload on a File page; a page that does not exist takes only create, which limits who can create the title. Levels are the wiki's own; MediaWiki's defaults are autoconfirmed (semi-protection) and sysop (full protection). \"all\" lifts the action's protection."New value: +"Protection level for each action, e.g. {\"edit\": \"autoconfirmed\", \"move\": \"sysop\"}. The actions are edit and move, plus upload on a file description page; a page that does not exist takes only create, which limits who can create the title. Levels are the wiki's own; MediaWiki's defaults are autoconfirmed (semi-protection) and sysop (full protection). \"all\" lifts the action's protection."
  2. Addedv0.19.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (destructive, non-idempotent, open-world), the description explains the partial-update model, the requirement that cascade only takes effect while edit protection is cascading, that inherited protection is neither changed nor reported, and the exact permission/validation failure conditions. That is meaningful behavior an agent cannot get from the annotation flags.

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?

Four dense sentences, front-loaded with the action and its return payload, then the mutation semantics, then the caveat, then failure modes. Every sentence carries information; the return-value sentence is heavy but justified because no output schema exists.

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?

For a destructive mutation with six parameters, a free-form nested object and no output schema, the description covers return shape, permission prerequisites, validation failures, and the cascade-inheritance blind spot. Nothing an agent needs in order to invoke it safely 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 baseline is 3, but the description adds real meaning: the "all" sentinel for lifting protection, the per-action nature of the protections map, how cascade depends on edit-level protection, and that omitting cascade preserves the current setting. These clarify semantics of the nested object beyond its property descriptions.

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?

The description opens with a specific verb and resource ("Changes the protection of a wiki page") and immediately states what is returned (title, resulting protections with expiries, cascade flag). No sibling tool in the list performs protection changes, so the operation is unambiguous against the read/update/delete page family.

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?

It gives strong operational rules for how to use the tool: only actions named in protections are changed, omitted actions keep their state, and lifting all protection requires naming every action with "all". It also scopes out cascade-inherited protection. What it lacks is an explicit statement of when to reach for it versus e.g. update-page, though no sibling offers an alternative path to this capability.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.