Skip to main content
Glama
j-shelfwood

Obsidian Local REST API MCP Server

by j-shelfwood

get_recent_notes

Retrieve recently modified notes from your Obsidian vault to track recent changes and access updated content quickly.

Instructions

Get recently modified notes, ordered by modification time

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of recent notes to return

Implementation Reference

  • The core implementation of the get_recent_notes tool. This method in ObsidianApiClient makes a GET request to the Obsidian REST API endpoint `/vault/notes/recent` with the optional limit parameter to retrieve recently modified notes.
    async getRecentNotes(limit: number = 5) {
      const params = new URLSearchParams({ limit: limit.toString() });
      return this.request(`/vault/notes/recent?${params}`);
    }
  • src/index.ts:350-359 (registration)
    Registration of the get_recent_notes tool in the list of available tools returned by ListToolsRequestHandler. Includes name, description, and input schema.
    {
      name: "get_recent_notes",
      description: "Get recently modified notes, ordered by modification time",
      inputSchema: {
        type: "object",
        properties: {
          limit: { type: "number", description: "Number of recent notes to return", default: 5 },
        },
      },
    },
  • MCP tool dispatcher case that handles calls to get_recent_notes by invoking the client method with the provided arguments.
    case "get_recent_notes":
      result = await this.client.getRecentNotes(args?.limit as number);
      break;
  • Input schema definition for the get_recent_notes tool, specifying the optional limit parameter.
    inputSchema: {
      type: "object",
      properties: {
        limit: { type: "number", description: "Number of recent notes to return", default: 5 },
      },
    },
Behavior2/5

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

No annotations are provided, so the description carries full burden. It states ordering behavior ('ordered by modification time') but lacks critical details: whether it's read-only, requires permissions, includes pagination, returns metadata, or handles errors. For a retrieval tool with zero annotation coverage, this is insufficient.

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?

Single sentence, front-loaded with core functionality ('Get recently modified notes'), followed by ordering detail. Zero wasted words, efficiently conveying the essential action and key behavioral trait.

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

Completeness2/5

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

For a retrieval tool with no annotations and no output schema, the description is incomplete. It lacks information on return format (e.g., note content vs. metadata), error handling, authentication needs, or rate limits. Given the server context with multiple note-related tools, more guidance is needed to distinguish usage.

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

Parameters3/5

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

Schema description coverage is 100%, with the single parameter 'limit' fully documented in the schema. The description adds no parameter-specific information beyond implying 'recently modified' scope, which doesn't clarify syntax or format. Baseline 3 is appropriate as the schema handles parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('recently modified notes'), specifying ordering by modification time. It distinguishes from siblings like 'get_note' (single note) and 'list_notes' (unfiltered list), but doesn't explicitly contrast with 'find_related_notes' or 'search_vault' which might also return notes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives like 'list_notes', 'search_vault', or 'find_related_notes'. The description implies recency-based retrieval but doesn't specify scenarios where this is preferred over other listing/search tools.

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/j-shelfwood/obsidian-local-rest-api-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server