Skip to main content
Glama
pvliesdonk

markdown-vault-mcp

by pvliesdonk

Write Note

write
Idempotent

Create or overwrite markdown documents and attachments in a vault. Supports frontmatter, full body content, and base64 binary data, with search index updates on write.

Instructions

Create or overwrite a document or attachment.

For .md documents: uses 'content' (markdown body) and optional 'frontmatter'. WARNING: replaces the entire file — use 'edit' for targeted changes. The search index is updated immediately; do not call 'reindex' afterward.

For attachments (pdf, png, etc.): uses 'content_base64' (base64- encoded binary). 'content' and 'frontmatter' are ignored. Parent directories are created automatically for both.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRelative path (e.g. "Journal/note.md" or "assets/photo.png"). Extension determines handling.
contentNoFull markdown body for .md files (excluding frontmatter). Ignored for attachments.
if_matchNoOptional etag obtained from a previous 'read' call. When provided, the write only proceeds if the file has not been modified since that read (optimistic concurrency). Omit to write unconditionally.
frontmatterNoOptional YAML frontmatter dict for .md files, e.g. {"title": "My Note", "tags": ["draft"]}. Ignored for attachments.
content_base64NoBase64-encoded binary content for attachment files. Required when path is not ``.md``. **Context cost:** base64 encoding inflates by ~33%; even a 1 MB attachment becomes ~1.3 MB of tokens.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior1/5

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

The description warns 'replaces the entire file', which is a destructive overwrite behavior, while the annotations declare destructiveHint=false. This is a direct contradiction: an agent relying on annotations could wrongly assume the operation is non-destructive. Despite useful disclosures like immediate index updates, the contradiction forces a score of 1.

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?

The description is well-structured and front-loaded: the core purpose appears first, followed by clearly separated markdown and attachment branches. The warning and index-update note are valuable rather than filler. It is slightly long but every section earns its place.

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?

The description covers the two main usage modes, the overwrite warning, index behavior, automatic parent directory creation, and the concurrency option via if_match. Since an output schema exists, return-value details are not required. A small gap is that it does not describe failure behavior when if_match conflicts, but overall the description is complete enough for successful invocation.

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 meaningful semantics beyond the schema by grouping parameters by file type: content/frontmatter for .md files, content_base64 for attachments, and explicitly noting that content and frontmatter are ignored for attachments. It also adds the base64 token-cost warning, which is helpful context not present in the schema.

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 opens with a specific verb and resource: 'Create or overwrite a document or attachment.' It clearly separates markdown documents from binary attachments and explicitly names the sibling alternative 'edit' for targeted changes, so an agent can distinguish write from edit/append/delete without opening schemas.

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?

The description gives explicit when-to-use guidance: use 'edit' for targeted changes instead of write, and do not call 'reindex' afterward because the search index updates immediately. It also states that parent directories are created automatically, removing any need for a separate mkdir step.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pvliesdonk/markdown-vault-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server