Skip to main content
Glama

chunk_text

Partitions raw text documents into uniform sliding-window segments with configurable character overlap. Returns an array of formatted text chunks. Use when preparing unstructured documents for vector database embeddings and RAG retrieval pipelines. Do not use for syntactic token counting or semantic sentence segmentation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe source document text string to segment into discrete chunks.
chunk_sizeNoMaximum character length of each individual chunk segment. Defaults to 500 characters.
chunk_overlapNoNumber of overlapping characters shared between consecutive chunks to maintain semantic context. Defaults to 50 characters.

TDQS

A4.2/5.0
Behavior3/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 discloses the transformation behavior and the return shape ('Returns an array of formatted text chunks'), which is adequate for a pure transform tool. However, it does not describe edge-case behavior (e.g., text shorter than chunk_size, how boundary chunking is resolved, or determinism). The disclosure is correct but not rich.

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?

Three dense sentences with zero filler. The core partitioning behavior is front-loaded, the return type is stated, and usage guidance is appended efficiently. Every sentence earns its place.

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?

Complexity is low: 3 flat, fully-covered parameters, no output schema, no nested objects. The description covers purpose, use case, exclusions, and return shape. The only minor gap is absence of edge-case behavior notes (e.g., handling of text shorter than the chunk size), which is a small omission given the low complexity.

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%, and the schema documents all three parameters including defaults and constraints (chunk_size default 500/min 50; chunk_overlap default 50/min 0). The description's 'configurable character overlap' merely echoes the schema. With full schema coverage, baseline 3 applies; the description adds little parameter meaning beyond the schema.

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 states a specific verb and resource: 'Partitions raw text documents into uniform sliding-window segments with configurable character overlap.' It also discloses the return type ('Returns an array of formatted text chunks'). None of the siblings (audit_dns, eval_expression, extract_web, repair_json, validate_schema) perform chunking, so there is no ambiguity about which tool this is.

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

Usage Guidelines5/5

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

Provides explicit when-to-use ('preparing unstructured documents for vector database embeddings and RAG retrieval pipelines') and explicit when-not-to-use ('Do not use for syntactic token counting or semantic sentence segmentation'). This is better than merely naming an alternative; it states the exclusions directly, leaving nothing to inference.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool serves a clearly distinct purpose: DNS verification, text chunking, expression evaluation, web extraction, JSON repair, and schema validation. There is no overlapping functionality, and the descriptions explicitly state boundaries (e.g., 'Do not use for' clauses) that prevent misselection.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (audit_dns, chunk_text, eval_expression, extract_web, repair_json, validate_schema). The verbs are descriptive and uniform, making the naming predictable and scannable.

Tool Count5/5

With 6 tools, the server is well-scoped for a utility server. Each tool addresses a common agent need without redundancy, and the count falls in the ideal range for easy comprehension and selection.

Completeness4/5

The tool set covers common utility gaps (DNS safety, text preparation, calculation, web content, JSON handling). Minor omissions exist, such as a dedicated string manipulation or encoding tool, but the core utilities are complete enough for most agent workflows without dead ends.

Resources