Skip to main content
Glama

validate_wiki

Read-only

Validates wiki pages against the page contract after edits, returning failing pages and pagination details so you can confirm the folder is clean before claiming a compile finished.

Instructions

Judge the pages under wiki/ against the wiki page contract (docs/ONTOLOGY-ATLAS-SPEC.md §11) after editing a page and before claiming a compile finished. side effect 0. pages holds failing pages only: follow nextCall until pagination.hasMore is false; the folder is clean only when failingCount is 0.

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": "validate_wiki"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoDefault 100.
pathsNoPage paths to judge (`wiki/plan.md`), listed passing or not. Omit to judge all of `wiki/` and page the failing ones.
offsetNoFirst failing page in path order.
afterPathNoResume after this page, from `nextCall`.

Output Schema

NameRequiredDescriptionDefault
pagesYes
summaryNo
nextCallNo
pageCountYes
pagesHintNo
paginationNo
failingCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed23 schema fields changedv2.7.5
    • changedInput schema / properties / afterPath / description
      Previous value: -"Resume after this page path, copied from the last reply's `nextCall`. Failing pages are walked by path, so repairs between calls move no unseen page behind it. Not with `paths` or `offset`."New value: +"Resume after this page, from `nextCall`."
    • changedInput schema / properties / limit / description
      Previous value: -"Failing pages per reply. Defaults 100. Not with `paths`."New value: +"Default 100."
    • changedInput schema / properties / offset / description
      Previous value: -"Zero-based index of the first failing page to return, in path order. Shifts when a repair removes earlier pages; `nextCall` does not. Defaults 0. Not with `paths` or `afterPath`."New value: +"First failing page in path order."
    • changedInput schema / properties / paths / description
      Previous value: -"Vault-relative page paths to judge (`wiki/quarter-plan.md`). Omit to judge every page under `wiki/` and page through the failing ones with `limit` and `nextCall`. Max 50 when naming them, the same ceiling `get_concepts.uids` uses: past that, asking for the whole folder is one call instead of a list somebody has to assemble. A path outside `wiki/` is reported as a problem rather than silently skipped."New value: +"Page paths to judge (`wiki/plan.md`), listed passing or not. Omit to judge all of `wiki/` and page the failing ones."
    • removedOutput schema / properties / failingCount / description
      Removed value: -"Pages with at least one problem. Zero means every page judged fits."
    • removedOutput schema / properties / failingCount / minimum
      Removed value: -0
    • removedOutput schema / properties / nextCall / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / nextCall / description
      Removed value: -"Present while more failing pages remain: the exact call for the next page."
    • removedOutput schema / properties / nextCall / properties
      Removed value: -{
      -  "arguments": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "afterPath": {
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "limit": {
      -        "maximum": 500,
      -        "minimum": 1,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "afterPath"
      -    ],
      -    "type": "object"
      -  },
      -  "tool": {
      -    "enum": [
      -      "validate_wiki"
      -    ],
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / nextCall / required
      Removed value: -[
      -  "tool",
      -  "arguments"
      -]
    • removedOutput schema / properties / pageCount / description
      Removed value: -"Pages judged: the whole folder, or the named `paths`."
    • removedOutput schema / properties / pageCount / minimum
      Removed value: -0
    • removedOutput schema / properties / pages / description
      Removed value: -"Without `paths`, failing pages only, one page of them. With `paths`, every named page."
    • removedOutput schema / properties / pages / items
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "blocking": {
      -      "description": "Whether any problem is more than advisory (orphan-page and shared-source-unlinked are advisory).",
      -      "type": "boolean"
      -    },
      -    "ok": {
      -      "type": "boolean"
      -    },
      -    "path": {
      -      "type": "string"
      -    },
      -    "problems": {
      -      "description": "At most 20, in the order judged; each message escapes control and format characters.",
      -      "items": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "code": {
      -            "type": "string"
      -          },
      -          "detail": {
      -            "additionalProperties": false,
      -            "description": "The pieces of `message`, so a screen can retell it in the reader's language: `key` names the sentence, `values` fills it.",
      -            "properties": {
      -              "key": {
      -                "type": "string"
      -              },
      -              "values": {
      -                "additionalProperties": {
      -                  "type": "string"
      -                },
      -                "type": "object"
      -              }
      -            },
      -            "required": [
      -              "key"
      -            ],
      -            "type": "object"
      -          },
      -          "line": {
      -            "minimum": 1,
      -            "type": "integer"
      -          },
      -          "message": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message"
      -        ],
      -        "type": "object"
      -      },
      -      "type": "array"
      -    },
      -    "problemsOmitted": {
      -      "description": "Present when the page has more problems than `problems` shows: how many more.",
      -      "minimum": 1,
      -      "type": "integer"
      -    }
      -  },
      -  "required": [
      -    "path",
      -    "ok",
      -    "blocking",
      -    "problems"
      -  ],
      -  "type": "object"
      -}
    • removedOutput schema / properties / pagesHint / description
      Removed value: -"Present when the failing pages span more than one reply: which ones this reply shows, why it stopped, and the next call."
    • removedOutput schema / properties / pagination / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / pagination / description
      Removed value: -"The page `pages` holds: `offset` is its position among `total` failing pages and `nextOffset` the position after it, both as of this call; resume with `nextCall`. Absent with `paths`."
    • removedOutput schema / properties / pagination / properties
      Removed value: -{
      -  "hasMore": {
      -    "type": "boolean"
      -  },
      -  "limit": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "nextOffset": {
      -    "minimum": 0,
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "offset": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "returned": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "total": {
      -    "minimum": 0,
      -    "type": "integer"
      -  }
      -}
    • removedOutput schema / properties / pagination / required
      Removed value: -[
      -  "offset",
      -  "limit",
      -  "total",
      -  "returned",
      -  "hasMore",
      -  "nextOffset"
      -]
    • removedOutput schema / properties / summary / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / summary / description
      Removed value: -"The whole folder, whatever page `pages` holds. Absent with `paths`."
    • removedOutput schema / properties / summary / properties
      Removed value: -{
      -  "advisoryOnlyPages": {
      -    "description": "Failing pages whose only problems are advisory (orphan-page, shared-source-unlinked).",
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "blockingPages": {
      -    "description": "Failing pages with at least one problem that is not advisory.",
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "byCode": {
      -    "additionalProperties": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "count": {
      -          "description": "Pages with this code.",
      -          "minimum": 1,
      -          "type": "integer"
      -        },
      -        "files": {
      -          "description": "At most 20 of the `count` pages with this code, blocking pages first, each group by path.",
      -          "items": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "type": "array"
      -        },
      -        "filesOmitted": {
      -          "description": "Present when `files` names fewer than `count`: how many more. Page through `pages` for them.",
      -          "minimum": 1,
      -          "type": "integer"
      -        },
      -        "severity": {
      -          "description": "`warning` for an advisory code, `error` for the rest.",
      -          "enum": [
      -            "error",
      -            "warning"
      -          ],
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "severity",
      -        "count",
      -        "files"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / properties / summary / required
      Removed value: -[
      -  "blockingPages",
      -  "advisoryOnlyPages",
      -  "byCode"
      -]
  2. Changed15 schema fields changedv2.4.0
    • addedInput schema / properties / afterPath
      Added value: +{
      +  "description": "Resume after this page path, copied from the last reply's `nextCall`. Failing pages are walked by path, so repairs between calls move no unseen page behind it. Not with `paths` or `offset`.",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "description": "Failing pages per reply. Defaults 100. Not with `paths`.",
      +  "maximum": 500,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Zero-based index of the first failing page to return, in path order. Shifts when a repair removes earlier pages; `nextCall` does not. Defaults 0. Not with `paths` or `afterPath`.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedInput schema / properties / paths / description
      Previous value: -"Vault-relative page paths to judge (`wiki/quarter-plan.md`). Omit to judge every page under `wiki/`, which has no cap because the folder decides how many there are. Max 50 when naming them, the same ceiling `get_concepts.uids` uses: past that, asking for the whole folder is one call instead of a list somebody has to assemble. A path outside `wiki/` is reported as a problem rather than silently skipped."New value: +"Vault-relative page paths to judge (`wiki/quarter-plan.md`). Omit to judge every page under `wiki/` and page through the failing ones with `limit` and `nextCall`. Max 50 when naming them, the same ceiling `get_concepts.uids` uses: past that, asking for the whole folder is one call instead of a list somebody has to assemble. A path outside `wiki/` is reported as a problem rather than silently skipped."
    • addedOutput schema / properties / nextCall
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Present while more failing pages remain: the exact call for the next page.",
      +  "properties": {
      +    "arguments": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "afterPath": {
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "limit": {
      +          "maximum": 500,
      +          "minimum": 1,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "afterPath"
      +      ],
      +      "type": "object"
      +    },
      +    "tool": {
      +      "enum": [
      +        "validate_wiki"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "tool",
      +    "arguments"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / pageCount / description
      Previous value: -"Pages judged."New value: +"Pages judged: the whole folder, or the named `paths`."
    • addedOutput schema / properties / pages / description
      Added value: +"Without `paths`, failing pages only, one page of them. With `paths`, every named page."
    • addedOutput schema / properties / pages / items / properties / blocking
      Added value: +{
      +  "description": "Whether any problem is more than advisory (orphan-page and shared-source-unlinked are advisory).",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / pages / items / properties / problems / description
      Added value: +"At most 20, in the order judged; each message escapes control and format characters."
    • addedOutput schema / properties / pages / items / properties / problems / items / properties / detail
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The pieces of `message`, so a screen can retell it in the reader's language: `key` names the sentence, `values` fills it.",
      +  "properties": {
      +    "key": {
      +      "type": "string"
      +    },
      +    "values": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "key"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / pages / items / properties / problemsOmitted
      Added value: +{
      +  "description": "Present when the page has more problems than `problems` shows: how many more.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / pages / items / required
      Previous value: -[
      -  "path",
      -  "ok",
      -  "problems"
      -]New value: +[
      +  "path",
      +  "ok",
      +  "blocking",
      +  "problems"
      +]
    • addedOutput schema / properties / pagesHint
      Added value: +{
      +  "description": "Present when the failing pages span more than one reply: which ones this reply shows, why it stopped, and the next call.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / pagination
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The page `pages` holds: `offset` is its position among `total` failing pages and `nextOffset` the position after it, both as of this call; resume with `nextCall`. Absent with `paths`.",
      +  "properties": {
      +    "hasMore": {
      +      "type": "boolean"
      +    },
      +    "limit": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "nextOffset": {
      +      "minimum": 0,
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "offset": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "returned": {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "total": {
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "offset",
      +    "limit",
      +    "total",
      +    "returned",
      +    "hasMore",
      +    "nextOffset"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The whole folder, whatever page `pages` holds. Absent with `paths`.",
      +  "properties": {
      +    "advisoryOnlyPages": {
      +      "description": "Failing pages whose only problems are advisory (orphan-page, shared-source-unlinked).",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "blockingPages": {
      +      "description": "Failing pages with at least one problem that is not advisory.",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "byCode": {
      +      "additionalProperties": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "count": {
      +            "description": "Pages with this code.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "files": {
      +            "description": "At most 20 of the `count` pages with this code, blocking pages first, each group by path.",
      +            "items": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "filesOmitted": {
      +            "description": "Present when `files` names fewer than `count`: how many more. Page through `pages` for them.",
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "severity": {
      +            "description": "`warning` for an advisory code, `error` for the rest.",
      +            "enum": [
      +              "error",
      +              "warning"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "severity",
      +          "count",
      +          "files"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "blockingPages",
      +    "advisoryOnlyPages",
      +    "byCode"
      +  ],
      +  "type": "object"
      +}
  3. First observedv0.13.0

TDQS

A3.6/5.0
Behavior3/5

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

The 'side effect 0' and 'judge only' framing are consistent with readOnlyHint=true and destructiveHint=false, so nothing is contradicted. The description does add genuine behavioral context beyond the annotations: results contain failing pages only, pagination must be followed via `nextCall` until `pagination.hasMore` is false, and cleanliness is determined by `failingCount` being 0. It stops short of describing cost, timing, or failure modes of the judgment itself, so it is helpful but not thorough.

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?

Three sentences, purpose and timing front-loaded, with the pagination contract packed into the final sentence. 'side effect 0' duplicates the readOnly annotation and could be dropped, but overall there is little waste.

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?

For a validator with a full input schema and an output schema, the definition covers what matters most: when to run it, that it mutates nothing, and how to interpret and exhaust the failing-page results. The one notable omission is routing versus the sibling `validate_vault`, which matters given both appear in the same catalog.

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 coverage is 100% and every parameter already carries a description, including the `paths` omit-to-page-all behavior and `afterPath` resume semantics, so the baseline is 3. The description's mention of `pages`, `nextCall`, and `failingCount` refers to output fields rather than clarifying input parameters, and `pages` is not an actual input parameter name, which risks mild confusion with `paths`.

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: judge the pages under `wiki/` against the wiki page contract referenced as `docs/ONTOLOGY-ATLAS-SPEC.md` §11. An agent knows exactly what is being checked. It does not differentiate itself from the sibling `validate_vault`, so the agent cannot tell which validator applies to which tree from the text alone.

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?

Gives explicit timing: 'after editing a page and before claiming a compile finished', which is a concrete workflow trigger. It does not state when NOT to use it or name an alternative, and with a sibling `validate_vault` present the boundary between the two is left unstated.

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