Skip to main content
Glama

query_notes

Read-onlyIdempotent

Filter and sort Obsidian notes by properties or file metadata, compare dates to values like today or -7d, then return selected fields as JSON, a Markdown table, or CSV.

Instructions

Dataview-style query over notes: filter by properties and file metadata (AND/OR), sort, pick fields, output JSON, a Markdown table or CSV. Dates can be compared with "today", "-7d", "1m".

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
sortNo
limitNoMax results (default 100)
matchNo
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.
whereNo
fieldsNoColumns to return (default: path + fields used in where)
folderNoLimit to this folder (vault-relative)
formatNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description still adds real behavioral context beyond that: the three output formats and, importantly, the relative-date grammar ("today", "-7d", "1m") that governs value comparisons — non-obvious behavior an agent could not guess.

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?

One dense, front-loaded sentence with zero filler: the tool's identity comes first, followed by the operations, then the output modes, then the date shorthand. Every clause carries information.

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?

For a 9-parameter query tool with no output schema and only partial schema coverage, the definition is adequate but not complete: the vault default, the result cap, folder/tag scoping, and what an empty result looks like are all unaddressed. It also omits any note about maximum limits, which matters for a tool with a 10000 cap.

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 coverage is only 44% across 9 params, so the description must compensate. It does map meaning onto where/match/sort/fields/format and adds the date-syntax semantics that the schema leaves empty for `value`, but tag, limit, folder, and vault receive no mention at all, and the default limit of 100 is only in the schema.

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?

States a specific verb and resource ("Dataview-style query over notes") and enumerates the capabilities: filter by properties/file metadata with AND/OR, sort, project fields, and three output formats. This is clearly the general-purpose query tool, distinguishable in intent from the narrow find_* siblings, though it never names an alternative to route against.

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?

Usage is implied by the capability list (query when you need filtered/sorted/projected note lists), but there is no explicit when-to-use or when-not guidance, and no pointer to the narrower siblings like find_notes_by_tag or find_stale_notes that could be simpler choices. The agent must infer the routing decision.

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

Deploy Server

Other Tools