Skip to main content
Glama

ScorpTech x402 Tools

Text Chunk

text_chunk
Read-onlyIdempotent

Split text into retrieval-ready chunks for RAG and embeddings: recursive (paragraph > line > sentence > clause > word), markdown-aware (splits on headings, keeps the heading path per chunk, respects code fences), sentence, or fixed windows; sized in estimated tokens or characters with overlap. Returns each chunk with Unicode start/end offsets, character and token estimates, plus totals. Deterministic and offline; 200 KB input. Returns JSON with: strategy, unit, chunkSize, overlap, count, stats, chunks, note. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/text-chunk

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": "text_chunk"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText or Markdown to chunk (max 200 KB)
unitNotokens (default, estimated ~4 chars/token) or chars
overlapNoOverlap between consecutive chunks, at most half of chunk_size (default 10%)
strategyNorecursive (default), markdown, sentence or fixed
chunk_sizeNoMax chunk size in the unit (tokens 16-8192, default 512; chars 64-32768, default 2000)
include_textNoReturn chunk text (default true); false returns offsets only

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

x

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?

Front-loaded with the core purpose and strategy list before return shape, limits, and pricing; every sentence carries information, though the trailing pricing and HTTPS endpoint details sit awkwardly at the end for an agent deciding whether to call.

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?

With no output schema, the description compensates by naming the returned fields (strategy, unit, chunkSize, overlap, count, stats, chunks, note) and offsets, plus the 200 KB input cap and determinism, leaving little an agent needs unknown before calling.

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 coverage is 100%, so baseline is 3; the description adds meaning beyond the schema by spelling out the recursive fallback hierarchy (paragraph > line > sentence > clause > word) and the markdown behavior of retaining the heading path per chunk and respecting code fences, which the terse schema descriptions do not convey.

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?

States a specific verb and resource ("Split text into retrieval-ready chunks for RAG and embeddings") and enumerates the four strategies, so an agent can immediately distinguish it from sibling utilities like text_wrap or text_block that also manipulate text.

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?

Usage context is explicit (RAG and embeddings), and naming each strategy implies when each applies (

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