Skip to main content
Glama
mcp-sjis-server

mcp-sjis-server

by fukumen

sjis_read

Reads Shift-JIS/CP932 files as UTF-8 text with optional line ranges, replacing terminal cat/head/tail for inspecting encoded text files.

Instructions

Shift JIS/CP932 ファイルを読み込み、UTF-8 文字列として返します。terminal の cat/head/tail の代わりに使用してください。出力形式は '行番号: 行内容' の連結テキストで、先頭にファイル情報のヘッダ行、末尾に EOF マーカーが付きます。大きなファイルには startLine と endLine を使用してください。最大2000行まで読み込み可能。1行2000文字を超える場合は切り詰められます。画像やその他のバイナリファイルの読み込みには対応していません。

注意: ファイルの行末コード(CRLF/LF/CR)はそのまま出力されます。読み込んだ内容を編集する際は、元の行末コードを維持するよう正しく指定してください。

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": {
      "path": "<path>"
    },
    "name": "sjis_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesファイルの絶対パス
endLineNo読み込みを終了する行番号(1始まり)
startLineNo読み込みを開始する行番号(1始まり)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior5/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 so: it discloses the exact output shape (header line, 'line number: content', EOF marker), a 2000-line cap, per-line truncation at 2000 characters, unsupported binary input, and that CRLF/LF/CR are preserved verbatim. This is exactly the operational detail an agent needs before calling.

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?

Purpose is front-loaded, then alternative-use, output format, parameters, limits, exclusions, and a trailing caveat — a logical order with no filler sentences. The closing note on line-ending preservation is slightly verbose but is materially useful information rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, so the description must supply return format and behavioral limits itself — and it does, including truncation and unsupported-input cases. Nothing an agent needs to call this correctly appears to be missing.

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 baseline is 3; the description adds practical meaning by tying startLine/endLine to the large-file case and to the 2000-line ceiling. It does not add format/syntax detail beyond the schema's 1-based notation, so it stops just short of the top.

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 names a specific verb and resource ('Shift JIS/CP932 ファイルを読み込み、UTF-8 文字列として返します') and its read-only nature is immediately distinguishable from mutation siblings like sjis_write and sjis_patch. It also states what the tool is not for (images/binary), which sharpens 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?

It gives explicit usage positioning ('terminal の cat/head/tail の代わりに使用してください') and conditional guidance for large files via startLine/endLine. It does not explicitly route the agent away from this tool toward sjis_grep when the goal is searching rather than reading, which is the remaining gap.

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