Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_brain_text_chunker

Read-onlyIdempotent

Chunk caller-supplied documents into overlapping, indexed UTF-8 text passages ready for retrieval pipelines. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

Input Schema

NameRequiredDescriptionDefault
textYesPlain text to index, maximum 15000 characters
chunk_charsYesTarget chunk length 100–5000 characters
overlap_charsNoCharacters of overlap, default 0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely useful non-schema context: a 0.01 USDC charge on Base x402 and the X-Provider-Key header for customer-owned credentials. It stops short of stating rate limits or what happens with oversized input beyond the schema's 15000-character cap.

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?

Two tight sentences, with the core operation front-loaded before the billing/auth caveat. Nothing is redundant, though 'indexed' is left unexplained and could be trimmed or clarified.

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?

There is no output schema, so the description is the only place to learn the return shape: it says 'indexed ... passages' but never specifies whether results carry index numbers, character offsets, or a count. Payment and auth context is well covered, but the output contract remains under-specified for a pipeline-oriented tool.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters (text, chunk_chars, overlap_chars) are already fully documented with bounds and defaults. The description's mention of 'overlapping' only loosely reinforces overlap_chars and adds no new syntax or constraint information.

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?

Uses a specific verb and resource ('Chunk caller-supplied documents into overlapping, indexed UTF-8 text passages') and names the downstream consumer (retrieval pipelines). No sibling tool in the list performs chunking, so an agent can route to it unambiguously without opening the schema.

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?

'Ready for retrieval pipelines' implies the use case but gives no explicit when-to-use/when-not guidance or alternatives (e.g. vs api_brain_dedupe_hash or api_brain_knowledge_search for other text-processing needs). The caller must infer applicability from the phrase alone.

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