Skip to main content
Glama
mdvault-mcp
by 0xmortuex

query_notes

Find notes by tag, folder, or frontmatter query language to filter vault content by properties such as status, due date, owner, and nested tags.

Instructions

Find notes by tag and/or frontmatter properties.

tag="project" matches notes tagged #project (frontmatter or inline) and nested tags such as project/alpha. where is a small query language over the frontmatter: status=draft, due < 2026-12-01, tags contains project, owner exists, owner missing, joined with AND / OR (AND binds tighter), with an optional NOT in front of a clause. Example: status=draft AND tags contains project. Quote values with spaces. Comparison ignores case; on a list, = and contains mean "any element". Notes whose frontmatter fails to parse are skipped (vault_overview lists them).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNo
limitNo
whereNo
folderNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and does meaningful work: it discloses case-insensitive comparison, 'any element' semantics on list fields, operator precedence, required quoting for spaced values, and the important failure mode that notes with unparseable frontmatter are skipped with vault_overview as the escape hatch. It does not confirm read-only safety, nor does it describe result ordering or how limit truncation behaves.

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 core purpose is front-loaded, followed by the grammar explanation and a worked example, with no filler. The grammar block is dense but each clause adds real semantics; the only mild bloat is repeating the example pattern twice.

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

Completeness3/5

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

Output schema exists, so return values need not be explained, and the query language is documented better than most. Still, for a 4-parameter tool with zero schema coverage, omitting `limit` (pagination/truncation) and `folder` (scope restriction) leaves gaps an agent would hit immediately, and there is no differentiation from search_notes.

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 description coverage is 0%, so the description must compensate, and it does so thoroughly for two of four parameters: `tag` (matched against frontmatter or inline tags, including nested tags) and `where` (grammar, operators, precedence, NOT, quoting, list semantics). `limit` and `folder` are never mentioned, leaving half the surface undocumented in both schema and prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource (find notes) plus the filtering dimensions (tag and/or frontmatter properties), which is concrete enough to act on. It never names or contrasts with the sibling search_notes, so an agent must guess how this differs from free-text search.

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

Usage Guidelines3/5

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

Implicit usage is clear: retrieve notes by structured criteria rather than full text. However, there is no explicit 'use this when X, use search_notes when Y' guidance, no statement of prerequisites, and no note about result ordering or how tag and where combine (intersection vs union).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.