Skip to main content
Glama
fop-label-mcp

fop-label-mcp

by kntys

validate_csv

Checks a CSV against a label template and reports missing columns, empty cells, shrunk or truncated text, and missing images so data issues are fixed before generating print-ready PDFs.

Instructions

CSV とテンプレートを突き合わせる。足りない列、空欄、自動縮小される文字、 最小サイズでも収まらない(省略される)文字、見つからない画像を報告する。

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": "validate_csv"
  }
}

Input Schema

NameRequiredDescriptionDefault
fontsNoフォント別名→TrueType(.ttf/.ttc) パスの対応。例 {"gothic": "/path/NotoSansJP.ttf"}。指定がなければ HeiseiKakuGo-W5 / HeiseiMin-W3(埋め込みなし)
csv_pathYesCSV ファイルのパス(絶対パス推奨)。1行目は見出し
encodingNoCSV の文字コード。utf-8(BOM 可)または shift_jisutf-8
templateYesテンプレート名(例: name_badge)または .json ファイルのパス
font_pathNo全ての文字にこの TrueType フォントを使う(サブセット埋め込み)
template_dirNo追加のテンプレートフォルダ(許可されたフォルダの中)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 load. It does disclose the interesting behavior — it reports five distinct classes of problems including automatic font shrinking and truncation at minimum size — which implies a read-only analysis that modifies nothing. It does not state whether findings are returned as data, warnings, or a hard failure, nor what it does with a CSV that has extra columns.

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?

Front-loaded with the core action, then a disciplined enumeration where each clause names an independently actionable check. Slightly dense but no filler sentences.

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 six-parameter read-only validation tool with a fully documented schema and no output schema, the description covers enough to call it correctly and to know what kinds of findings to expect. The main residual gap is the shape of the result (report object vs. error), which the absence of an output schema leaves unaddressed.

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%, so every parameter including fonts, encoding, and template_dir is documented in the schema. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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+resource: matching a CSV against a template, then enumerates exactly what it reports (missing columns, blanks, auto-shrunk text, truncated text, missing images). That makes it clearly a validation/diagnostic tool rather than a generator like generate_pdf, though it never names a sibling to sharpen the contrast.

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 is only implied — the natural reading is 'run this to check a CSV before rendering', but the description never says when to call it versus preview_label or generate_pdf, nor any prerequisites such as template availability.

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