Skip to main content
Glama
Vault Cortex Obsidian MCP Server

Vault Cortex Obsidian MCP Server

Recent Notes

vault_recent_notes
Read-onlyIdempotent

List recently modified or created notes sorted by timestamp to catch up on vault changes, find recent work, or orient after a break.

Instructions

List recently modified or created notes, sorted by timestamp — a time-ordered window into the vault, not a date-range filter.

Example: vault_recent_notes({ limit: 10 }) Example: vault_recent_notes({ sort_by: "created", limit: 5 })

When to use: Catching up on vault changes, finding recent work, or orienting after a break. Prefer vault_search for content-based discovery, including a text query limited to a date range (its created and modified filters). Prefer vault_search_by_folder for browsing a specific folder.

Parameters:

  • sort_by "modified" uses filesystem mtime. Any file write counts (content edits, property changes, sync touches), so recently-synced notes appear recent even without user edits.

  • sort_by "created" uses the created property; notes where it is missing or not an ISO date sort after every dated note, so a small limit can leave them out — use "modified" to see them.

Behavior: Results can lag a file change by a few seconds. An empty vault 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). Newest first by the sort_by timestamp.

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": "vault_recent_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (default 20)
sort_byNoTimestamp to sort by (default "modified")modified

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.55.4
    • changedInput schema / properties / sort_by / description
      Previous value: -"Timestamp to sort by, newest first (default \"modified\")"New value: +"Timestamp to sort by (default \"modified\")"
  3. Changed1 schema field changedv0.54.16
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed1 schema field changedv0.54.13
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort order (default \"modified\")"New value: +"Timestamp to sort by, newest first (default \"modified\")"
  5. Changed5 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"
    • addedInput schema / properties / sort_by / default
      Added value: +"modified"
  6. Addedv0.32.1
  7. Removedv0.32.0
  8. Changed2 schema fields changedv0.23.6
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 20, no upper cap). Example: limit: 5 returns the top 5 by chosen timestamp."New value: +"Max results (default 20, no upper cap)"
    • changedInput schema / properties / sort_by / description
      Previous value: -"\"created\" or \"modified\" (default). \"modified\" uses filesystem mtime (any write, including sync, updates it). \"created\" uses the frontmatter created property — notes without it sort last; pair with a higher limit to include them."New value: +"Sort order (default \"modified\")"
  9. Changed2 schema fields changedv0.23.5
    • changedInput schema / properties / limit / description
      Previous value: -"Max results to return (default 20). When sorting by created, notes without a created property sort last and may fall outside a small limit."New value: +"Max results (default 20, no upper cap). Example: limit: 5 returns the top 5 by chosen timestamp."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort by \"created\" (frontmatter created timestamp) or \"modified\" (filesystem mtime). Default \"modified\". Notes without a created property sort to the bottom of created-sorted results — with a small limit they may not appear at all."New value: +"\"created\" or \"modified\" (default). \"modified\" uses filesystem mtime (any write, including sync, updates it). \"created\" uses the frontmatter created property — notes without it sort last; pair with a higher limit to include them."
  10. Changed2 schema fields changedv0.23.3
    • changedInput schema / properties / limit / description
      Previous value: -"Max results to return (default 20)"New value: +"Max results to return (default 20). When sorting by created, notes without a created property sort last and may fall outside a small limit."
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort by \"created\" (frontmatter created timestamp) or \"modified\" (filesystem mtime). Default \"modified\". Notes without a created property are excluded from created-sorted results."New value: +"Sort by \"created\" (frontmatter created timestamp) or \"modified\" (filesystem mtime). Default \"modified\". Notes without a created property sort to the bottom of created-sorted results — with a small limit they may not appear at all."
  11. Changed2 schema fields changedv0.22.0
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 20)"New value: +"Max results to return (default 20)"
    • changedInput schema / properties / sort_by / description
      Previous value: -"Sort field: \"created\" or \"modified\" (default \"modified\")"New value: +"Sort by \"created\" (frontmatter created timestamp) or \"modified\" (filesystem mtime). Default \"modified\". Notes without a created property are excluded from created-sorted results."
  12. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered; the description nonetheless adds substantive behavior: mtime counts sync touches, missing/non-ISO created values sort last and can fall outside a small limit, results can lag writes by seconds, and an empty vault returns [] rather than an error. It also explains the SqliteError/IndexIntegrityError signals as index faults rather than call faults. Minor gap: no pagination/offset guidance beyond the limit ceiling.

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?

Front-loaded with purpose and two call examples, then cleanly sectioned into when-to-use, parameters, behavior, errors and returns. It is long, but the density is high and each section maps to a real decision an agent must make; the example lines are slightly redundant with the parameter list but still cheap.

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 carries the return contract itself and does so field by field (path, title, tags, body_tags, related, folder, type, created, modified, bytes, optional leading_callout and additional_properties), including which sibling tool edits which field and the null/empty fallbacks. For a two-parameter read tool this leaves nothing material unstated.

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% and both parameters are already documented, so the baseline would be 3. The description earns above baseline by explaining what the two sort_by values actually mean (filesystem mtime vs the created property) and the concrete consequence of choosing "created" with a small limit, which the terse enum descriptions do not convey.

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?

Opens with a specific verb and resource ("List recently modified or created notes, sorted by timestamp") and immediately delimits scope with "a time-ordered window into the vault, not a date-range filter." It names the sibling tools it is not (vault_search, vault_search_by_folder), so an agent can distinguish it without reading any schema.

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?

Provides an explicit "When to use" clause (catching up, finding recent work, orienting after a break) and explicit routing rules: prefer vault_search for content-based discovery including date-ranged text queries, prefer vault_search_by_folder for folder browsing. Alternatives and the conditions that select them are both stated.

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