Skip to main content
Glama

ingest_documents

Loads SOP documents from a folder into the retrieval index so procedures can be queried with citations; unchanged files are skipped on re-ingestion.

Instructions

Load SOP documents (txt/md/csv/json/log) from a folder into the retrieval index. Re-ingesting unchanged files is a no-op.

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": {
      "folder_path": "<folder_path>"
    },
    "name": "ingest_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
folder_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real behavior: idempotency ("re-ingesting unchanged files is a no-op") and the accepted file types. But it omits key mutation semantics — whether changed files overwrite, whether files removed from the folder are pruned from the index, permission requirements, and whether the call is long-running or blocking.

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?

Two short sentences, scoping information first and the idempotency caveat second; no filler or redundant restatement of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is mechanically simple (one required string), which lowers the bar, and the description covers formats and idempotency. With no annotations and no output schema, though, an agent still cannot tell what happens to modified or deleted files, or what the call reports on completion.

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 0% for the single folder_path parameter, so the description must compensate. It adds the meaning that the argument is a directory to scan ("from a folder") rather than a file or glob, but says nothing about absolute vs relative paths, recursion depth, or how unreadable files are handled.

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 uses a specific verb ("Load") and resource ("SOP documents") and names the destination ("retrieval index"), plus enumerates the accepted extensions. It is clearly the ingestion tool versus the sibling list/search/check tools, though it never explicitly says so.

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: this is how documents get into the index that search_procedure presumably reads. However, there is no explicit when-to-use or when-not-to-use statement, no prerequisite call ordering, and no confirmation the sibling tools operate on the result of this one.

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