Skip to main content
Glama
rag-chunk-mcp
by leofannf

chunk_text

Split documents into RAG-ready chunks using fixed, sentence, or recursive strategies while retaining source offsets for accurate citations; configure chunk size and overlap as needed.

Instructions

Split a document into RAG chunks with source offsets for citations.

strategy is one of "fixed", "sentence", "recursive". size is the max characters per chunk. overlap applies to "fixed"; overlap_sentences applies to "sentence".

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": {
      "text": "<text>"
    },
    "name": "chunk_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNo
textYes
overlapNo
strategyNorecursive
overlap_sentencesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does reveal two useful behavioral facts: chunks carry source offsets suitable for citations, and overlap/overlap_sentences are conditionally applicable per strategy. However, it says nothing about the return structure (chunk list? offsets format? empty-result behavior) or whether any resource limits apply, leaving meaningful gaps for an unannotated tool.

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?

Purpose is front-loaded in one sentence, followed by tightly packed parameter notes with no filler. The body is slightly hard to scan because the strategy enumeration, size, and the two overlap rules are run together in a single line-broken paragraph rather than listed.

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?

For a 5-parameter transform with no output schema and no annotations, the definition covers invocation semantics adequately but leaves the return contract vague — "source offsets for citations" hints at output without saying what a chunk object contains or how offsets are expressed. An agent could call it, but could not confidently parse or validate the result from this description alone.

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?

With 0% schema description coverage across 5 parameters, the description does real work: it enumerates the three valid strategy values (fixed, sentence, recursive), defines size as max characters per chunk, and scopes overlap to "fixed" and overlap_sentences to "sentence". It falls short of ideal by omitting units for overlap, the default strategy (recursive), and any description of the required text parameter, but it substantially compensates for the bare schema.

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 first sentence names a specific verb and resource ("Split a document into RAG chunks") and states the added value ("source offsets for citations"). It is clearly distinct from the siblings compare_strategies and explain_strategy, which are analysis/explanation verbs rather than transforms, though the description never explicitly contrasts itself with them.

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?

Usage is only implied: the parameter notes tell the agent which knob to turn for which strategy, which is genuine guidance for invoking the tool. But there is no statement of when to choose this tool over compare_strategies or explain_strategy, no prerequisites, and no note on edge cases like empty or very short text.

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