Skip to main content
Glama
p-touch-cube-mcp

p-touch-cube-mcp

by RRYZ09

print_label_text

Prints text and optional images as labels on a Brother P-touch CUBE over Bluetooth; use dry-run to preview the PNG before printing.

Instructions

文字(と、あれば画像)をラベルにして印刷する(PT-P300BT)。改行で複数行(12mm テープは 1 行がおすすめ)。

dry_run=true なら印刷せず、仕上がりの PNG だけ作る(最初は必ずこれで見る)。 tape_mm: 3.5 / 6 / 9 / 12 / 18 / 24。PT-P300BT で使えるのは 3.5〜12。実機で確認済みなのは 12 だけ。 media: laminated(ラミネート)/ non_laminated(布・リボンなど)。font_size 省略で高さに自動で合わせる。 image_path を渡すと、画像と文字を横に並べる。image_position: left(画像→文字)/ right(文字→画像)/ both(画像→文字→画像。画像で文字を挟む)/ between(文字→画像→文字。文字で画像を挟む。後ろの文字は text_after)。 icon_scale: 画像の大きさ 0.2〜1。 font_path: 好きなフォントファイル(かわいいフォントなど)。 latin_font_path: 半角の英数字・記号だけ別のフォントにする(日本語と英語を混ぜるとき)。 segments: 文字ごとにフォントを選ぶ。[{"text": "ラベル", "font_path": "/…/a.ttf"}, {"text": "Label", "font_path": "/…/b.ttf"}] を左から順につなぐ(1 行。text は無視される)。

Input Schema

NameRequiredDescriptionDefault
textYes
mediaNolaminated
copiesNo
dry_runNo
tape_mmNo
segmentsNo
font_pathNo
font_sizeNo
icon_scaleNo
image_pathNo
text_afterNo
image_positionNoleft
latin_font_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.4

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the physical device, that dry_run produces only a PNG, the supported tape widths and which are actually verified, the media materials, and that omitting font_size auto-fits to tape height. It omits copies behavior, return values/paths, and failure modes.

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?

Dense line-per-topic layout with the safety-relevant dry_run instruction placed high, and no filler sentences. It is long, but on a 13-parameter tool nearly every line adds distinct information; the segments example is justified by the undocumented nested shape.

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 13-parameter, no-annotation, no-output-schema tool the description covers the overwhelming majority of what an agent needs to call it correctly, including hardware constraints and mode interactions. Remaining gaps are copies and what dry_run actually returns.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate, and it does: 12 of 13 parameters get concrete meaning, including the tape_mm allowed set, image_position's four modes spelled out with ordering semantics and the text_after dependency, icon_scale's 0.2–1 range, and an inline JSON example for segments. Only copies is left unexplained.

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 opens with a concrete verb+resource: print text (and an image, if provided) as a label on a PT-P300BT. The text-first, image-optional framing implicitly separates it from the sibling print_label_image, but neither sibling is named, so an agent must infer the boundary.

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

Usage Guidelines4/5

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

Strong guidance for the riskiest path: 'dry_run=true なら印刷せず… (最初は必ずこれで見る)' explicitly tells the agent to preview first. It also gives selection rules for tape_mm (only 3.5–12 works on this device, only 12 is hardware-verified) and media types. It never states when to prefer print_label_image or printer_status instead.

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

Deploy Server

Other Tools