Skip to main content
Glama

Lookup Kit

text_split

Read-only

Text chunking, text splitter for RAG and embeddings. Split text into chunks of at most size characters for search indexes or LLM context (RAG), with optional overlap, keeping paragraph, sentence or word boundaries where possible. Returns each chunk with its start and end position. Price: $0.002 per call (x402, USDC on Base).

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_split"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNosentence
sizeNo
textYes
overlapNo

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?

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds real value beyond them: cost and payment mechanics ('$0.002 per call (x402, USDC on Base)') plus the return shape ('each chunk with its start and end position'). It also discloses the boundary-preserving heuristic ('where possible'), which is a genuine behavioral caveat. Missing: what happens when text exceeds the 8000-character input cap.

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?

Three sentences, front-loaded with the core verb and scope, then use cases, then return format and price. It is efficient, though the opening 'Text chunking, text splitter for RAG and embeddings' is mildly redundant keyword stacking rather than new information.

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 four-parameter utility with no output schema, this covers the essentials: what it does, when to use it, what it returns (chunks with start/end offsets), and that it is a pay-per-call x402 endpoint. The main omissions are the input size ceiling behavior and parameter defaults, which matter for a chunking tool where an oversized input would fail.

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 0%, so the description carries the burden and does explain the role of three of four parameters: 'size' as a character cap, 'overlap' as optional, and the paragraph/sentence/word boundary mode. However, it never maps those words onto the parameter names, omits the defaults (size=1000, overlap=100, by=sentence), and never mentions the bounds (50–8000, 0–4000), all of which the agent must dig out of the raw 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 description names a specific verb and resource: 'Split text into chunks of at most size characters', and identifies the domain ('text chunking', 'RAG and embeddings'). An agent can tell this apart from text_stats or text_diff without inspecting the schema. It stops short of explicitly naming or contrasting a sibling tool, so it lands at clear-but-not-differentiated.

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 gives concrete use contexts: 'for search indexes or LLM context (RAG)' and 'for RAG and embeddings'. That is enough to know when to reach for it rather than a stats or diff tool. It offers no when-not-to-use guidance or named alternative for near-duplicate needs (e.g. converting HTML first), which keeps it below a 5.

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