enquire-mcp API reference - v3.12.0-rc.19
    Preparing search index...

    Interface ContextPackResult

    Result of contextPack — a ready-to-paste markdown bundle.

    bundle is the full markdown blob the caller can paste into any AI chat. sections exposes per-section byte counts so the agent can report what's inside ("4 notes + 12 backlinks + 3 daily notes"). estimated_tokens uses the ~4 chars/token heuristic for English / Cyrillic; CJK estimates run higher (real tokenization is model-dependent).

    interface ContextPackResult {
        budget_tokens: number;
        bundle: string;
        estimated_tokens: number;
        included_notes: string[];
        query: string;
        research?: {
            queries: ResearchQueryTrace[];
            search_calls: number;
            strategy: "coverage_slots_then_rrf";
            zero_hit_queries: string[];
        };
        sections: { backlinks: number; dailies: number; notes: number };
    }
    Index
    budget_tokens: number

    Echo of the input budget.

    bundle: string

    The packed markdown bundle ready to paste into an AI chat.

    estimated_tokens: number

    Approximate token count (chars / 4).

    included_notes: string[]

    Top-K hit paths included in the bundle.

    query: string

    Echo of the input query.

    research?: {
        queries: ResearchQueryTrace[];
        search_calls: number;
        strategy: "coverage_slots_then_rrf";
        zero_hit_queries: string[];
    }

    Present only when at least one distinct subqueries[] entry was searched. This is a candidate trace, not a claim that a concept is proven.

    Type Declaration

    • queries: ResearchQueryTrace[]

      Bounded candidate/selection trace per normalized query.

    • search_calls: number

      Number of full hybrid-search pipelines executed for this pack.

    • strategy: "coverage_slots_then_rrf"

      Coverage-first selection followed by RRF fill.

    • zero_hit_queries: string[]

      Queries whose search returned no candidates.

    sections: { backlinks: number; dailies: number; notes: number }

    Per-section byte counts for observability.