Skip to main content
Glama
norrietaylor

io.github.norrietaylor/distillery-mcp

Official
by norrietaylor

distillery_ingest_doc

Ingest documents (ADRs, specs, decisions, feedback) into a searchable knowledge base, chunking large text and deduplicating identical content.

Instructions

Ingest an arbitrary document (ADR, spec, decision, customer feedback).

USE WHEN: importing a standalone document — a markdown ADR/spec/RFC, a design decision, or a customer-feedback transcript/doc — so it becomes queryable knowledge with provenance. Distinct from distillery_store (single entry, semantic dedup) and from PreCompact transcripts: this chunks large text into multiple linked entries and deduplicates idempotently by content hash, so re-ingesting identical content adds no second entry.

PARAMS:

  • text (str, required): The full document text. Large text is split into multiple linked entries (relation_type="chunk").

  • author (str, required): Who is ingesting / owns this document.

  • doctype (str, optional, default="doc"): Document kind. Valid: [adr, spec, decision, feedback, doc]. Applied as both a "doctype/" tag and metadata.doctype for faceted retrieval.

  • source (str, optional): Provenance label (file path, Drive URL, etc.). Stored in metadata.source.

  • external_id (str, optional): Explicit dedup key. Defaults to the SHA-256 hash of text, making re-ingest idempotent.

  • title (str, optional): Human-readable title (stored in metadata.title).

  • project (str, optional): Project scope.

  • tags (list[str], optional): Extra namespaced tags.

  • metadata (dict, optional): Arbitrary extra metadata.

RETURNS (success): { entry_ids: list[str], count: int, doctype: str, external_id: str, chunked: bool, persisted: bool, dedup_action: "stored" | "skipped" } On re-ingest of identical content, persisted=false, dedup_action="skipped", and entry_ids points at the existing entries. RETURNS (error): { error: true, code: "INVALID_PARAMS" | "INTERNAL", message: "..." }

RELATED: distillery_store (single entry with semantic dedup), distillery_search (to retrieve ingested documents)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNo
textYes
titleNo
authorYes
sourceNo
doctypeNo
projectNo
metadataNo
external_idNo
Behavior4/5

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

Since no annotations are provided, the description carries the full burden of behavioral disclosure. It explains key behaviors: chunking of large text, idempotent deduplication by content hash, and the exact response on re-ingest (persisted=false, dedup_action='skipped'). It does not explicitly mention permissions or failure modes beyond simple error codes, but the core side effects are clearly disclosed.

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 well-structured with clear sections (intro, USE WHEN, PARAMS, RETURNS, RELATED) and front-loaded with the core purpose. It is somewhat long, but every section adds necessary detail for correct usage, so the length is justified. The use of headings improves scannability for an agent.

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?

For a tool with 9 parameters, no annotations, and no output schema, the description is remarkably complete. It explains the dedup/chunking behavior, provides detailed parameter guidance, explicitly lists success and error return shapes, and references related tools. Nothing an agent needs to call it correctly is missing.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates. It documents every parameter (text, author, doctype, source, external_id, title, project, tags, metadata) with explanations of defaults, valid values, and how they are stored (e.g., doctype applied as tag and metadata, external_id defaults to SHA-256 hash). This goes far beyond the raw 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 clearly states the tool's purpose: 'Ingest an arbitrary document (ADR, spec, decision, customer feedback)'. It uses a specific verb and resource and explicitly distinguishes itself from siblings like distillery_store (single entry) and PreCompact transcripts, so an agent can easily identify when to use it.

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?

The 'USE WHEN' section explicitly states when to use this tool: 'importing a standalone document... so it becomes queryable knowledge with provenance'. It also contrasts with distillery_store and PreCompact transcripts, providing clear alternatives and the conditions that select this tool over them.

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/norrietaylor/distillery'

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