Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

validate-markdown-template

Read-only

Check a Markdown template before saving or exporting; returns valid status or every problem with its JSON path.

Instructions

Use when: checking a template before saving it or exporting with it. Returns: valid true, or valid false with every problem as {path, message}, where path is a JSON path such as $.rules["inline.bold"].after. Do not use when: you want to store it (save-markdown-template validates too). Safety: read-only. Pass exactly one of name (a saved or built-in template), template (JSON object or text) or templateFile. templateFile reads only a regular .json file in home, temp or /Volumes, refusing hidden paths (~/.docker, .env) and ~/Library outside iCloud Drive and CloudStorage unless the server sets APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1; errors never quote the file.

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-markdown-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoTemplate name: a built-in (standard-markdown, obsidian) or a saved template's name
templateNoThe template itself, as a JSON object or JSON text (schemaVersion 1)
templateFileNoAbsolute path of a JSON template file ending in .json (home, a temp dir, or /Volumes; hidden paths and ~/Library outside iCloud Drive and CloudStorage refused unless the server sets APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1; symlinks refused; at most 256 KiB)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.16.11

TDQS

A4.6/5.0
Behavior4/5

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

Goes well past readOnlyHint by describing the return contract (valid true, or valid false with a {path, message} list and an example path shape) and the file-access policy — allowed roots, refusal of hidden paths and secret files, symlinks refused, an environment-variable escape hatch, and the promise that errors never quote file contents. The annotations are thin, so this disclosure is doing real work. Minor deduction: the conditional/variable scoping of the escape hatch could be stated more crisply for an agent deciding whether a path will be refused.

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 and well-segmented into Use when / Returns / Do not use when / Safety, with zero filler sentences. It loses a point only because the templateFile path rules are repeated almost verbatim from the schema, adding length without new information.

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?

For a validation tool this covers everything an agent needs: selection criteria, mutual exclusivity of inputs, the failure report shape, and the filesystem safety envelope. Naming the expected output fields is somewhat redundant with the output schema, but it is the right emphasis for a tool whose value is its error report.

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?

Schema coverage is 100%, so the baseline is 3. The description adds a constraint the schema does not encode — 'pass exactly one of name, template or templateFile' — which matters given no required parameters and no oneOf in the schema. The rest largely restates the templateFile restrictions already in the property description.

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: checking (validating) a template before saving or exporting with it. The scope is narrow and clearly distinct from save-markdown-template, which the description names as the alternative for storage.

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?

Explicit 'Use when' and 'Do not use when' sections, with the do-not case naming the sibling (save-markdown-template) that already validates on save. An agent can route correctly without inspecting any other tool.

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

Deploy Server

Other Tools