Skip to main content
Glama

Train KB Documents

lyzr_kb_train_documents

Ingest document objects into a knowledge base to train it. Provide the knowledge base ID and an array of documents to update its knowledge.

Instructions

Ingest an array of document objects into a knowledge base. Each document is a free-form object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rag_idYesKnowledge base id
documentsYesArray of document objects to ingest
Behavior2/5

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

The description adds no behavioral detail beyond the annotations. It does not mention whether training appends/overwrites, whether processing is synchronous or asynchronous, or any prerequisites or side effects. Given readOnlyHint is false, the write nature is already annotated, but the description fails to provide additional context for this mutation tool.

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 description is extremely concise, consisting of two short sentences that front-load the action and resource. There is no wasted text or redundant repetition of schema information.

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

Completeness2/5

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

The tool appears among a large family of KB training tools, but the description does not explain how this fits or when to choose it over others. It also lacks information about return values or processing behavior, and the absence of an output schema leaves a significant gap for a write operation.

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?

The schema already provides 100% coverage for both parameters. The description adds modest value by stating documents are 'free-form objects', which clarifies the flexible structure of the array items beyond the schema's empty object definition. No extra semantics for rag_id are provided.

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 clearly states the tool ingests an array of document objects into a knowledge base, using a specific verb ('Ingest') and resource ('knowledge base'). The mention of 'each document is a free-form object' distinguishes it from sibling tools that handle specific formats like text, website, or PDFs.

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?

The description implies usage for general document arrays but does not explicitly state when to prefer this over siblings like lyzr_kb_train_text or lyzr_kb_train_pdf. No exclusions or alternative tool references are provided, making the guidance implicit rather than explicit.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nandanNM/lyzr-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server