Skip to main content
Glama

mediawiki_manage_categories

Destructive

Add or remove categories from a wiki page without editing full content. Preview changes and get undo instructions with clear results.

Instructions

Add or remove categories from a page without editing the full content.

USE WHEN: User says "add category X to this page", "remove this from category Y", "categorize this page".

NOT FOR: Listing categories (use mediawiki_list_categories). Not for viewing category members (use mediawiki_get_category_members).

PARAMETERS:

  • title: Page name (required)

  • add: Array of category names to add (without "Category:" prefix)

  • remove: Array of category names to remove (without "Category:" prefix)

  • preview: Preview changes without saving (default false)

  • summary: Edit summary

RETURNS: Which categories were added, removed, already present, or not found. Includes revision ID, diff URL, and undo instructions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rationaleYesRequired one-sentence explanation of why you are making this change. Stored in the audit log for post-hoc intent reconstruction.
titleYesPage title to manage categories for
addNoCategory names to add (without 'Category:' prefix)
removeNoCategory names to remove (without 'Category:' prefix)
summaryNoEdit summary
previewNoPreview changes without saving

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successYes
titleYes
addedNo
removedNo
already_presentNo
not_foundNo
current_categoriesYes
previewYes
revision_idNo
revisionNo
undoNo
messageYes
Behavior5/5

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

Description discloses the key behavioral trait that categories are added/removed without full content editing. It preview option and return information (added, removed, already present, not found, revision ID, diff URL, undo instructions). Annotations indicate destructiveHint: true and openWorldHint: true, and the description aligns with and enriches them.

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?

Description is well-structured with sections for purpose, usage, parameters, and returns. Every sentence is informative and earned. No redundant or vague statements. Front-loaded with the core action.

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?

Given the complexity (6 parameters, 2 required, output schema present), the description covers all necessary aspects: what the tool does, when to use it, how parameters work (including practical tips), and what is returned. No gaps. The presence of an output schema reduces the need to describe return values in detail, but the description still provides useful highlights.

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 baseline 3. Description adds practical guidance beyond schema: clarifies that add/remove arrays should omit 'Category:' prefix. This helps avoid common errors. It also lists each parameter with its role, though schema descriptions already cover most. The added value raises it to 4.

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 clearly states the tool's purpose: 'Add or remove categories from a page without editing the full content.' It specifies the verb 'add/remove' and the resource 'categories from a page'. It distinguishes from siblings by noting NOT FOR listing categories or viewing category members, referencing mediawiki_list_categories and mediawiki_get_category_members.

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?

Explicit 'USE WHEN' section provides clear triggers: user says 'add category X', 'remove from category Y', 'categorize this page'. The 'NOT FOR' section lists exclusions and alternatives, giving the agent clear disambiguation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/olgasafonova/mediawiki-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server