Skip to main content
Glama
rag-chunk-mcp
by leofannf

compare_strategies

Compare fixed, sentence, and recursive chunking on the same text to get chunk counts, size stats, and source coverage, helping agents choose a strategy before embedding.

Instructions

Compare fixed, sentence, and recursive chunking on the same text.

Returns per-strategy chunk counts, size statistics, and source coverage so an agent can pick a strategy before embedding.

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

Input Schema

NameRequiredDescriptionDefault
sizeNo
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 disclosure burden. It does disclose the return payload (per-strategy chunk counts, size statistics, source coverage), which is genuinely useful behavior information, but says nothing about whether it performs any chunking/storage, cost, or side effects — the agent must infer it is a pure analysis call.

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?

Two short sentences, front-loaded with the action, then the return payload and the decision it supports. No filler or repetition.

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?

For a low-complexity, no-output-schema tool the description does explain return values, which is the right allocation of space. The omission is the undocumented 'size' parameter, which leaves a caller unable to supply a non-default value confidently.

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 0%, so the description must supply parameter meaning. It covers the 'text' input implicitly ('on the same text'), but the 'size' parameter (integer, default 500) is never mentioned — the agent cannot tell whether it is chunk size in characters or tokens, or how it applies across the three strategies.

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 ('Compare fixed, sentence, and recursive chunking') and names the three strategies being compared, plus what it returns. It implicitly separates itself from siblings like chunk_text by framing itself as analysis for strategy selection rather than chunk production, though it never names a sibling.

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 clause 'so an agent can pick a strategy before embedding' establishes the intended moment of use, which is real sequencing guidance. However, it gives no explicit when-not conditions and does not name or contrast with chunk_text or explain_strategy.

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

Deploy Server

Other Tools