margins_doctor
Diagnose vault health by detecting orphan source pages, tracker drift, malformed frontmatter, and large raw files. Returns a structured report.
Instructions
Diagnose the vault's health. Returns a structured report of issues: orphan source pages (raw_file points to a missing file), tracker drift (source pages without tracker rows, or tracker rows for missing sources), files with malformed frontmatter, and large raw files. Read-only — never modifies the vault. Use when the user asks 'is anything broken?', 'check my vault', or before major operations.
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": "margins_doctor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||