Skip to main content
Glama

local_digest

Read local files and apply instructions like summarization, extraction, or analysis. Returns only processed results, reducing cloud token usage.

Instructions

Lit un ou plusieurs fichiers EN LOCAL et applique une instruction dessus (resumer, extraire, analyser, repondre a une question), puis ne renvoie QUE le resultat. Le contenu brut des fichiers n'entre jamais dans le contexte de Claude — c'est le principal levier d'economie de tokens. A privilegier avant de lire soi-meme un gros fichier ou un ensemble de fichiers. Fait automatiquement du map-reduce si le volume depasse le contexte local.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoRepertoire de base. Defaut : repertoire courant du serveur.
modelNo"code" (qwen3-coder-30b, defaut, repond directement, recommande partout) ou "light" (gemma-4-e4b, plus leger en VRAM mais raisonne toujours : prevoir max_tokens >= 800).
patternsYesChemins ou globs relatifs a `cwd` (ex: ["src/**/*.cs", "docs/GDD.md"]).
max_tokensNoLongueur max de la reponse. Defaut : 1200.
instructionYesCe que le modele local doit faire du contenu (ex: "Liste les methodes publiques et leur role en une ligne chacune").
Behavior4/5

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

With no annotations provided, the description carries full burden. It discloses that raw file content never enters Claude's context (token economy), that only the result is returned, and that map-reduce is automatic for large volumes. These are significant behavioral traits. Missing details like authorization or error handling are acceptable for a local read tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences, each essential. First sentence states core functionality, second highlights the primary benefit (token savings), third gives usage guidance and map-reduce note. No fluff, front-loaded with key information.

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?

Given 5 parameters, all covered by schema with additional description, no output schema needed (description states only result returned). The description fully explains how the tool works, when to use it, and its token-saving behavior. An agent can correctly select and invoke this tool based solely on this definition.

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 coverage is 100%, so baseline is 3. The description adds meaningful detail: 'model' enum values are explained with usage context (default 'code' is recommended everywhere, 'light' needs larger max_tokens), 'patterns' are clarified as globs relative to cwd, and 'instruction' is exemplified. This adds value beyond the schema.

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 uses a specific verb ('Lit' - reads) and resource ('fichiers EN LOCAL') and clearly states the action: apply an instruction to the content and return only the result. It distinguishes from manual reading by highlighting token savings and map-reduce behavior, and implicitly differentiates from siblings like local_map, local_ask, and local_status by focusing on digestion with an instruction.

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?

The description explicitly recommends using this tool before reading a large file yourself ('A privilegier avant de lire soi-meme un gros fichier ou un ensemble de fichiers'). It also explains the map-reduce fallback for large volumes. However, it does not explicitly state when not to use it or provide direct comparisons to sibling tools beyond the implied purpose.

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

Install Server

Other Tools

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/drangoht/local-llm-mcp'

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