Skip to main content
Glama

Find notes by frontmatter predicate

obsidian_frontmatter_search
Read-onlyIdempotent

Find notes where a frontmatter key matches a predicate: equals, exists, or contains. Enables bulk actions like updating all draft notes.

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
limitNoMax matches (default 100)
equalsNoStrict equality predicate (JSON.stringify comparison)
existsNoPredicate: key must exist (any value)
folderNoRestrict search to a folder
containsNoFor array values, value must be a member
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, so the safety profile is clear. The description adds the exclusivity of predicates and a use case, but no additional behavioral traits beyond what annotations indicate.

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?

Three sentences, each earning its place: purpose, use case, and predicate exclusivity. Front-loaded and no wasted words.

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

Completeness4/5

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

Lacks description of return format or pagination details, but the limit parameter handles max results. Overall sufficient for a search tool with good annotations.

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 detailed parameter descriptions. The description adds meaningful context about predicate exclusivity and usage pattern, reinforcing and clarifying the schema.

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', specifying a specific verb and resource. It distinguishes from siblings like obsidian_frontmatter_get (single note) and obsidian_search (general) by focusing on frontmatter predicates.

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 a concrete use case example ('find all notes with status:draft and set their status to published') and explicitly states that predicates are exclusive, guiding correct parameter selection. However, it does not mention when not to use it or alternatives.

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