Skip to main content
Glama

Ingest documents (tracked)

ingest_documents_tracked
Idempotent

Persist a document batch with a durable ingestion receipt, enabling retry of the identical batch after interruption using the same workflow_id and request_id.

Instructions

Persist a document batch with a durable ingestion receipt. Retry the identical batch with the same workflow_id and request_id after interruption.

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": {
      "workflow_id": "<workflow_id>",
      "batch": "<batch>"
    },
    "name": "ingest_documents_tracked"
  }
}

Input Schema

NameRequiredDescriptionDefault
batchYes
workflow_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, but they do not say what the idempotency is keyed on; the description supplies that (workflow_id + request_id pair), which is the single most important behavioral fact for a retrying agent. Gaps remain: nothing about what the receipt contains, whether the call blocks or is asynchronous, or what happens if the same request_id is reused with a different document set.

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 sentences, no filler, with the core action front-loaded and the retry constraint immediately after. Every clause carries information.

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?

With no output schema, the description should say something about the returned receipt, and it does not beyond naming it. For a write tool taking a nested batch object, the definition covers the retry contract adequately but leaves the response shape and batch field semantics undocumented.

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%, so the description must carry parameter meaning and only partly does. It explains the role of workflow_id and request_id as a retry identity pair, which the schema does not, but index_name and documents are left entirely to their self-evident names, and the nested batch structure is never described.

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?

"Persist a document batch with a durable ingestion receipt" gives a specific verb (persist) and resource (document batch) plus the distinguishing artifact (receipt). It is unambiguous against the memory/code siblings, though it never explicitly contrasts itself with any other tool, which is why it stops short of 5.

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

Usage Guidelines4/5

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

The second sentence supplies concrete usage context: retry only the identical batch, only after an interruption, reusing workflow_id and request_id. That is actionable guidance an agent can follow. It stops short of 5 because there is no statement of when not to use it or what to do if the batch content differs on retry.

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