Skip to main content
Glama

local_map_reduce_file

Compress large files, traces, or logs using local Ollama map-reduce to lower token consumption before ingesting into context.

Instructions

Compress large files, traces, or logs using local Ollama Map-Reduce before ingesting into context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo
overlapNo
file_pathYes
chunk_sizeNo
concurrencyNo
extraction_goalYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It reveals the local Ollama dependency and map-reduce approach, but it does not mention runtime expectations, side effects, file modification behavior, return format, failure modes, or resource requirements.

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 a single, front-loaded sentence with no filler; the action and resource appear immediately. It is structurally efficient, though its brevity contributes to the lack of operational detail.

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

Completeness2/5

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

The tool has six parameters, no schema descriptions, and no annotations, yet the description is only one sentence. Prerequisites, parameter semantics, output behavior, and relationship to sibling tools are left unexplained, so the definition is not complete enough for reliable invocation.

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

Parameters1/5

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

Schema description coverage is 0% and the description names none of the six parameters. An agent cannot infer the meaning of file_path, extraction_goal, model, chunk_size, overlap, or concurrency from the text, so the description does not compensate for the schema gap.

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?

The description names a specific action (compress), specific target resources (large files, traces, logs), a distinguishing method (local Ollama Map-Reduce), and its intended purpose (before ingesting into context). This differentiates it from sibling summarization/extraction tools by the map-reduce mechanism and pre-ingestion use case.

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?

It clearly situates usage: apply this when dealing with large files, traces, or logs that need compression before context ingestion, using local Ollama. It does not explicitly name alternatives or exclusion criteria, but the 'before ingesting into context' framing and large-file focus provide practical guidance.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/leifdavisson/agy-ollama-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server