Skip to main content
Glama
md-log

md-log-mcp

Official
by md-log

Update Markdown

update_markdown

Replace content of an existing Markdown file with version control support. Use expected_version for safe concurrent edits or omit to force overwrite.

Instructions

Replace the content of an existing .md file. Pass expected_version for optimistic concurrency (mismatch -> CONFLICT); omit it to force last-writer-wins.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPOSIX path to the .md file, e.g. 'reports/2026/error-report.md'. Folders auto-created.
contentYesNew full markdown content.
commit_messageNoA concise 1-2 line summary of WHAT changed in this version and WHY, written for a human reviewer scanning the version history (stored on the version, shown next to it on web & mobile). ALWAYS provide this — diff the old and new content in your head and summarize the change yourself (e.g. 'Corrected the JWT TTL table and added the tablet 90d refresh note').
expected_versionNoVersion you based your edit on. Omit to force-overwrite (LWW).
Behavior3/5

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

With no annotations, the description is expected to disclose behavioral traits. It covers the concurrency behavior well but omits details on required authentication, error cases (e.g., file not found), and side effects beyond the conflict scenario. The schema mentions 'Folders auto-created' but the description does not.

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?

The description is two sentences, each earning its place. The first sentence states the core purpose, and the second provides crucial usage guidance. No superfluous text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description covers the main behavioral nuance (concurrency) but lacks information about return values, prerequisites, and error states beyond the conflict case. For a mutation tool, more detail on what happens upon success or failure would improve completeness.

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 description coverage is 100%, setting a baseline of 3. The description adds context on the concurrency semantics for 'expected_version' (mismatch -> CONFLICT), which is slightly more detailed than the schema's description. No additional meaning is added for other parameters.

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 uses 'Replace the content of an existing .md file', specifying the verb 'replace' and the resource 'content of an existing .md file'. This clearly differentiates from the sibling tool 'append_to_markdown', which appends rather than replaces.

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?

The description explicitly advises when to use the 'expected_version' parameter for optimistic concurrency and when to omit it for last-writer-wins. However, it does not provide explicit guidance on when to prefer this tool over alternatives like 'append_to_markdown' or 'save_markdown'.

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/md-log/md-log-mcp'

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