Skip to main content
Glama

Update document

update_document

Update an mdgen document by ID, changing only specified fields such as title, markdown, or mode while preserving all other content.

Instructions

Update a document by id. Only the provided fields change; others are preserved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesDocument id
modeNoNew output mode
titleNoNew title
markdownNoNew Markdown body
Behavior2/5

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

With no annotations, the description carries the full burden. It adds partial update behavior ('Only the provided fields change; others are preserved'), but does not disclose return values, permissions, error conditions, or side effects, which are important for a mutation tool.

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?

Two sentences with front-loaded purpose and a concise behavioral note. No redundant 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?

Parameter schema is complete and partial update behavior is explained, but with no output schema or annotations, the description omits return value and error handling details, leaving some gaps for a mutation tool.

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?

Schema coverage is 100%, so baseline is 3. The description adds meaningful semantics by explaining that only provided fields change, giving each optional parameter a partial-update context that the schema alone does not convey.

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 'Update a document by id', which is a specific verb+resource pair. It distinguishes from sibling tools (list/read/create/delete) by focusing on modification of an existing document.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for updating an existing document but does not explicitly mention when to use it vs alternatives like create_document or read_document. No exclusions are given.

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/Shien-Inc/mdgen-mcp'

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