Skip to main content
Glama

mediawiki_manage_categories

Destructive

Add or remove categories from a page without editing its full content. Returns which categories were added, removed, already present, or not found.

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
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
Behavior4/5

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

Annotations already provide destructiveHint=true and openWorldHint=true. The description adds behavioral context by noting that changes are made without editing full content, offering a preview option, and detailing return information including revision ID, diff URL, and undo instructions. It does not contradict annotations.

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?

The description is well-structured with clear headings and is appropriately concise. Each section (USE WHEN, NOT FOR, PARAMETERS, RETURNS) adds value without redundancy. It front-loads the core purpose and then organizes additional details logically.

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 tool's complexity (5 parameters, all described in schema, output schema exists, annotations present), the description is fully complete. It covers usage scenarios, parameter details, and return information, leaving no obvious gaps for an AI agent to invoke the tool 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 baseline is 3. The description adds meaning beyond the schema by explaining the 'add' and 'remove' parameters require category names without the 'Category:' prefix, and gives examples of when to use each parameter. This extra context enhances understanding.

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 or remove') and resource ('categories on a page'), and explicitly distinguishes from sibling tools like 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?

The description includes explicit usage guidance with 'USE WHEN' and 'NOT FOR' sections, providing clear directives for when to invoke this tool and when to use alternatives. It names specific sibling tools for alternative cases.

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