Skip to main content
Glama
Apple Notes MCP Server
by sweetrb

save-markdown-template

Store a named Markdown template so note exports can reuse it by name; validates input and blocks invalid or duplicate names unless replacement is forced.

Instructions

Use when: storing a template so export-notes-markdown can use it by name. Returns: name, path, bytes and whether an existing template was replaced. Do not use when: exporting once (pass templateFile to export-notes-markdown instead). Safety: writes one file in the template library only (APPLE_NOTES_MCP_TEMPLATE_DIR, default ~/Library/Application Support/apple-notes-mcp/templates, mode 0600). Validates first; an invalid template is refused with every JSON path. Create-only: an existing name is refused with [template-exists] unless force is true. Built-in names are reserved. templateFile follows the same read scope as validate-markdown-template.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "save-markdown-template"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName to save under: lowercase a-z, 0-9, "-" and "_", starting with a letter or digit
forceNoReplace an existing saved template of this name (default false: create-only)
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.9/5.0
Behavior5/5

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

Annotations only declare the write profile; the description adds where the write lands (APPLE_NOTES_MCP_TEMPLATE_DIR with default path), file mode 0600, validation-before-write, the create-only refusal with the [template-exists] code, the force override, and reserved built-in names. These are concrete failure modes and side effects an agent cannot get from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Labeled sections (Use when / Returns / Do not use when / Safety) put the routing decision first and the safety detail last. Every sentence carries either routing, failure-mode, or scope information; nothing is redundant filler.

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 4-parameter mutating tool with an output schema, the description covers destination, permissions, validation, refusal codes, override behavior, and reserved names. With an output schema present, the brief 'Returns' line is sufficient and nothing an agent needs to call it safely is missing.

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 still adds value by stating that invalid templates are refused with every JSON path and that templateFile shares the read scope of validate-markdown-template. It does not restate name syntax or size limits, which the schema already covers.

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?

The description states a specific verb and resource ('storing a template so export-notes-markdown can use it by name') and ties it to the sibling that consumes it. The tool is clearly distinguished from export-notes-markdown and validate-markdown-template.

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?

It gives explicit positive guidance ('Use when: storing a template...') and explicit exclusion with an alternative ('Do not use when: exporting once (pass templateFile to export-notes-markdown instead)'). An agent can route between the two without opening either schema.

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