Skip to main content
Glama

Print a document

print_document

Typesets Markdown text into a clean US Letter PDF and prints it. Physically prints paper on the user’s connected printer. Printers marked needsAttention are skipped by automatic printer selection. Supported Markdown: # headings, paragraphs, - bullets, 1. numbered lists, - [ ] checkboxes, > quotes, bold, italic, --- rules, | simple | tables |, and ______ blanks for worksheet answers. Greek and Hebrew characters are supported. dry_run returns the page count without printing.

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": {
      "title": "<title>",
      "markdown": "<markdown>"
    },
    "name": "print_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesDocument title; printed in the page footer.
copiesNo
dry_runNoLay out the document and report the page count without printing.
markdownYesThe full document content in Markdown.
printer_idNoOne of your printer ids; omit to use your default or only printer.
allow_duplicateNoAllow printing the exact same document again within 3 minutes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false; the description adds the facts that matter most — printing is physical, needsAttention printers are skipped by automatic selection, and identical documents are blocked within a 3-minute window. These are real side-effect and rate-limit behaviors not derivable from the annotations, and none of them contradict the structured hints.

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 opening sentence front-loads the core action and the physical-print caveat follows immediately. The supported-Markdown enumeration is long but each element is functional; only the dry_run sentence duplicates schema text and could be trimmed.

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 mutation tool with no output schema, the description covers the highest-risk details: physical output, printer selection fallback, and the duplicate guard. The one meaningful gap is the return value of a successful print (e.g., a job id that get_print_job_status would consume), which an agent needs to chain the next call.

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 83%, so the baseline is already strong, but the description still earns credit by enumerating exactly which Markdown constructs the markdown parameter accepts (headings, tables, checkbox lists, blanks, Greek/Hebrew) — meaning the schema cannot convey. It also restates dry_run's page-count behavior, which is redundant with the schema.

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?

The description gives a specific verb chain and resource: it typesets Markdown into a US Letter PDF and then physically prints it. That clearly separates it from a name like print_pdf, but it never explicitly names or contrasts that sibling, so an agent must infer the distinction from the Markdown emphasis alone.

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?

Usage context is implied rather than stated: the Markdown-support list signals 'use this when you have Markdown content,' and dry_run is flagged as the no-print path. There is no explicit when-not-to-use guidance or pointer to print_pdf for existing PDFs, and no mention of how this relates to get_print_job_status or list_printers when choosing a printer_id.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources