Skip to main content
Glama

Text splitter

hopi_text_splitter
Read-onlyIdempotent

Split a long block of text into smaller blocks. In 'length' mode it splits into chunks up to a maximum character size, breaking at spaces where possible, and can add 1/n numbering to each block. In 'delimiter' mode it splits wherever a delimiter appears (use \n for newline, \t for tab). Returns the list of blocks. Source: https://hopi.co.uk/text-splitter/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo'length' splits by character size (default), 'delimiter' splits at a delimiterlength
sizeNoMaximum characters per block for length mode (at least 10, default 280)
textYesThe text to split
numberedNoAdd ' n/total' numbering to each block in length mode (default false)
delimiterNoThe delimiter for delimiter mode; \n and \t are interpreted as newline and tab

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes
countYes
blocksYes
summaryYes
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "blocks",
      +  "count",
      +  "mode",
      +  "source_url",
      +  "summary"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds valuable behavioral details: splitting at spaces where possible in length mode, interpreting \n and \t in delimiter mode, and returning a list of blocks. This goes beyond the schema and gives the agent a clear model of how the tool behaves.

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?

Four concise sentences, front-loaded with the primary purpose, followed by mode details and return type. No redundant or irrelevant content; the source URL is a minor but non-intrusive addition. 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?

For a text-splitting tool with schema covering all parameters and an output schema implied, the description is sufficiently complete. It explains both modes, the numbering option, delimiter escaping, and return value. Edge cases like empty text or oversized words are not covered but are minor for this utility. Annotations already handle the operational safety context.

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?

Schema description coverage is 100%, so the baseline is 3. The description adds meaning by explaining how mode affects splitting behavior and that numbered creates '1/n' suffixes in length mode. It also clarifies the delimiter special-character interpretation, reinforcing and slightly expanding on the schema descriptions.

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 clearly states the tool's purpose: 'Split a long block of text into smaller blocks.' It then details two specific modes (length and delimiter), making it distinct from sibling text tools like hopi_character_counter or hopi_word_counter. The verb 'split' and resource 'text' are explicit and unambiguous.

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?

The description provides clear context on when to use the tool—whenever text needs to be split into smaller blocks—and explains the two operational modes, guiding which parameters to use. It does not explicitly name alternatives or exclusions, but the purpose is so specific that no close sibling alternatives exist among the listed tools.

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