Skip to main content
Glama
Vault Cortex Obsidian MCP Server

Vault Cortex Obsidian MCP Server

Search by Property

vault_search_by_property
Read-onlyIdempotent

Find notes by an exact metadata property key and value, optionally within a folder, for metadata-only lookups when no text query is available.

Instructions

Find notes where a property matches a value.

Example: vault_search_by_property({ key: "status", value: "in-progress" }) Example: vault_search_by_property({ key: "type", value: "session-log", folder: "Code Projects" })

When to use: Finding notes by metadata when you don't have a text query. Prefer vault_search when you also have a text query (it supports property filters too). Prefer vault_search_by_tag for tag-specific queries (it matches nested tags and #tags in note bodies; key "tags" here matches only the tags property). Use vault_list_property_keys to discover valid keys and vault_list_property_values to see what values a key takes.

Parameters:

  • key and value both match exactly and case-sensitively; value matches a stored text value as written.

  • A value written as a complete, finite YAML 1.2 core number (-4, 04, .5, 4., 1e3, 0x1F, 0o17) also matches stored numbers numerically: "04" and "4.0" match number 4 and their own literal text, but not text "4". Anything else ("4abc", " 4", 0b binary) matches only as text.

  • A checkbox matches only as text: pass "1" (checked) or "0" (unchecked); "1.0" and "true" do not match.

  • A list property matches when an element equals value in full: "blog" matches tags: ["blog", "draft"] but not tags: ["my-blog"].

  • folder names a whole folder, subfolders included: "Projects" covers "Projects/Archive" but not "ProjectsOld/", ignoring ASCII letter case; omit it to search the entire vault.

  • limit keeps the most recently modified matches; nothing in the response signals truncation; raise limit for more.

Behavior: Results can lag a file change by a few seconds. An unknown key or unmatched value returns an empty array, not an error.

Errors:

  • "[SqliteError]: …" / "[IndexIntegrityError]: …" — the index failed, not the call; the message says what to do

Returns: JSON array of note metadata: path, title (the title property; file name without .md when missing or not text), tags (the tags property; vault_update_properties edits it), body_tags (#tags in the note's text, one per spelling; vault_replace_in_note edits them; absent when none), related ([] when missing), folder (top-level, "" at the root), type (null when missing or not text), created (null when missing or not an ISO date), modified (ISO 8601 file time), bytes (on-disk size), and when present leading_callout (the opening callout, { type, title, body }) and additional_properties (every property but title, type, created, related and tags). Sorted by most recently modified (any file write, so a recently-synced note can sort ahead of an older edit), then by path.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "key": "<key>",
      "value": "<value>"
    },
    "name": "vault_search_by_property"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesProperty key name (e.g. "status", "type", "tags").
