Skip to main content
Glama

Text in Abschnitte teilen (Chunking)

text_aufteilen

Splits long text into chunks of at most N tokens with optional overlap, preferring paragraph and sentence boundaries, ready for embeddings and retrieval (RAG). Returns each chunk with token count and character offsets. Text-Chunking für RAG. Preis $0.005 (x402).

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": "text_aufteilen"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText
modellNoTokenizer: o200k (GPT-4o, o1, GPT-4.1) oder cl100k (GPT-4, GPT-3.5); für andere Modelle eine Näherung
max_tokensNomax_tokens
ueberlappungNoTokens Überlappung

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the boundary-preferring algorithm, the return payload (chunk plus token count and character offsets), and the $0.005 x402 cost. It does not say whether output is deterministic or how errors/oversized input are handled, so it falls short of full disclosure.

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?

Front-loaded with the core operation, then return shape, then use case, then price — an efficient ordering with no filler. The mixed German/English sentences are slightly redundant ('Text-Chunking für RAG' repeats the earlier clause).

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?

For a 4-parameter pure transformation with full schema coverage and no output schema, the description covers behavior and return values adequately. Missing defaults for max_tokens and ueberlappung are the main residual gap, but the agent can still call it correctly.

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 the schema already explains text, modell tokenizer choice, max_tokens and ueberlappung. The description restates 'at most N tokens with optional overlap' but adds no default values, valid ranges, or guidance on choosing a tokenizer beyond what the schema says.

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?

States a specific verb and resource ('Splits long text into chunks') with the defining constraint (max N tokens, optional overlap, boundary preference). This is clearly distinguishable from sibling text tools such as json_aus_text or pdf_text.

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 implied by 'ready for embeddings and retrieval (RAG)', which tells the agent the intended scenario, but there is no explicit when-not guidance, no mention of alternatives, and no stated prerequisites (e.g. what happens with very short input).

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.

Resources