Skip to main content
Glama

vault_query

Read-onlyIdempotent

Retrieve project content from an Obsidian vault for AI-assisted development, supporting specific files, sections, or metadata extraction.

Instructions

Read content from a vault project — use instead of direct filesystem access.

Args: project: Project slug (directory under 10_projects/), or '_meta' for 00_meta/. section: Shortcut name (context, tasks, roadmap, lessons). Ignored if path is set. path: Relative path to a specific .md file within the project. Overrides section. max_lines: Maximum lines to return. 0 = unlimited. include_metadata: Prepend a structured metadata line from YAML frontmatter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYes
sectionNocontext
pathNo
max_linesNo
include_metadataNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the agent knows this is a safe, repeatable read operation. The description adds valuable context beyond annotations: it explains the project structure (e.g., '_meta' maps to '00_meta/'), parameter precedence rules, and the metadata inclusion behavior, which enhances transparency without 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?

The description is efficiently structured: a clear purpose statement followed by a bullet-like Args section. Every sentence adds value—no redundancy. It's front-loaded with the core purpose and uses concise parameter explanations that directly aid tool invocation.

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 the tool's complexity (5 parameters, 0% schema coverage) and the presence of annotations and an output schema, the description is complete. It covers all parameters thoroughly, explains usage context, and provides behavioral details. The output schema handles return values, so no need to describe them here.

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 by explaining all 5 parameters in detail. It clarifies semantic meanings: project as 'slug (directory under 10_projects/)' with '_meta' special case, section as 'shortcut name' with options, path overriding section, max_lines behavior ('0 = unlimited'), and include_metadata effect ('Prepend a structured metadata line').

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 with a specific verb ('Read content') and resource ('from a vault project'), distinguishing it from siblings like vault_write (write), vault_patch (modify), and vault_list (list). It explicitly contrasts with 'direct filesystem access' to establish its role.

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 description provides explicit usage guidance: 'use instead of direct filesystem access' specifies when to use this tool, and the Args section clarifies parameter interactions (e.g., 'path overrides section'). It implicitly distinguishes from siblings like vault_write for writes and vault_list for listing.

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/mlorentedev/hive'

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