Skip to main content
Glama
obsidian-mcp

obsidian-mcp

by LWaetzig

Get Note Metadata

obsidian_get_note_metadata
Read-onlyIdempotent

Read only a note's frontmatter metadata—tags, dates, and custom fields—without loading the full body. Use it when you need metadata quickly instead of reading entire notes.

Instructions

Read only the frontmatter metadata of a note, without returning its full body.

More efficient than obsidian_read_note when you only need tags, dates, or custom frontmatter fields.

Args:

  • path (string): Vault-relative path to the note

  • response_format: 'markdown' | 'json' (default: 'markdown')

Returns: Note path, name, frontmatter key-value pairs, tags, and timestamps.

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": {
      "path": "<path>"
    },
    "name": "obsidian_get_note_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesVault-relative path to the note
response_formatNoOutput format: 'markdown' for human-readable, 'json' for machine-readablemarkdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world, so the description only needs to add context. It does: it clarifies the operation returns metadata only and never the body, which is the main behavioral question for this tool. It does not cover error behavior for a missing path, but that is a minor gap given the annotation coverage.

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 the core behavior and the efficiency rationale, followed by a short Args block and a Returns line. It is well within reasonable size; the Args section is mildly redundant with a fully documented schema but harmless.

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

Completeness4/5

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

Covers purpose, alternative, parameters, and return contents, which matters because there is no output schema. For a two-parameter read tool with full annotations this is essentially complete, with only edge-case handling (nonexistent path, frontmatter-less note) unstated.

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 both parameters including the response_format enum and 'vault-relative' semantics are already documented. The Args block largely restates the schema, adding only the default value, which is also in the schema. Baseline 3 applies.

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 (read frontmatter metadata of a note) plus its key scoping constraint (no full body). Explicitly contrasts with the sibling obsidian_read_note, so an agent can pick between them without opening either schema.

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

Usage Guidelines4/5

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

Gives a clear when-to-use rule with the named alternative: use this instead of obsidian_read_note when only tags, dates, or custom frontmatter are needed. It does not say when to fall back to the full read beyond that implication, nor how notes lacking frontmatter are handled, but the routing signal is explicit.

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