Skip to main content
Glama
reinlainer

PostMD MCP Server

by reinlainer

postmd_update_document

Update an owned Markdown document by replacing its Markdown body or modifying metadata fields—title, viewer theme, password, or share expiration—via the PostMD API.

Instructions

Update a document you own. Requires an API key with documents:write. Include markdown to replace the stored content; any metadata field replaces that field. clearPassword / clearShareEndDate remove the password / end date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNo
docCodeYes
fileNameNoUpload filename when replacing content. Default document.md.
markdownNoFull new Markdown body as one UTF-8 string. Omit if only metadata changes.
passwordNoReaders must supply this password to see the content.
viewerStyleNoViewer theme: readable (default), github, minimal, report, pamphlet or dark. Unknown values fall back to readable.
shareEndDateNoyyyyMMdd. The document stops being served after this date. Omit for no end date.
clearPasswordNotrue removes the password.
clearShareEndDateNotrue removes the end date, making sharing open-ended.
Install Server

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose the key write behaviors: markdown replaces stored content, metadata fields replace only that field, and clear flags remove the password/end date. It also states the required write permission. It falls short of 5 because it does not describe return values or conflict behavior such as password plus clearPassword together.

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 carefully written sentences with no filler. The first sentence covers purpose and auth, and the second covers all important update/removal semantics, front-loading the most critical information.

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?

The tool has 9 parameters, no annotations, and no output schema, so the description must cover more ground. It handles auth, ownership, replacement, and removal semantics well, but it omits return-value information, the file-upload alternative, and conflict handling between password and clearPassword. These are gaps an agent would need to resolve from sibling tools or runtime behavior.

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?

The schema already documents 7 of 9 parameters, so the baseline is 3. The description adds useful cross-field semantics: 'any metadata field replaces that field' and clear flags remove values rather than set them, which is not captured by the property descriptions alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: 'Update a document you own,' with an ownership constraint that helps scope the tool. It also explains that markdown replaces stored content and metadata fields replace individual fields. It does not explicitly contrast itself with postmd_update_document_from_file, so sibling differentiation is only implicit.

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 gives a clear precondition: 'Requires an API key with documents:write.' It also explains when to use markdown, metadata fields, and the clear flags, which gives an agent solid context for calling the tool. It does not name alternatives or state when not to use this tool, so exclusions are missing.

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

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/reinlainer/postmd-mcp-server'

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