Skip to main content
Glama

Execute an Obsidian Base — return matching notes

obsidian_query_base
Read-onlyIdempotent

Execute a saved .base query to filter markdown notes by tags, paths, frontmatter, or custom DSL, returning matching file paths and frontmatter values.

Instructions

v3.2.0 (extended in v3.5.0) — Runs a .base file's filter against the vault's markdown notes, returning matching paths + the frontmatter values that contributed to the match. Supported DSL: tag == "x", taggedWith(file.file, "x"), linksTo(file.file, "Target") (v3.5.0 — outbound wikilink check, basename-resolved, case-insensitive), path startsWith "X" / path contains "X" / file.path startsWith "X" (v3.5.0 — file. prefix accepted), file.name == "X" / file.name != "X" (v3.5.0 — basename equality, .md stripped), <frontmatter_key> == <value>, <key> != <value>, <key> contains "<substr>", plus and / or / not combinators. Anything else (formula evaluation, date arithmetic, summaries) is fail-closed since v3.6.2 HN-2 — treated as false (excludes the row) and returned in unevaluated_predicates so callers see typo/unsupported expressions in the response. Pre-v3.6.2 the behavior was permissive (true); v3.6.2 flipped it after an external auditor flagged over-include risk. Pair with obsidian_search for retrieval-quality search; this is for explicit saved queries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesVault-relative path of the .base file
viewNoOptional view name. When set, the view's filters are concat'd with the global filter via AND (matching Obsidian semantics). Defaults to the global filter only.
folderNoExtra folder scope on top of the base's filters
limitNoMax matches to return (default 50)
Behavior5/5

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

Annotations already declare readOnlyHint and idempotentHint. The description adds significant behavioral details: version history, supported DSL syntax, fail-closed behavior for unsupported expressions, return of unevaluated_predicates, and the change in behavior permissiveness. No contradictions with annotations.

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 description is front-loaded with purpose but includes extensive version history and DSL details that, while useful, may be more than necessary. Could be slightly more concise, but provides valuable detail for correct usage.

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 complexity of the DSL and multiple parameters, the description covers return values (matching paths + frontmatter), error handling (unevaluated_predicates), and version changes. No output schema exists, so the description adequately explains what the tool returns.

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 100% with good descriptions. The tool description adds context about parameter interactions (AND combination of view and global filter, folder as extra scope), but this does not significantly exceed the schema's own descriptions.

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 runs a .base file's filter against markdown notes, returning matching paths and frontmatter. It distinguishes itself from sibling obsidian_search by noting this is for explicit saved queries, not retrieval-quality search.

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?

Provides clear context for when to use this tool (explicit saved queries) and contrasts with obsidian_search. However, it does not explicitly state when not to use or list prerequisites beyond having a .base file.

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