Skip to main content
Glama

update_document

Destructive

Replace the entire content of an existing mdshare document using either a local file path or inline markdown text. Use file_path for documents already on disk to avoid content transmission.

Instructions

Update the content of an existing mdshare document (full replace). Requires edit or admin permission. If the document is in this MCP server's local store, 'key' is optional. PREFER file_path over content for files already on disk — reads directly from disk without transmitting content through this conversation. If both file_path and content are provided, file_path wins. For small edits to large documents, consider patch_document instead — keeps version history granular.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYesDocument ID
keyNoEdit or admin key. Optional if the document is in this MCP server's local store.
file_pathNoAbsolute path to a local markdown file. PREFERRED for any file already on disk — bypasses inline content transmission entirely.
contentNoInline markdown content (full document body). Only use for short content composed in the conversation. For files on disk, use file_path instead.
authorNoYour name (for edit attribution)
Behavior4/5

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

The description adds valuable behavioral context beyond what annotations provide. While annotations indicate destructive (true) and non-idempotent (false) operations, the description clarifies this is a 'full replace' operation, explains permission requirements, specifies parameter precedence rules ('file_path wins'), and mentions version history implications compared to patch_document. No contradiction with annotations exists.

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 efficiently structured with front-loaded key information (purpose and permission requirements), followed by parameter guidance and alternative tool recommendation. Every sentence adds value without redundancy, making it easy for an agent to parse and apply.

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?

For a destructive mutation tool with rich annotations but no output schema, the description provides strong contextual completeness. It covers purpose, permissions, parameter usage, alternatives, and behavioral implications. The only minor gap is lack of explicit information about return values or error conditions, but this is mitigated by the comprehensive parameter guidance.

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?

With 100% schema description coverage, the baseline is 3, but the description adds meaningful context about parameter usage: it explains when 'key' is optional, provides guidance on choosing between 'file_path' and 'content' based on file location and size, and clarifies the 'author' parameter's purpose for attribution. This goes beyond the schema's technical descriptions.

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 tool's purpose with specific verb ('update'), resource ('existing mdshare document'), and scope ('full replace'). It distinguishes from sibling tools like 'patch_document' by specifying this is a full replacement rather than incremental editing.

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: 'PREFER file_path over content for files already on disk' and 'For small edits to large documents, consider patch_document instead.' It also specifies permission requirements ('Requires edit or admin permission') and contextual conditions for optional parameters.

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