Skip to main content
Glama

Ingest Document Into Knowledge Base

knowledge_ingest

Ingest a document into a knowledge base: it is chunked, embedded and stored for you (managed RAG).

Args: namespace: The knowledge-base namespace. text: The document text. title: Optional title.

Returns: dict with keys: doc_id (str), n_chunks (int).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe document text to ingest
titleNoOptional title for the document
namespaceYesThe knowledge-base namespace to ingest into (alphanumeric/hyphen)

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses meaningful side effects: the document is chunked, embedded, and stored, and a doc_id with n_chunks is returned. It does not mention duplicate handling or namespace creation, but the core persistence behavior is transparent.

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 one-line overview is front-loaded, followed by a compact Args/Returns section that covers the remaining useful information without fluff. Every sentence earns its place.

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?

With no output schema, including the return keys is essential and present. The description gives enough about the ingestion pipeline for an agent to calibrate expectations. Minor gaps like whether re-ingesting the same text creates duplicates or how namespaces are created are secondary for a managed-RAG ingest tool.

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 100%, so all three parameters are already documented in the schema. The Args block simply restates namespace/text/title with terse descriptions and adds no additional constraints, examples, or edge-case guidance.

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?

The description opens with a concrete verb and resource: 'Ingest a document into a knowledge base', followed by the managed-RAG behavior (chunked, embedded, stored). This clearly distinguishes it from sibling read tools like knowledge_query and knowledge_list_documents.

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?

It establishes clear context: use when you have document text to store in a namespace for later retrieval. It does not explicitly list when-not-to-use conditions or name alternatives, but the read/write split among siblings makes the intended use obvious.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.6/5.0
Disambiguation4/5

Most tools map cleanly to distinct capabilities, and the descriptions make the intended use clear. A few adjacent pairs—extract_entities vs link_entities_to_wikidata and detect_pii vs detect_conversational_pii—require careful selection, but they are distinguishable by their stated outputs.

Naming Consistency4/5

Names are uniformly lowercase snake_case and mostly follow a verb_object pattern, such as analyze_*, detect_*, extract_*, summarize_text, and translate_text. A few outliers like aspect_sentiment, fraud_feedback, and knowledge_ingest break the verb-first feel, but the overall pattern remains predictable.

Tool Count3/5

At 22 tools, this is on the heavy side of the borderline range. Each tool has a distinct job, but the mix of core NLP, safety, fraud, health-checking, and knowledge-base management makes the surface feel sprawling rather than tightly scoped.

Completeness3/5

The core NLP coverage is broad: sentiment, toxicity, PII, entities, QA, summarization, translation, and groundedness are all present. However, the knowledge-base tools support ingest/list/query but no delete or update, creating a dead end when documents need correction or removal.

Resources