Skip to main content
Glama

Find notes by frontmatter predicate

obsidian_frontmatter_search
Read-onlyIdempotent

Find notes by frontmatter key with equality, existence, or array membership predicates. Enables bulk frontmatter updates after filtering.

Instructions

Find every note where frontmatter. matches a predicate. Useful as a precursor to bulk frontmatter_set: 'find all notes with status:draft and set their status to published'. Predicates are exclusive: pass exactly one of equals (strict equality), exists (key must be present), contains (for array values, member match).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesFrontmatter key to test
equalsNoStrict equality predicate (JSON.stringify comparison)
existsNoPredicate: key must exist (any value)
containsNoFor array values, value must be a member
folderNoRestrict search to a folder
limitNoMax matches (default 100)
Behavior4/5

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

Annotations already indicate readOnlyHint=true and idempotentHint=true, so the tool is read-only and idempotent. The description adds value by explaining the exclusivity of predicates and the behavior of each predicate type (e.g., 'contains' works for array values). This goes beyond annotations without contradicting them.

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 three sentences: first states purpose, second provides usage context and an example, third clarifies predicate behavior. Every sentence serves a distinct purpose without redundancy. It is front-loaded and highly efficient.

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?

While the description covers purpose and predicate behavior well, it omits what the tool returns (e.g., list of note paths or IDs). Given no output schema, this information would help an agent understand the result format. However, the usage example implies the return can be used for subsequent operations, partially mitigating the gap. A score of 3 reflects adequate but not full completeness.

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

Parameters4/5

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

Schema coverage is 100% with clear descriptions for each parameter. The description reinforces predicate semantics, especially the exclusivity rule and the meaning of 'contains' for array values. This adds insight beyond the schema, justifying a score above baseline 3.

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 'Find every note where frontmatter.<key> matches a predicate.' It specifies a verb ('find') and a resource ('notes by frontmatter predicate'). This distinguishes it from sibling tools like obsidian_search (general note search) and obsidian_frontmatter_get (retrieve one note's frontmatter).

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 explicitly says 'Useful as a precursor to bulk frontmatter_set' and provides a concrete example. It also states 'Predicates are exclusive: pass exactly one of equals, exists, contains,' giving clear instructions on how to use the tool. This effectively guides when to use it and how to structure calls.

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