Skip to main content
Glama

preview_chunks

Test how inline text is split into chunks with a chosen strategy and parameters, without embeddings, to validate chunking before benchmarking.

Instructions

Chunk inline text with one strategy + params (no embeddings).

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>",
      "strategy_name": "<strategy_name>"
    },
    "name": "preview_chunks"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
configNo
content_typeNoContent type of `text` (e.g. markdown, text, code).markdown
strategy_nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.1
    • addedInput schema / properties / content_type
      Added value: +{
      +  "default": "markdown",
      +  "description": "Content type of `text` (e.g. markdown, text, code).",
      +  "title": "Content Type",
      +  "type": "string"
      +}
  2. First observedv0.1.1

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure; it does add one meaningful trait — no embedding generation, so the call is non-mutating and cheap. It says nothing about side effects, permissions, or idempotency, though the output schema covers return values.

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?

A single front-loaded sentence with no wasted words. The terseness is efficient, though it borders on under-specification for a four-parameter tool.

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?

For a tool with four parameters, 25% schema coverage, and no annotations, the description is too thin — an agent still cannot tell what values 'strategy_name' accepts or what belongs in 'config'. The output schema helps, but the input side is left largely unexplained.

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?

Schema description coverage is only 25%: only 'content_type' is documented in the schema, while 'strategy_name' has no enumerated values and 'config' is an untyped anyOf object. 'one strategy + params' only vaguely gestures at those two parameters and adds no format, valid-value, or shape guidance.

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 ('chunk') and resource ('inline text') plus scope limits: one strategy, its params, and no embeddings. It doesn't distinguish itself from siblings like evaluate_chunking or list_strategies, but the operation itself is unambiguous.

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

Usage Guidelines2/5

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

The parenthetical '(no embeddings)' implies a lightweight preview rather than full indexing, but the description never states when to use this versus evaluate_chunking or recommend_config, and gives no prerequisites or exclusions.

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