Skip to main content
Glama

Extract engagement material from a document

extract_from_document

Extract risk, stakeholder, system, requirement, and action candidates from documents, returning a Markdown table with source line numbers and register-ready JSON for update_engagement.

Instructions

既存ドキュメント(報告書・台帳・管理表・議事録など)から、リスク / ステークホルダー / システム / 要件 / アクションの候補をキーワードと文末表現だけで機械的に切り出し、出典行番号付きの Markdown 表と update_engagement 用 JSON にする。書き込みは行わない。 このツールは文書を読解しません。 あなたが既に全文を読めているなら、候補出しは自分で行うほうが確実です(このツールの結果はあなたの読解の劣化版で、検証の手間だけが増えます)。 向いているのは次の 3 つだけ: (1) 会話に載せきれない量のファイルを行番号付きで機械的に走査する、(2) 拾わなかった行とその理由を記録として残す、(3) 台帳に貼れる形(出典付き JSON)に整える。 / Mechanically pull risk, stakeholder, system, requirement and action candidates out of a document using keywords and sentence-ending patterns, and return a Markdown table with source line numbers plus JSON for update_engagement. Nothing is written. This tool does not read or understand the document. If you can already read the whole text yourself, do the candidate selection yourself — this output is a lossy copy of your own reading and only adds verification work. It earns its place in three cases: (1) scanning a file too large to hold in the conversation, with line numbers; (2) keeping a record of what was skipped and why; (3) shaping results into register-ready JSON with citations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo抽出する種別。auto(既定)は全種別 / What to extract; "auto" (default) runs every kindauto
langNo出力言語 / Output languageboth
pathNo読み込むファイルの絶対パス(作業ディレクトリ / データディレクトリ / ホーム配下のみ。隠しディレクトリ配下は不可。最大 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)
textNoファイルの代わりに直接渡す本文。**あなたが既に読んで理解している本文をここに貼り直しても、読解の精度は上がりません**(この走査はキーワードと文末表現だけを見ており、あなたの読解より劣ります)。ここが役に立つのは、抽出した項目を**出典行番号付きの表と登録用 JSON の形に機械的に整えたい**ときだけです。path とはどちらか一方を指定する。 / Body text to scan instead of a file. **Pasting text you have already read does not improve accuracy** — this scan only looks at keywords and sentence endings, and it will be worse than your own reading. It is useful only when you want the result formatted mechanically, with source line numbers and register-ready JSON. Pass either this or path, not both.
sourceNotext を渡すときの出典名(出典表示に使う。例: "security-report.pdf p.12-18") / Label for the text you passed; it appears in the source column (e.g. "security-report.pdf p.12-18")
maxCharsNo返す最大文字数(超えた分は切り詰めた旨を明示) / Maximum characters to return; truncation is always reported
Install Server

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral burden and does so well. It discloses that the tool performs mechanical keyword and sentence-ending scanning, does not read or understand the document, is lossy, writes nothing, and returns output with source line numbers and register-ready JSON. It also warns that pasting already-read text will not improve accuracy, which is valuable behavioral context beyond 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core operation and the no-write guarantee, followed by a clearly emphasized limitation and three concrete use cases. Although it is bilingual and somewhat long, the repetition serves the tool's ja/en audience, and every sentence adds either capability, limitation, or usage guidance. Nothing is filler.

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?

For a tool with no output schema and no annotations, the description is remarkably complete. It tells the agent what the tool returns (Markdown table with source line numbers and update_engagement JSON), what it cannot do (understand the document), when to use it, when to avoid it, and how the parameters behave, including the path/text exclusivity and truncation reporting. The agent can decide correctly whether and how to invoke it.

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 description coverage is 100%, so the baseline is 3, and the schema already documents all six parameters. The description adds meaningful semantic context beyond the schema, especially for the text parameter: it warns that pasting already-understood text does not improve accuracy and clarifies that text is useful only for mechanical formatting into line-numbered tables and JSON. This goes beyond what the schema states.

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?

Describes a specific operation: mechanically extract engagement material candidates (risk, stakeholder, system, requirement, action) from a document and return a Markdown table with source line numbers plus JSON for update_engagement. The explicit statement that it does not read or understand the document sharply distinguishes it from sibling document tools like read_document, ingest_document, and summarize_document_for_architecture.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use guidance: it is appropriate only for (1) scanning files too large for the conversation, (2) recording skipped lines and reasons, and (3) producing register-ready JSON with citations. It also explicitly says when not to use it: if the agent can already read the full text, the agent should do candidate selection itself because this tool is a lossy inferior version.

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