Skip to main content
Glama

FMF Tools Doc Tools

text_chunk

Text chunking for RAG ($0.001 per call, paid via MPP on Tempo). Split text or Markdown into retrieval-ready chunks that respect headings, paragraphs and sentences. Params: size (target tokens, default 400, 50-4000), overlap (tokens, default 40). Returns chunks with heading path, char offsets and token estimates. Body: JSON {text} or raw text. Max 2 MB. HTTP POST https://mpp-docs.fmf-x402.workers.dev/mpp/text/chunk. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

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
sizeNo
textYes
overlapNo

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?

No annotations are supplied, so the description bears the full disclosure burden and does a great deal of that work: it states the $0.001 per-call price, that payment is not settled by the MCP wrapper, that an MPP Payment Authorization header or mppx is required, the 2 MB size cap, and the shape of the returned chunk metadata. It does not describe output shape versus error behavior or whether chunk boundaries are deterministic beyond heading/paragraph/sentence rules. This is unusually rich for an unannotated tool.

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 front-loaded with purpose and chunk semantics, then parameters, then returns, then transport and payment, so it is ordered usefully and dense with no filler. The payment sentence is longer than needed but carries genuinely required information, so this is close to ideal structure.

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 and no annotations, the description covers what to send, limits, what comes back, and the payment precondition. The only thing missing is explicit guidance on choosing chunking over sibling converters for mixed-document pipelines, which is acceptable given the tool's narrow scope.

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 description coverage is 0%, so the description must carry all parameter meaning. It defines size as target tokens with a 400 default and 50-4000 range, overlap as tokens with a 40 default, and explains text as a JSON {text} body or raw text, plus the 2 MB limit. The only real gap is that 'overlap' is never explained conceptually, so the reader is left to infer that chunks share tokens.

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?

The description opens with a specific verb-and-resource statement: it splits text or Markdown into retrieval-ready chunks that respect headings, paragraphs and sentences. That makes the operation concrete and distinguishable from the sibling tools, which are converters or inspectors such as pdf_markdown and text_tokens. It does not explicitly contrast this tool with a sibling tool, so it does not qualify for a 5.

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 phrase 'for RAG' implies the context in which the tool is used, and the payment paragraph defines operational prerequisites, namely the MPP authorization header versus the mppx HTTP route. There is no explicit guidance about when it is preferable to chunk here versus using pdf_markdown or html_markdown and then chunking, so the usage guidance is only implicit.

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