Skip to main content
Glama

Lordevo Shop: website checks for agents (x402)

Text chunker for RAG (heading-aware, token-sized chunks) ($0.0021/call)

text_chunk
Read-onlyIdempotent

$0.0021 per call (x402, USDC on Base; free trial: add "trial": true or use try_free). [Fetch and read the web] Splits text you send, or the main content of one public page, into heading-aware chunks of at most max_tokens with optional overlap, each with its heading path and an approximate token count, for RAG ingestion. Input: text (POST for long text) or url; max_tokens 50-4000, overlap_tokens. Limits: 400,000 characters, 2,000 chunks; robots.txt obeyed for url.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "text_chunk"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) URL or bare domain, e.g. https://example.com (instead of text)
textNoPlain text or Markdown, 1-400,000 characters (short text in the query; long text as POST JSON {"text": "..."}) (or give url)
trialNoOptional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms.
max_tokensNoMax tokens per chunk, 50-4000 (default 500)500
overlap_tokensNoTokens repeated from the previous chunk, 0 to half of max_tokens (default 50)50

Output Schema

NameRequiredDescriptionDefault
toolNo
cacheNo
_trialNoPresent when the call was a free trial call.
chunksNo
sourceNo
providerNo
price_usdNo
truncatedNo
max_tokensNo
chunk_countNo
overlap_tokensNo
total_tokens_estimateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trial / description
      Previous value: -"Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms."New value: +"Optional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms."
  2. Changed2 schema fields changed
    • addedInput schema / properties / trial
      Added value: +{
      +  "description": "Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms.",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "required": [
      +        "tool",
      +        "chunk_count",
      +        "chunks"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "accepts": {
      +          "type": "array"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "resource": {
      +          "type": "object"
      +        },
      +        "x402Version": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "x402Version",
      +        "accepts"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "charged": {
      +          "type": "boolean"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ]
      +    }
      +  ],
      +  "properties": {
      +    "_trial": {
      +      "description": "Present when the call was a free trial call.",
      +      "type": "object"
      +    },
      +    "cache": {
      +      "type": "object"
      +    },
      +    "chunk_count": {
      +      "type": "integer"
      +    },
      +    "chunks": {
      +      "items": {
      +        "properties": {
      +          "approx_tokens": {
      +            "type": "integer"
      +          },
      +          "heading": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "heading_path": {
      +            "type": "array"
      +          },
      +          "index": {
      +            "type": "integer"
      +          },
      +          "text": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "max_tokens": {
      +      "type": "integer"
      +    },
      +    "overlap_tokens": {
      +      "type": "integer"
      +    },
      +    "price_usd": {
      +      "type": "number"
      +    },
      +    "provider": {
      +      "type": "string"
      +    },
      +    "source": {
      +      "enum": [
      +        "text",
      +        "url"
      +      ],
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "total_tokens_estimate": {
      +      "type": "integer"
      +    },
      +    "truncated": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, and the description adds real behavior beyond them: 400,000 character and 2,000 chunk ceilings, robots.txt compliance for url fetches, long-text POST handling, and per-call pricing with a 3-per-IP-per-UTC-day trial cap. The only omission is what happens when limits are exceeded (error vs truncation).

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?

Dense but purposeful, and the bracketed category label plus the split/limits sentences read well. The pricing and trial sentence is placed first, ahead of what the tool actually does, which slightly delays the purpose statement an agent needs most.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values need not be explained, and the description still tells the agent the shape of results (chunks with heading path and token estimate). Cost, limits, input modes, and crawling behavior are all covered for a 5-parameter 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 coverage is 100%, so the schema already documents url, text, trial, max_tokens, and overlap_tokens including defaults and ranges; the description largely restates those bounds (50-4000, overlap). Baseline 3 is appropriate since it adds little interpretive meaning beyond the structured fields.

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 concrete verb and resource: splits supplied text or the main content of one public page into heading-aware chunks capped at max_tokens with optional overlap, each carrying a heading path and approximate token count, for RAG ingestion. The 'text you send OR one public page' framing also implicitly separates it from pdf_text and text_extract.

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?

Gives clear selection context: use text for supplied material, url for one public page, POST JSON for long payloads, and 'trial: true or use try_free' for the free path. It stops short of explicit exclusions such as 'use pdf_text for PDFs' or 'use token_count to only measure size', so it is clear but not fully routing.

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