Skip to main content
Glama

Lint the wiki

wiki_lint
Read-onlyIdempotent

Run structural lint checks on a session wiki to find orphan pages, broken wikilinks, invalid frontmatter, stale content, index drift, and duplicates. Reports issues as JSON without changing anything.

Instructions

Run the wiki's structural lint rules — the same engine as the CLI sessionwiki lint: orphan pages, broken [[wikilinks]], frontmatter completeness and validity, content freshness, index sync, duplicates and every other registered rule that needs no LLM. Returns JSON {total_pages, summary: {severity: count}, issue_count, issues: [{rule, severity, page, message}], truncated}; the issues list stops at 200 items, summary and issue_count cover all. Read-only: it reports and changes nothing. Use wiki_dashboard for a quick health overview; wiki_query to open the pages it names.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wiki_lint"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only and idempotent, but the description adds substantive context beyond them: it runs no LLM, returns a specific JSON shape, and critically discloses that the issues list truncates at 200 while summary and issue_count cover everything. That truncation caveat is exactly the kind of behavior an agent would otherwise miss.

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 action and rule coverage, then return shape, then safety, then sibling routing. Dense but nearly every clause earns its place; the long return-shape enumeration is the only slightly heavy passage, though it substitutes for a missing output schema.

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?

No output schema exists, so the description carries the return contract itself, listing the top-level keys, the per-issue fields, and the truncation rule. Combined with the read-only assurance and sibling routing, an agent has everything needed to call it and interpret results.

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?

The tool takes zero parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description correctly spends no space on nonexistent arguments.

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?

States a specific verb and resource ('Run the wiki's structural lint rules') and enumerates the rule families it covers: orphan pages, broken wikilinks, frontmatter validity, freshness, index sync, duplicates. This clearly distinguishes it from sibling read/search tools that return content rather than diagnostics.

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?

Explicitly routes the agent elsewhere: 'Use wiki_dashboard for a quick health overview; wiki_query to open the pages it names.' It names the alternatives and the condition selecting each, so an agent can choose without opening other schemas.

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