Skip to main content
Glama

Pack vault context for an AI question (token-budgeted)

obsidian_context_pack
Read-onlyIdempotent

Retrieves top relevant notes using hybrid search, gathers backlink summaries and recent dailies, deduplicates, and packs into a token-budgeted markdown bundle for direct pasting into any AI chat.

Instructions

Given a question, retrieve the top relevant notes (via hybrid search), gather backlinks summaries + optionally recent dailies, deduplicate, pack to a token budget, return a single ready-to-paste markdown bundle. Saves the agent ~5 separate tool calls; produces a coherent context blob you can paste into any AI chat.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesTopic or question to gather context for
folderNoRestrict retrieval to this folder (vault-relative)
budget_tokensNoApproximate token budget (default 4000, ~4 chars/token)
recent_dailiesNoInclude the last N daily-format notes (YYYY-MM-DD basenames). Default 0 (off).
include_backlinksNoInclude 1-line backlink summaries for top-3 notes (default true)
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true. The description adds significant context: token-budgeted, deduplication, hybrid search, and output format (markdown bundle). No contradictions.

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?

Two sentences with key information front-loaded. Very concise, but could benefit from breaking into a short list for even better readability.

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

Completeness4/5

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

Given 5 parameters and no output schema, the description adequately explains the overall process and return format. It covers the main behavioral aspects but lacks details on error handling or edge cases.

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

Parameters3/5

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

Schema has 100% coverage with descriptions for all 5 parameters. The description adds minimal extra meaning: it mentions 'hybrid search' and 'token budget default 4000', but the schema already explains defaults and types. Baseline 3 is appropriate.

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 specifies a specific verb ('retrieve', 'gather', 'pack', 'return') and resource ('context pack for an AI question'). It clearly distinguishes from sibling tools like obsidian_search or obsidian_get_backlinks by describing it as a composite that replaces ~5 separate calls.

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 states when to use (when needing a ready-to-paste context blob) and implies it's an alternative to multiple manual calls. However, it does not explicitly list exclusions or when to avoid using it, leaving some ambiguity.

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/oomkapwn/enquire-mcp'

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