Skip to main content
Glama

chunker_chunk_sliding_window

Splits text into overlapping segments using a sliding window. Specify window size and step to control chunk boundaries. Returns each chunk with index, text, and character positions.

Instructions

[chunker] Sliding window over text. Returns [{index, text, start, end}].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
window_charsNo
step_charsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

The description discloses the return format and basic operation, but lacks details on default behavior when window_chars or step_chars are null, and does not mention edge cases or algorithmic specifics. With no annotations, more behavioral context would be helpful.

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?

The description is very concise (one sentence plus return format). It is front-loaded and no wasted words. However, it sacrifices clarity on parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and schema descriptions, the description is incomplete. It fails to explain the purpose of the two optional parameters and their relationship, leaving ambiguity for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% coverage and the description does not explain the window_chars and step_chars parameters. It only mentions 'text' implicitly. The return format hints at usage but does not clarify parameter semantics.

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 that the tool implements a sliding window over text, returning chunks with index, text, start, and end. This distinguishes it from sibling chunkers like chunker_chunk_by_separator and chunker_chunk_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?

The description implies usage for overlapping chunks but does not explicitly state when to prefer this tool over alternatives like separator-based chunking. No exclusions or contextual advice are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server