Skip to main content
Glama

Text Chunker

dev_text_chunker

Split text into retrieval-friendly chunks with a token budget and sentence-aware boundaries. Overlap between consecutive chunks preserves context across splits — the standard preparation step before embedding. Use this when an agent needs to rAG-ready chunks with token budgets and overlap. x402 price $0.01/call (USDC, eip155:8453).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText
targetTokensYesTarget tokens per chunk
overlapTokensYesOverlap tokens

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses mechanism (sentence-aware splits, overlap preserving context) and pricing (x402 $0.01/call, USDC on eip155:8453), but says nothing about the return structure or limits. For a pure-compute tool this is adequate 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded, which is good, but 'retrieval-friendly chunks' and 'rAG-ready chunks with token budgets and overlap' restate the same idea across sentences. The typo 'rAG-ready' and the trailing pricing clause add noise rather than clarity.

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?

Covers purpose, splitting mechanism, and cost, which is most of what an agent needs for a 3-param compute tool. With no output schema and no annotations, it should describe the shape of the returned chunks (count, boundaries) but does not.

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 coverage is 100% but the field descriptions are terse ('Text', 'Target tokens per chunk', 'Overlap tokens'). The description adds genuine meaning for overlap ('preserves context across splits') and for the token budget, but leaves targetTokens/text semantics to the schema, so baseline 3 is correct.

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?

States a specific verb and resource ('Split text into retrieval-friendly chunks') with the mechanism (token budget, sentence-aware boundaries), which clearly distinguishes it from nearby siblings like dev_text_extract or dev_token_estimator. It does not name any sibling explicitly, so it stops short of a 5.

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?

'Use this when an agent needs to rAG-ready chunks with token budgets and overlap' essentially restates the tool's own function rather than giving a decision rule. 'The standard preparation step before embedding' implies pipeline context, but no alternatives or when-not conditions are provided.

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