Skip to main content
Glama

Ingest a document into the engagement

ingest_document

Extract and ingest document candidates (risks, requirements, etc.) into the current engagement. Preview by default; apply=true saves with source references and skips duplicates.

Instructions

既存ドキュメント(path)またはクライアントが読んだ本文(text)から抽出した候補を、現在のエンゲージメントに取り込む。既定(apply=false)はプレビューのみで一切書き込まない。apply=true で実際に登録し、各項目に出典(ファイル名:行番号)を残す。同じ表題の既存項目はスキップする。 / Ingest candidates extracted from a document into the current engagement. The default (apply=false) previews only and writes nothing. With apply=true each item is stored with its source reference (file:line); entries whose title already exists are skipped.

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.
applyNotrue で実際に保存する(既定 false はプレビュー) / Set true to actually persist; default false previews
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")
Install Server

TDQS

A4.4/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 safety burden and does so well: it explicitly states 'apply=false previews only and writes nothing' and 'With apply=true each item is stored with its source reference'. It also discloses the scanner's limitation (keyword/sentence-ending scan is worse than the agent's own reading) and the duplicate-title skip rule, which are not inferable from 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 main purpose, default behavior, persistence switch, and duplicate rule are contained in two front-loaded sentences, followed by a focused caveat about the text parameter. The bilingual format duplicates content, but both halves are compact and every sentence carries operational information.

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 write-capable tool with 6 parameters and no output schema, it covers the important decision points: preview vs persist, path vs text, duplicate handling, and source references. The main gaps are no description of the returned preview/result format and no explicit mention of an active-engagement prerequisite, but these do not block correct invocation.

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?

All parameters already have schema descriptions (100% coverage), so the description only needs to add value. It does: it explains the path/text exclusivity, warns that pasting already-read text does not improve accuracy, and clarifies that source labels appear in the source column. That advice goes beyond the schema's declarative descriptions.

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?

States the core action as a specific verb+resource: 'Ingest candidates extracted from a document into the current engagement.' The 'current engagement' scope and the ingest-vs-extract action distinguish it from sibling tools such as extract_from_document and read_document without ambiguity.

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?

Gives clear operational context by describing the preview default and the apply=true persistence behavior, and advises when the text parameter is or is not useful. However, it never explicitly tells an agent when to choose ingest_document over sibling tools such as extract_from_document or read_document, and it does not state prerequisites such as having an active engagement.

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