Skip to main content
Glama
fop-label-mcp

fop-label-mcp

by kntys

preview_label

Generates a one-label-size PDF from a single CSV row and template so you can verify data and layout before printing.

Instructions

CSV の1行だけを、ラベル1枚分のサイズの PDF にして確認用に出力する。

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": {
      "csv_path": "<csv_path>",
      "template": "<template>"
    },
    "name": "preview_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowNoプレビューするデータ行(見出しを除いて 1 始まり)
fontsNoフォント別名→TrueType(.ttf/.ttc) パスの対応。例 {"gothic": "/path/NotoSansJP.ttf"}。指定がなければ HeiseiKakuGo-W5 / HeiseiMin-W3(埋め込みなし)
bleed_mmNo塗り足し mm(0〜3)
csv_pathYesCSV ファイルのパス(絶対パス推奨)。1行目は見出し
encodingNoCSV の文字コード。utf-8(BOM 可)または shift_jisutf-8
templateYesテンプレート名(例: name_badge)または .json ファイルのパス
font_pathNo全ての文字にこの TrueType フォントを使う(サブセット埋め込み)
overwriteNo同名の PDF が既にあれば上書きする(既定は上書きせずエラー)
crop_marksNoトンボを付ける
output_pathNo保存先 PDF パス(許可されたフォルダの中)。省略時はサーバー専用の一時フォルダ
template_dirNo追加のテンプレートフォルダ(許可されたフォルダの中)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that only a single row is rendered onto one label-sized page, but says nothing about the file it writes, folder restrictions, or overwrite behavior (those exist only in the schema).

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 sentence with zero filler, and the distinguishing scope ('1行だけ') is front-loaded. It is efficient, though extremely terse for an 11-parameter tool.

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 rich schema compensates for much of the missing detail, and there is no output schema to explain. However, for a tool with 11 parameters, no annotations, and a real file-writing side effect, one sentence leaves behavioral context (output location defaults, permission scoping, error on existing file) largely to the schema.

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 all 11 parameters documented in the schema itself, so the baseline is 3. The description adds no parameter-level meaning such as row indexing semantics or font/bleed behavior beyond what the schema already explains.

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 output (a PDF of exactly one CSV row, sized as a single label) and the intent (確認用 / preview). The '1行だけ' scope implicitly separates it from generate_pdf, but no sibling is named explicitly.

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?

'確認用に出力する' frames the tool as a preview/verification step, which implies when to reach for it rather than generate_pdf. No explicit when-not conditions, prerequisites, or alternative tools are stated.

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