Skip to main content
Glama

ingest_file

Index or re-index a single local file by absolute path, replacing any previously stored chunks with freshly parsed content for hybrid search.

Instructions

Ingest or re-ingest one file, replacing any content already indexed for it.

filePath must be an absolute path inside a configured document root. Re-ingesting an already-indexed file discards its old chunks and replaces them with freshly parsed ones. With a classify.toml, labelProblem says which labels the document was stored without, and why; a full sync asks again.

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": {
      "filePath": "<filePath>"
    },
    "name": "ingest_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathYes

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 well: it discloses that re-ingestion is destructive to old chunks, that the path must be absolute and inside a configured document root, and how classify.toml affects stored labels. It omits permissions, error behavior for out-of-root paths, and whether ingestion is synchronous or queued.

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 core action and its replacement semantics are front-loaded in the first sentence, with constraints following. The closing sentence about classify.toml and labelProblem is slightly cryptic ('a full sync asks again') and costs a little clarity.

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 single-parameter mutation tool with an output schema already covering return values, the description supplies the essential context: path constraints, replacement behavior, and label reporting. Missing only secondary details like sync/async behavior and failure modes.

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% and the schema only types filePath as a string, so the description's 'absolute path inside a configured document root' adds real constraint information the schema lacks. That is the key semantic detail an agent needs to avoid a failed call.

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 specific verb and resource ('Ingest or re-ingest one file') and states the effect ('replacing any content already indexed for it'). The word 'one file' plus the filePath constraint implicitly sets it apart from ingest_data and ingest_url, though 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?

It implies when to use the tool via the re-ingest case ('Re-ingesting an already-indexed file discards its old chunks'), but gives no explicit when-not guidance and never contrasts itself with ingest_data, ingest_url, or sync_start. An agent must infer the alternatives from sibling names alone.

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