Skip to main content
Glama
j-shelfwood

Obsidian Local REST API MCP Server

by j-shelfwood

list_notes

Retrieve notes from an Obsidian vault with optional search filtering to locate specific content.

Instructions

List all notes in the vault with optional search filter (legacy with search support)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNoOptional search query to filter notes

Implementation Reference

  • The core handler function `listNotes()` in the `ObsidianApiClient` class that makes a GET request to the "/notes" endpoint to list all notes.
    async listNotes() {
      return this.request("/notes");
    }
  • The input schema definition for the "list_notes" tool, which accepts an optional "search" string parameter.
    {
      name: "list_notes",
      description: "List all notes in the vault with optional search filter (legacy with search support)",
      inputSchema: {
        type: "object",
        properties: {
          search: { type: "string", description: "Optional search query to filter notes" },
        },
      },
    },
  • src/index.ts:508-516 (registration)
    The dispatch logic in the `CallToolRequestSchema` handler's switch statement that routes "list_notes" calls to either `searchVault` (if search provided) or `listNotes()`.
    case "list_notes":
      const searchQuery = args?.search as string;
      if (searchQuery) {
        // Use the enhanced search functionality
        result = await this.client.searchVault(searchQuery, ["content", "filename", "tags"]);
      } else {
        result = await this.client.listNotes();
      }
      break;
Behavior2/5

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

With no annotations, the description carries full burden but lacks behavioral details. It mentions 'list all notes' and 'optional search filter', but doesn't disclose pagination, rate limits, permissions, or what 'legacy' entails (e.g., deprecated features). This leaves gaps for a read operation tool.

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 a single, efficient sentence that front-loads the core purpose. However, the parenthetical 'legacy with search support' adds minor clutter without clear utility, slightly reducing conciseness.

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

Completeness3/5

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

For a simple read tool with one parameter and no output schema, the description is adequate but incomplete. It covers the basic action and parameter, but lacks details on return format, error handling, or the implications of 'legacy', which could affect agent usage given the sibling tools available.

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%, so the schema already documents the 'search' parameter as an optional query. The description adds minimal value by reiterating 'optional search filter' and noting 'legacy with search support', but doesn't provide additional syntax, format, or behavioral context beyond the schema.

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 'List' and resource 'notes in the vault', specifying it retrieves all notes with optional filtering. It distinguishes from siblings like 'get_note' (single note) and 'get_recent_notes' (subset), but doesn't explicitly contrast with 'search_vault' or 'find_related_notes'.

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

Usage Guidelines3/5

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

The description implies usage for retrieving all notes, optionally filtered by search, but provides no explicit guidance on when to use this tool versus alternatives like 'search_vault' or 'find_related_notes'. The mention of 'legacy with search support' hints at context but doesn't clarify exclusions or prerequisites.

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