Skip to main content
Glama

Read an existing document

read_document

Read a local document and return normalized text: CSV/TSV become Markdown tables, HTML/XML tags are stripped, JSON is pretty-printed. Unsupported PDF/DOCX/XLSX files return a workaround.

Instructions

手元の既存ドキュメント(.txt/.md/.csv/.tsv/.json/.html/.xml)を読み、形式に応じて正規化したテキストを返す。CSV/TSV は Markdown 表に、HTML/XML はタグ除去、JSON は整形または構造要約。PDF/docx/xlsx は未対応(回避策を返す)。 / Read a local document (.txt/.md/.csv/.tsv/.json/.html/.xml) and return normalized text: CSV/TSV as a Markdown table, HTML/XML with tags stripped, JSON pretty-printed or outlined. PDF/docx/xlsx are unsupported and return a workaround.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNo出力言語 / Output languageboth
pathYes読み込むファイルの絶対パス(作業ディレクトリ / データディレクトリ / ホーム配下のみ。隠しディレクトリ配下は不可。最大 1,024 文字) / Absolute path of the file (must sit under the working directory, the data directory, or your home directory; hidden directories are excluded; at most 1,024 characters)
maxCharsNo返す最大文字数(超えた分は切り詰めた旨を明示) / Maximum characters to return; truncation is always reported
Install Server

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the transparency burden. It discloses format-specific normalization behavior and the fallback for unsupported formats, and the verb 'read' implies a non-destructive operation. It does not discuss authorization or error handling, but these are secondary for a simple read tool.

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 description is compact and front-loads the core action and supported formats, then adds normalization specifics. The bilingual duplication doubles length but is organized and not padded; it earns its place for a multilingual tool.

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?

Although there is no output schema, the description explains what the returned text looks like for each format and notes the unsupported-format workaround. It omits details about the workaround's shape and error behavior, but for a local-file reader the key decision factors are covered.

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 the schema fully documents lang, path, and maxChars. The description adds no parameter-level guidance beyond signaling supported file formats, which is already evident from the example extensions in the text; baseline 3 is appropriate.

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 states a clear verb and resource: it reads a local document and returns normalized text, with concrete format mappings (CSV/TSV to Markdown, HTML/XML tag-stripped, JSON pretty-printed/outlined). It does not explicitly differentiate itself from sibling tools such as extract_from_document or ingest_document, so an agent must infer the distinction.

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?

The description implies when to use the tool: for local text-based files in the listed formats, and it explicitly warns that PDF/docx/xlsx are unsupported and produce a workaround. It provides no explicit when-not or alternative tool names, leaving the choice among document-processing siblings to inference.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Waganawa-Megumin/togaf10_EAP_MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server