Skip to main content
Glama

knowledge_create_chunks

Create text chunks for a datasource in a knowledge base by supplying JSON entries with text and metadata, enabling structured content storage and retrieval.

Instructions

Create chunks for a datasource

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": {
      "knowledge_id": "<knowledge_id>",
      "datasource_id": "<datasource_id>",
      "chunks_json": "<chunks_json>"
    },
    "name": "knowledge_create_chunks"
  }
}

Input Schema

NameRequiredDescriptionDefault
chunks_jsonYesJSON array: [{text, metadata}]
knowledge_idYesKnowledge base ID or key
datasource_idYesDatasource ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies a write operation, but it does not disclose whether chunks are appended, replaced, validated, or subject to limits, nor does it describe permissions or error behavior.

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 single sentence is front-loaded and free of filler. It is efficient, though its brevity leaves important details unstated rather than adding unnecessary wording.

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?

This is a mutation tool with three required parameters, no annotations, and no output schema, so the description should compensate with more behavioral detail. It does not explain the expected chunks_json format, batch limits, or what happens to existing chunks, leaving an agent under-informed.

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 required parameters are already documented in the schema. The description adds little parameter meaning beyond identifying that the chunks belong to a datasource, which is the baseline expectation when the schema does the heavy lifting.

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 states a specific verb and resource: it creates chunks for a datasource, and the plural 'chunks' hints at batch creation. It is clear enough to distinguish from datasource creation, but it does not explicitly distinguish this from the singular sibling tool that creates one chunk.

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

Usage Guidelines2/5

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

The description gives no guidance on when to use this tool versus alternatives such as creating a datasource or creating a single chunk. It also omits prerequisites, such as whether the datasource must already exist before chunks can be added.

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

Deploy Server

Other Tools