Skip to main content
Glama

mediawiki_audit

Read-only

Audit wiki health by checking broken links, terminology, orphan pages, and activity, then receive a score with detailed findings and recommendations.

Instructions

Run comprehensive wiki health audit with multiple checks.

USE WHEN: User asks "run health check", "audit the wiki", "check wiki quality".

PARAMETERS:

  • checks: Array of checks to run (default all):

    • "links": Broken internal links

    • "terminology": Glossary violations

    • "orphans": Unlinked pages

    • "activity": Recent changes

    • "external": Broken external links (slow)

  • limit: Max items per check (default 20)

RETURNS: Health score (0-100), detailed results per check, and recommendations.

Input Schema

NameRequiredDescriptionDefault
limitNoMax pages to audit (default 20, max 50)
pagesNoSpecific pages to audit
checksNoWhich checks to run: 'links', 'terminology', 'orphans', 'external', 'activity'. Default: all except 'external'
categoryNoCategory to audit (alternative to pages)
rationaleNoOptional one-sentence explanation of why you are calling this tool. Used for audit trails when present.

Output Schema

NameRequiredDescriptionDefault
errorsNo
summaryYes
wiki_nameYes
audited_atYes
terminologyNo
broken_linksNo
health_scoreYes
pages_auditedYes
external_linksNo
orphaned_pagesNo
recent_activityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.31.0
    • addedInput schema / properties / rationale
      Added value: +{
      +  "description": "Optional one-sentence explanation of why you are calling this tool. Used for audit trails when present.",
      +  "type": "string"
      +}
  2. Addedv1.30.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint and idempotentHint=false, so safety and mutability are covered. The description adds two genuinely useful behavioral notes: that the 'external' check is slow, and that the response contains a health score plus per-check results and recommendations. It undercuts itself with inaccurate defaults ('default all' vs. the schema's 'all except external', and 'max items per check' vs. the schema's 'max pages to audit'), and never explains the non-idempotent behaviour 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?

Front-loaded with the one-line purpose, then cleanly sectioned into USE WHEN / PARAMETERS / RETURNS, and every line is scannable. Some redundancy with the schema (restating checks and limit) and a couple of imprecise sentences keep it from a 5.

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?

With an output schema present, the RETURNS line is a bonus rather than a requirement, and the trigger phrases and check list are adequate. The notable gap is scoping: 'pages' and 'category' let an agent audit a subset, yet the description never mentions either, so an agent may launch a full-wiki audit when a targeted one was intended.

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 the baseline is 3 and the schema carries the detail for all five parameters. The description enumerates the meaning of each check value (a helpful gloss on an enum-less string array) but mischaracterizes 'limit' as items-per-check rather than pages-to-audit, omits the 'max 50' cap, and says nothing about 'pages', 'category' or 'rationale'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Run comprehensive wiki health audit') plus the multi-check scope, so the aggregate nature of the tool is clear. It does not, however, explicitly differentiate itself from the many single-check siblings (mediawiki_check_links, mediawiki_check_terminology, mediawiki_find_broken_internal_links, mediawiki_find_orphaned_pages), which is precisely the distinction an agent needs.

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?

The 'USE WHEN' section gives three concrete user phrasings ('run health check', 'audit the wiki', 'check wiki quality') that map cleanly to invocation contexts. It stops short of naming alternatives or exclusions, e.g. 'for a single check, call mediawiki_check_links instead', which would make routing between this tool and the per-check siblings unambiguous.

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