limitNoMax results (default 20)
valueYesValue to match (e.g. "active", "4", "1e-7").
folderNoRestrict to a folder (e.g. "Projects")

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.56.3
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 20, no upper cap)"New value: +"Max results (default 20)"
  2. Changed1 schema field changedv0.54.16
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed3 schema fields changedv0.54.13
    • changedInput schema / properties / key / description
      Previous value: -"Property key name (e.g. \"status\", \"type\", \"tags\"). Use vault_list_property_keys to discover valid keys."New value: +"Property key name (e.g. \"status\", \"type\", \"tags\")."
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 20)"New value: +"Max results (default 20, no upper cap)"
    • changedInput schema / properties / value / description
      Previous value: -"Value to match (e.g. \"active\", \"4\", \"1e-7\"). Use vault_list_property_values to discover valid values for a key."New value: +"Value to match (e.g. \"active\", \"4\", \"1e-7\")."
  4. Changed1 schema field changedv0.54.9
    • changedInput schema / properties / value / description
      Previous value: -"Value to match (exact, case-sensitive, e.g. \"active\", \"session-log\"). Use vault_list_property_values to discover valid values for a key."New value: +"Value to match (e.g. \"active\", \"4\", \"1e-7\"). Use vault_list_property_values to discover valid values for a key."
  5. Changed2 schema fields changedv0.54.7
    • changedInput schema / properties / folder / description
      Previous value: -"Restrict to a folder prefix (e.g. \"Projects\")"New value: +"Restrict to a folder (e.g. \"Projects\")"
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 20). Increase for broad metadata queries."New value: +"Max results (default 20)"
  6. Changed4 schema fields changedv0.50.0
    • addedInput schema / properties / limit / default
      Added value: +20
    • addedInput schema / properties / limit / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
  7. Addedv0.32.1
  8. Removedv0.32.0
  9. Changed4 schema fields changedv0.23.5
    • changedInput schema / properties / folder / description
      Previous value: -"Restrict to a folder"New value: +"Restrict to a folder prefix (e.g. \"Projects\")"
    • changedInput schema / properties / key / description
      Previous value: -"Property key name (e.g. \"status\", \"type\"). Use vault_list_property_keys to discover valid keys."New value: +"Property key name (e.g. \"status\", \"type\", \"tags\"). Use vault_list_property_keys to discover valid keys."
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 20)"New value: +"Max results (default 20). Increase for broad metadata queries."
    • changedInput schema / properties / value / description
      Previous value: -"Value to match (exact, case-sensitive). Use vault_list_property_values to discover valid values for a key."New value: +"Value to match (exact, case-sensitive, e.g. \"active\", \"session-log\"). Use vault_list_property_values to discover valid values for a key."
  10. Changed2 schema fields changedv0.23.3
    • changedInput schema / properties / key / description
      Previous value: -"Property key name"New value: +"Property key name (e.g. \"status\", \"type\"). Use vault_list_property_keys to discover valid keys."
    • changedInput schema / properties / value / description
      Previous value: -"Value to match (exact, case-sensitive)"New value: +"Value to match (exact, case-sensitive). Use vault_list_property_values to discover valid values for a key."
  11. Changed3 schema fields changedv0.22.1
    • addedInput schema / properties / folder / minLength
      Added value: +1
    • addedInput schema / properties / key / minLength
      Added value: +1
    • addedInput schema / properties / value / minLength
      Added value: +1
  12. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already establish a safe read-only, idempotent profile, but the description adds substantial context beyond them: index lag of a few seconds, silent truncation with no signal in the response, unknown key returning [] rather than an error, sort order by file mtime then path, and how index error prefixes should be interpreted. That is exactly the operational knowledge annotations cannot convey.

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?

Well organized and front-loaded: examples first, then when-to-use, then per-parameter rules, then behavior and errors, then returns. Every section carries information, but the Returns block is a single long clause-chained sentence that could be bulleted for faster scanning.

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?

With no output schema, the description takes on the burden of documenting the full return shape (path, title, tags, body_tags, related, folder, type, created, modified, bytes, leading_callout, additional_properties) and does so including null/absent semantics and sort order. Combined with error taxonomy and matching rules, an agent can call and interpret this tool without further information.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds real meaning: exact case-sensitive key/value matching, the YAML 1.2 numeric coercion rule with worked forms ('04' vs 4.0 vs text '4'), checkbox matching only via '1'/'0', full-element list matching ('blog' vs 'my-blog'), folder prefix including subfolders with ASCII-case insensitivity, and limit selecting most-recently-modified. Far exceeds the schema's one-line parameter docs.

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?

States a specific verb and resource ('Find notes where a property matches a value') and immediately grounds it with two concrete call examples. It is clearly distinguishable from vault_search and vault_search_by_tag by name and by the stated matching scope.

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?

Explicitly gives when-to-use ('when you don't have a text query') and names alternatives with the conditions that select them: vault_search when a text query also exists, vault_search_by_tag for tag-specific queries, and the two list_* tools for key/value discovery. It even flags the key 'tags' edge case versus vault_search_by_tag.

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