Skip to main content
Glama

mediawiki_apply_formatting

Destructive

Add strikethrough, bold, italic, underline, or code formatting to specific text on a MediaWiki page. Preview changes before applying or format all occurrences at once.

Instructions

BEST for adding formatting markup to specific text.

USE WHEN: User says "strike out X", "cross out the name", "make X bold", "italicize Y", "mark as code".

NOT FOR: Replacing text (use mediawiki_find_replace).

PARAMETERS:

  • title: Page name (required)

  • text: Text to format (required)

  • format: Formatting type (required):

    • "strikethrough": text (for removed/former items)

    • "bold": '''text'''

    • "italic": ''text''

    • "underline": text

    • "code": text

  • all: Format all occurrences (default false)

  • preview: Preview changes (default true)

  • summary: Edit summary

RETURNS: Preview of formatting applied. Set preview=false to apply. Includes revision ID, diff URL, and undo instructions.

NOTE: Requires authentication (bot password) to apply changes. Anonymous sessions cannot edit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoApply to all occurrences (default: first only)
textYesText to find and format
titleYesPage title to edit
formatYesFormat to apply: 'strikethrough', 'bold', 'italic', 'underline', 'code', 'nowiki'
previewNoPreview changes without saving
summaryNoEdit summary (auto-generated if empty)
rationaleYesRequired one-sentence explanation of why you are making this change. Stored in the audit log for post-hoc intent reconstruction.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
undoNo
titleYes
changesNo
messageYes
previewYes
successYes
revisionNo
match_countYes
revision_idNo
format_countYes
format_appliedYes
Behavior5/5

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

The description adds significant behavioral context beyond the annotations (which only indicate destructiveHint). It explains the preview behavior ('Set preview=false to apply'), authentication requirements ('Requires authentication (bot password)'), and return details (revision ID, diff URL, undo instructions), providing a thorough understanding of tool behavior.

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-organized into clear sections (BEST for, USE WHEN, NOT FOR, PARAMETERS, RETURNS, NOTE) with front-loaded key information. Each sentence serves a purpose without redundancy, achieving high conciseness while covering essential details.

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?

Given the tool's complexity (7 parameters, destructive action, authentication need), the description covers preview behavior, authentication, return values, and examples. However, it omits explicit mention of the 'rationale' parameter, which is a required input. The existence of an output schema is implied but not explicitly described, leaving a minor gap.

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 description coverage is 100%, but the description adds value by providing concrete examples for the 'format' parameter (e.g., 'bold: \'\'\'text\'\'\''), clarifying default behavior for 'all' and 'preview', and detailing 'preview' and 'summary'. However, the 'rationale' parameter is not explicitly discussed in the description, slightly limiting completeness.

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 'BEST for adding formatting markup to specific text,' providing a specific verb and resource. It lists concrete examples of user requests (e.g., 'strike out X') and distinguishes from sibling tool mediawiki_find_replace, making the purpose unambiguous.

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 explicitly states when to use the tool with a 'USE WHEN' section and provides specific examples. It also includes a 'NOT FOR' section that identifies an alternative tool (mediawiki_find_replace) for replacing text, offering clear guidance on when not to use this tool.

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