Skip to main content
Glama

upload_markdown

Upload markdown files to generate shareable links with customizable permissions for viewing, commenting, or editing content.

Instructions

Upload markdown to mdshare and receive a shareable link. The response contains a read/comment/edit share link (default permission: comment) that the user can share with others. The admin credential (full control) is stored locally in ~/.mdshare-mcp/documents.json and is NOT returned in this response — if the user explicitly asks to see or save the admin URL, call get_admin_url. PREFER file_path over content for files already on disk — reads directly from disk without transmitting content through this conversation, which is dramatically faster for files larger than ~1KB.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNoAbsolute path to a local markdown file. PREFERRED for any file already on disk — bypasses inline content transmission entirely.
contentNoInline markdown content. Only use this for short snippets composed in the conversation. For files on disk, use file_path instead.
share_permissionNoPermission level for the share link returned to the user. Default 'comment' — recipients can read and comment. Use 'view' for read-only, 'edit' for full write access.
Behavior4/5

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

The description adds valuable behavioral context beyond annotations: it explains that admin credentials are stored locally and not returned, describes performance implications (file_path is 'dramatically faster' for large files), and specifies the default permission level. Annotations cover basic safety (non-destructive, non-idempotent), but the description enhances this with practical details.

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 appropriately sized and front-loaded with the core purpose. Each sentence adds value: the first states the action and outcome, the second explains link permissions and admin credential handling, and the third provides performance guidance. No wasted sentences, though it could be slightly more streamlined.

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?

Given the tool's complexity (upload with performance considerations) and lack of output schema, the description does well to explain the response content (share link details) and behavioral nuances. It covers key aspects like credential storage, performance trade-offs, and sibling tool relationships, though it doesn't detail error cases or exact response format.

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?

With 100% schema description coverage, the schema already documents all parameters thoroughly. The description reinforces the file_path vs content preference and mentions the default share_permission, but adds minimal new semantic information beyond what's in the schema. This meets the baseline for high schema coverage.

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 clearly states the specific action ('upload markdown to mdshare') and the outcome ('receive a shareable link'), distinguishing it from siblings like generate_link or list_links by focusing on file/content upload rather than link generation or listing. It explicitly mentions the resource (markdown) and the platform (mdshare).

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 provides explicit guidance on when to use this tool vs alternatives: it directs to 'call get_admin_url' if the user asks for admin URLs, and distinguishes from siblings by its upload function. It also includes clear parameter usage rules (PREFER file_path over content for files on disk).

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/urbanmorph/mdshare'

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