Skip to main content
Glama

create_pdf_from_markdown

Convert Markdown text into a PDF document. Provide the content and optionally specify the output file name.

Instructions

Generate a PDF document from Markdown content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_nameNoOutput file name (without extension)
markdown_contentYesMarkdown text to convert to PDF

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description must fully disclose behavioral traits. It only states creation of a PDF, omitting details about file overwrite behavior, naming conventions when file_name is null, synchronous/asynchronous execution, permission requirements, or the nature of the output (e.g., path vs. content). The existence of an output schema is noted but not described.

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?

A single sentence with no extraneous words. Every word is necessary, and the structure is clear and efficient.

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 simplicity and presence of an output schema, the description is mostly complete for basic usage. However, it lacks any reference to default behavior for the optional file_name parameter or the return type, though the output schema likely covers the latter. Slight improvement could clarify these points.

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?

Schema description coverage is 100%, with both parameters already described in the schema. The description adds no extra context beyond the schema, such as formatting constraints or relationship between parameters. Baseline 3 is appropriate since the schema adequately documents parameters.

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 'Generate a PDF document from Markdown content' clearly specifies the action (generate), the output resource (PDF document), and the input source (Markdown content). It effectively distinguishes the tool from siblings that produce other document formats (e.g., create_excel_from_markdown, create_word_from_markdown).

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives such as convert_docx_to_pdf or other markdown conversion tools. It does not mention exclusions, prerequisites, or typical use cases, leaving the agent without context for appropriate selection.

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/filhocf/docforge-mcp'

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