Skip to main content
Glama
EthanPany

thermal-mcp

by EthanPany

preview_html

Generate a concise meta description focused on the purpose of the tool "preview_html" from the MCP server "thermal-mcp".

Instructions

Render ticket HTML WITHOUT printing. Returns the EXACT 1-bit image that would be printed (after dithering/thresholding) — always preview before print_html.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesHTML body fragment to render on 58mm thermal paper (384px wide canvas, unlimited height, 1-bit black & white output). You may include your own <style> tag. Remote images and web fonts (e.g. Google Fonts) ARE supported. Grayscale/color images and gradients are supported — they are dithered to 1-bit with a high-quality algorithm. Special feature: <img data-qr="text or url" width="160"> is replaced with a generated QR code. Call the design_guide tool first for fonts, layout, and house-style guidance (or read the "thermal-print" skill if you're in Claude Code).
modeNobinarization mode: "auto" (default — detects photos/gradients and dithers them, keeps pure text razor-sharp), "text" (hard threshold), "photo" (force Atkinson dithering)
algorithmNophoto dithering algorithm: "atkinson" (default, crisp), "jarvis" (smoother gradients), "bayer" (ordered halftone / newspaper look)
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden. It clearly reveals the preview/print behavioral trait (returns exact printed output, no physical printing), explains rendering details (1-bit, dithering), and discloses capabilities like QR generation and remote image support. This is rich behavioral context.

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 description is somewhat long but every sentence earns its place: it describes output fidelity, canvas dimensions, style support, special features, and usage guidance. The key differentiator ('Render... WITHOUT printing') is front-loaded.

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 3-param tool with no output schema and no annotations, the description is thorough. It covers canvas specs, supported features, QR generation, mode selection, and ties to design_guide and print_html. Minor gap: no mention of return value format (image data vs URL), but overall it's quite complete for the tool's complexity.

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 the schema documents all three parameters. The description adds meaningful value by explaining the html canvas spec (58mm, 384px wide, unlimited height), the QR data attribute feature, and clarifying mode/algorithm semantics (auto detects photos vs text, bayer gives halftone look). This goes beyond the schema.

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 states a specific verb+resource ('Render ticket HTML WITHOUT printing') and clearly distinguishes from the sibling print_html by emphasizing the preview-only behavior. It also explicitly notes it returns the exact 1-bit printed image, making its functional scope unmistakable.

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 gives explicit guidance: 'always preview before print_html', directly telling the agent when to use this tool relative to its sibling. It also instructs calling design_guide first or reading the thermal-print skill, adding clear context for proper usage.

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/EthanPany/thermal-mcp'

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