Skip to main content
Glama

Enhanced Process Large Content

enhanced_process_large_content
Read-only

Chunk large crawled content, filter relevant sections with BM25, and optionally persist chunks plus summaries to JSON for a slim response.

Instructions

Process large content with chunking and BM25 filtering. Use output_path to persist chunks + summaries to disk as JSON and receive a slim response.

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": {
      "url": "<url>"
    },
    "name": "enhanced_process_large_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL to process
overwriteNoOverwrite an existing output file at output_path. Defaults to False.
output_pathNoAbsolute file path (auto .json extension) to persist the full chunks + summaries as JSON. When set, the response is slimmed to metadata+file path (chunks, chunk_summaries, merged_summary, final_summary removed).
filter_queryNoKeywords for BM25 filtering
chunk_overlapNoOverlap tokens
merge_strategyNo'hierarchical'|'linear'linear
max_chunk_tokensNoMax tokens per chunk
summarize_chunksNoSummarize chunks
chunking_strategyNo'topic'|'sentence'|'overlap'|'regex'sentence
extract_top_chunksNoTop chunks to extract
filtering_strategyNo'bm25'|'pruning'|'llm'bm25
final_summary_lengthNo'short'|'medium'|'long'short
similarity_thresholdNoMin similarity 0-1
include_content_in_responseNoWhen True (with output_path set), also include chunks/summaries in the response. Defaults to False.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.3.2

TDQS

C2.9/5.0
Behavior2/5

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

The description does disclose real behavior beyond the annotations: chunks + summaries are written to disk as JSON at output_path, and the in-response fields (chunks, chunk_summaries, merged_summary, final_summary) are stripped when persisting. However, it explicitly describes a filesystem write ("persist ... to disk") while the annotations declare readOnlyHint=true, so the stated side-effect contradicts the structured safety signal the agent relies on. It also omits overwrite semantics, the cost/latency of summarization and LLM filtering, and any note on how much content counts as "large".

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 mechanism first and the output/persistence option second; nothing is padded. The slight cost is that the second sentence largely duplicates the output_path schema text, and two sentences is thin coverage for a 14-parameter tool.

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?

With 14 parameters, a high-complexity pipeline, and an output schema present, the description leans almost entirely on the schema for completeness. It does not explain what content source the URL feeds (fetch vs. pre-existing content), how the strategies interact, or the mutation risks of writing files, which leaves gaps beyond what annotations and schema convey.

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 14 parameters, including defaults for chunk size, overlap, chunking/filtering/merge strategies, and overwrite, are already documented in the schema. The description only restates the output_path behavior that the schema already spells out and adds no extra meaning for the interplay between filter_query, extract_top_chunks, and the filtering 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?

"Process large content with chunking and BM25 filtering" names a specific operation and the two mechanisms used (chunking, BM25), and the second sentence adds the disk-persistence option. It never differentiates this tool from sibling extractors such as intelligent_extract, crawl_url, or process_file, so an agent cannot tell from the text alone which pipeline to pick for large documents.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only conditional guidance is the implicit split between using output_path (slim response) and not using it (full payload). There is no statement of when this tool should be preferred over the many sibling extraction/crawl tools, no prerequisites, and no note on when chunking/filtering is worth the cost.

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