Skip to main content
Glama
aliasunder

Vault Cortex Obsidian MCP Server

Recent Notes

vault_recent_notes
Read-onlyIdempotent

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

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({ sort_by: "modified", 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. Prefer vault_search_by_folder for browsing a specific folder.

Parameters:

  • sort_by + limit interact: "modified" (default) uses filesystem mtime, which every note has. "created" uses the frontmatter created property; notes without a valid one sort after every dated note, so a small limit can leave them out — use "modified" to see them.

  • "modified" includes any file write (content edits, property changes, sync touches), so recently-synced notes appear recent even without user edits.

Errors:

  • An empty vault returns an empty array, not an error.

Returns: JSON array of note metadata (path, title, tags, related, folder, type, created, modified, bytes, leading_callout?, additional_properties?), sorted descending by chosen timestamp. created is null when the property is missing or not an ISO date; bytes is on-disk file size.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results (default 20, no upper cap)
sort_byNoTimestamp to sort by, newest first (default "modified")modified

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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\")"
  2. 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"
  3. Addedv0.32.1
  4. Removedv0.32.0
  5. 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\")"
  6. 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."
  7. 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."
  8. 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."
  9. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world, so the safety profile is covered. The description still adds real behavior: mtime vs frontmatter timestamp semantics, that unparseable 'created' notes sort last and can be dropped by a small limit, that sync touches make notes look recent, and that an empty vault returns [] rather than an error. That is substantive context beyond the structured fields.

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 well-sectioned (scope, Examples, When to use, Parameters, Errors, Returns) with the differentiating scope claim front-loaded. The two near-identical example calls are mildly redundant, costing a little length without adding much.

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 compensates by enumerating the returned fields and clarifying null/missing semantics for 'created' and 'bytes'. Combined with annotations covering safety, an agent has everything needed to call this correctly.

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%, so names, defaults, and enum values are already documented. The description nonetheless adds genuine meaning beyond the schema by explaining the sort_by + limit interaction and the practical consequence of 'created' ordering (undated notes fall to the end and may be excluded). This is above the baseline but somewhat edge-case focused.

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 opens with a specific verb and resource ('List recently modified or created notes, sorted by timestamp') and immediately differentiates scope ('a time-ordered window into the vault, not a date-range filter'). An agent can distinguish it from vault_search, vault_list_notes, and vault_list_files without inspecting schemas.

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?

It gives an explicit 'When to use' line plus named alternatives with selecting conditions: 'Prefer vault_search for content-based discovery. Prefer vault_search_by_folder for browsing a specific folder.' Nothing is left to inference.

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