Skip to main content
Glama

Create Pdf

create_pdf

Creates clean PDF documents from structured blocks such as headings, paragraphs, bullet lists, and tables, letting AI assistants generate formatted PDFs at a specified path.

Instructions

Create a clean PDF document using structured blocks (headings, paragraphs, bullet lists, tables).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>",
      "blocks": "<blocks>"
    },
    "name": "create_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
titleNo
blocksYes
overwriteNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for a file-writing tool. It never explains the `overwrite` flag's effect (what happens if the path already exists), whether it creates parent directories, or that writes may destroy an existing file — the most important behavioral facts for a destructive-adjacent tool are missing.

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?

A single front-loaded sentence with no wasted clauses; the only soft spot is the vague qualifier 'clean', which conveys no verifiable behavior.

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?

The output schema exists, so return values need not be described, and the block-type enumeration gives a useful sketch of input shape. However, for a four-parameter, un-annotated write tool with a nested untyped array, the definition is too thin to call complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for four undocumented params including a free-form nested `blocks` array with additionalProperties=true. It only hints at the block vocabulary (headings, paragraphs, bullet lists, tables) and says nothing about `path`, `title`, or `overwrite`, leaving the required nested structure uninterpretable from the definition.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource ('Create a ... PDF document') and enumerates the block types it accepts (headings, paragraphs, bullet lists, tables), which distinguishes it from pdf_merge/pdf_split. It does not explicitly contrast itself with sibling generators like create_docx or create_pptx, so it stops short of a 5.

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 gives no when-to-use guidance, no exclusions, and no mention of when to prefer create_docx/create_pptx or pdf_merge instead. An agent must infer the routing decision from the tool name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.