Skip to main content
Glama

mediawiki_apply_formatting

Destructive

Apply bold, italic, strikethrough, underline, or code formatting to selected text in a wiki page. Preview changes before applying.

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.

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 edit
textYesText to find and format
formatYesFormat to apply: 'strikethrough', 'bold', 'italic', 'underline', 'code', 'nowiki'
allNoApply to all occurrences (default: first only)
previewNoPreview changes without saving
summaryNoEdit summary (auto-generated if empty)

Output Schema

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

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

Annotations already give destructiveHint=true and openWorldHint=true. Description adds that it previews by default and only applies when preview=false, includes revision ID, diff URL, and undo instructions. Misses mentioning the required 'rationale' parameter and 'nowiki' format option, which slightly reduces transparency.

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?

Well-structured with headings, front-loaded purpose. Some redundancy in parameter list that repeats schema info, but overall efficient for the amount of detail provided.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers main workflow with preview vs apply, but misses the required 'rationale' parameter entirely and fails to mention 'nowiki' format. Given 7 parameters and a modification tool, these are notable gaps.

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%, so baseline 3. Description adds MediaWiki syntax for each format type, which is valuable. However, description omits the required 'rationale' parameter and lists only 5 format options while schema includes 6 ('nowiki'). Inconsistency and omission reduce additional value.

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?

Description clearly states 'BEST for adding formatting markup to specific text' with examples (bold, italic, etc.) and explicitly distinguishes from sibling mediawiki_find_replace. The verb 'apply' and resource 'formatting' are specific.

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?

Includes explicit 'USE WHEN' with concrete user requests and 'NOT FOR' referencing the alternative tool by name. Provides clear context for when this tool is appropriate versus others.

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