Skip to main content
Glama
dshakes

distil

by dshakes

distil_expand

Read-onlyIdempotent

Recover the exact original text for an 8-hex handle from distil_compress when the digest lacks a needed detail. Restores full byte-for-byte content from a local encrypted store.

Instructions

Recover the exact original text for an 8-hex handle returned by distil_compress. Returns the original bytes as plain text — not JSON, not a summary. Use when the digest in context lacks a detail you now need (an exact line, value, or stack frame); prefer reading the digest first, since expanding spends the tokens compression saved. Reads a local, encrypted store, so it works across sessions and processes but not across machines. An unknown, expired, or evicted handle returns "error: no original found for handle ..." with isError set — re-run the original tool rather than retrying; the answer will not change. Handles age out after DISTIL_RESTORE_TTL_DAYS (default 14).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
handleYesThe 8-hex handle from a prior distil_compress result or a digest stub in context, e.g. '3f9a1c07'. Content-addressed, so it is stable across runs; any other shape is rejected.
Behavior5/5

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

Annotations already provide readOnlyHint, idempotentHint, destructiveHint. Description adds vital context: local encrypted store, cross-session but not cross-machine, TTL-based eviction, and specific error message format with isError flag. No contradiction.

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?

Well-structured, front-loaded with primary action, each sentence serves a purpose. No fluff, covers all necessary aspects efficiently.

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 single parameter, rich annotations, and no output schema, the description is complete: explains purpose, usage, behavior, error handling, and constraints. No gaps.

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 has 100% coverage with pattern and description. Description adds value by clarifying the handle is content-addressed and stable across runs, and that any other shape is rejected. Minor but helpful.

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 explicitly states the tool recovers original text from an 8-hex handle, distinguishing it from its sibling distil_compress. It is specific and clear.

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

Usage Guidelines5/5

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

Explicitly advises when to use (when digest lacks detail) and when not to use (prefer reading digest first), plus error handling guidance ('re-run original tool, not retry').

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/dshakes/distil'

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