Skip to main content
Glama
reinlainer

PostMD MCP Server

by reinlainer

postmd_upload_attachment

Upload an image or PDF to obtain a direct URL for embedding in Markdown documents. The returned link can be used as an image or attachment target before publishing.

Instructions

Upload an image or PDF to reference from a document. Requires an API key with documents:write. Allowed types: png, jpg, jpeg, gif, webp, svg, bmp, pdf. Use the returned data.url as the image/link target in your Markdown, then publish the Markdown with postmd_create_document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNameNoUpload filename. Defaults to the basename of filePath.
filePathYesPath to the file on the MCP server host. Prefer an absolute path.
Install Server

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden. It discloses the required auth scope, allowed file types, and the returned data.url usage. It does not mention limits like file size or overwrite behavior, but the main side effects and prerequisites are covered.

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?

Three concise sentences front-load the purpose, then give the requirement, allowed types, and the next step. There is no filler or redundant restatement of the schema.

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 two-parameter upload tool with no annotations and no output schema, the description is strong: it covers auth, accepted types, how to use the response URL, and the logical next tool call. Nothing essential for a correct invocation is missing.

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?

The input schema already documents both parameters: filePath (path on the MCP server host, absolute preferred) and fileName (defaults to basename of filePath). The description adds the allowed-file-types constraint but does not add significant parameter-specific meaning beyond the schema, so the baseline of 3 is appropriate.

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 opening sentence uses a specific verb ('Upload') with a clear resource ('an image or PDF') and purpose ('to reference from a document'). This distinguishes it from the sibling create/update tools, none of which target attachments.

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 clear when-to-use context: uploading an image or PDF to be referenced from a Markdown document. It also states the prerequisite API key scope and the follow-up workflow using postmd_create_document, though it does not explicitly discuss when not to use this tool.

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