Skip to main content
Glama

cheap_read_file

Extract specific answers from local text, Markdown, PDF, log, or CSV files using a free LLM, returning cited evidence so Claude avoids reading entire files.

Instructions

PC のファイル(文章・Markdown・PDF・ログ・CSV など)を無料の LLM に読ませ、知りたいことだけを根拠の引用つきで返す。Claude がファイルを丸ごと読まずに済む。数字の集計・計算はスクリプトでやり、これには任せない。無料枠の API に送るので、個人情報・外に出せない内容は送らないこと。 自分の計測データ・未公開の資料も送らない。

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>",
      "question": "<question>"
    },
    "name": "cheap_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesファイルの絶対パス
quoteNo答えの根拠になる原文をそのまま引用させる
providerNo使う API。auto は自動で順に試すauto
questionYesこのファイルから知りたいこと
max_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does disclose the most consequential trait: the file content leaves the machine for a free third-party API, which is why sensitive material must not be sent. It also conveys that Claude avoids loading the whole file and that answers come back with verbatim citations. It says nothing about file-size limits, truncation, or failure behavior for unsupported formats.

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 purpose is front-loaded in the first sentence, followed by the computational exclusion and the privacy warning in priority order. The final two sentences overlap heavily (the second prohibition is a subset of the first), costing a small amount of redundancy.

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 five-parameter tool with no annotations and no output schema, the definition covers purpose, the key external-transmission risk, and the main exclusion. Gaps remain around large-file handling, supported-format failures, and the undocumented max_tokens parameter, but nothing essential to a correct first call is missing.

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 80%, so path, question, quote, and provider are already documented in the schema. The description's mention of returning only what you want to know with citations loosely reinforces question and quote but adds no format or syntax detail, and max_tokens — the one undescribed parameter — is not addressed at all. 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?

The description gives a specific verb and resource: it reads a file on the local PC (text, Markdown, PDF, logs, CSV) via a free LLM and returns only the requested answer with supporting quotations. That is far more concrete than a restatement of the name. It does not name any sibling tool (cheap_ask, cheap_fetch_summarize, cheap_image_describe), so the agent must infer the boundary from the file-based scope alone.

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 explicitly states one when-not-to-use case — numeric aggregation and calculation belong in a script, not this tool — and adds a clear prohibition on sending personal or unpublished data to the free-tier API. The remaining routing decisions, such as when to prefer cheap_ask or cheap_image_describe instead, are left unstated.

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