Skip to main content
Glama

ingest_project_materials

Parse, chunk, and vectorize local project documents and folders into a specified knowledge base, recursively importing supported files and skipping hidden or Office lock files.

Instructions

将本地工程底稿或参考资料(支持 .pdf, .docx, .xlsx, .txt, .md)解析、分块并向量化入库到指定项目知识库。

支持直接传入整个文件夹路径:当列表元素为文件夹时,会自动递归扫描并导入该目录下所有受支持的文档(自动跳过隐藏文件与 Office `~$` 临时锁文件),用户无需逐一列出文件名。

参数:
    project: 项目名称(如 "长三角算力中心可研项目")。
    file_paths: 本地文件或文件夹绝对路径列表(可混传单个文件路径与文件夹路径)。

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": {
      "project": "<project>",
      "file_paths": "<file_paths>"
    },
    "name": "ingest_project_materials"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectYes
file_pathsYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/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 disclose real behavior: it is a mutating operation (content is written into the project knowledge base), folders are recursively scanned, hidden files and Office `~$` lock files are skipped, and the supported format set is enumerated. What is missing is behavior on re-ingestion (overwrite vs duplicate), failure handling for unparseable files, and whether the project must already exist.

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 opening sentence front-loads the purpose, formats, and destination, and a per-parameter block follows. There is mild redundancy: folder support is stated twice, and '用户无需逐一列出文件名' restates the recursion benefit already explained.

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?

Both required parameters are documented, folder semantics are covered, and an output schema exists so return values need not be described. For a mutating ingestion tool the gaps are re-ingestion/idempotency semantics and error behavior, which an agent would want before calling 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 coverage is 0%, so the description must compensate, and it largely does: `project` is explained with a concrete example ('长三角算力中心可研项目'), and `file_paths` is defined as a list of absolute local paths that may freely mix individual files and directories. It stops short of saying whether paths must exist on the calling machine or what happens if one is invalid.

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 names a precise verb chain and resource: parse, chunk, and vectorize local engineering drafts (.pdf, .docx, .xlsx, .txt, .md) into a specified project knowledge base. That is unmistakably different from the sibling set (drafting, exporting, evidence retrieval, consistency checks), although no sibling is named explicitly.

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?

Usage is implied by 'ingest into a project knowledge base' plus the note that a folder path can be passed so users need not list files. There is no explicit when-to-use/when-not guidance, no mention of when to prefer this over retrieving existing evidence or drafting, and no prerequisites stated.

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