Skip to main content
Glama

get_note_metadata

Read-onlyIdempotent

Retrieve all metadata for an Obsidian note, including properties, tags, aliases, headings, resolved links, embeds, tasks, inline fields, and word and backlink counts.

Instructions

Everything Obsidian's metadata cache knows about a note: properties, tags, aliases, headings, links (resolved), embeds, block ids, tasks, inline fields, word count, backlink count.

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": {
      "file": "<file>"
    },
    "name": "get_note_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesNote path ("Folder/Note.md"), path without .md, note name, alias, or [[wikilink]]
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so safety is covered. The description adds one genuinely useful behavioral fact: this reads Obsidian's metadata cache rather than parsing the file, implying possible staleness and no side effects. It does not state what happens for an unknown note or whether the cache can lag behind unsaved edits.

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?

A single front-loaded sentence with no filler; every listed item conveys returned data the agent would otherwise have to discover by calling. The long enumeration is dense but purposeful, since there is no output schema to lean on.

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?

With no output schema, the description carries the burden of describing return content and does so thoroughly. For a read-only, two-parameter tool whose annotations already cover safety, the remaining gaps (shape of the response, behavior on missing notes, cache staleness) are modest rather than disqualifying.

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 coverage is 100% and both parameters are fully documented in the schema, including the flexible file resolution (path, name, alias, wikilink) and the vault defaulting rule. The description adds nothing about parameters, so the baseline of 3 applies.

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?

Names a specific verb-and-resource pair ('metadata cache knows about a note') and enumerates the exact payload: properties, tags, aliases, headings, links, embeds, block ids, tasks, inline fields, word/backlink counts. That lets an agent tell this apart from a plain read. It stops short of naming siblings like get_frontmatter or get_backlinks, so the boundary with those narrower tools is left for the agent to infer.

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?

There is no when-to-use or when-not-to-use guidance. The description never says to prefer this tool over get_frontmatter, get_note_outline, or get_backlinks, even though the enumerated contents obviously overlap with all three. It is a pure content inventory with no routing signal.

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

Deploy Server

Other Tools