Skip to main content
Glama
Obsidian CDP MCP Server

Obsidian CDP MCP Server

obsidian_get_frontmatter

Reads YAML frontmatter metadata from a specified Obsidian vault file path so you can inspect note properties.

Instructions

Get the frontmatter (YAML metadata) of a file.

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_frontmatter"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to the file relative to vault root

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.2

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing beyond the obvious read semantics implied by 'Get.' It does not say what is returned when a file has no frontmatter, whether a missing path errors, whether values are parsed into typed structures, or whether the operation is non-destructive.

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 short sentence with the resource front-loaded and no wasted words. It is efficient, though the brevity edges toward under-specification rather than crispness.

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 one-parameter read with full schema coverage and no output schema, the description is minimally sufficient to invoke the tool correctly. It leaves the observable behavior (empty frontmatter case, error conditions, return shape) undocumented, which matters more here since no annotations or output schema compensate.

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?

There is a single required parameter with 100% schema description coverage ('Path to the file relative to vault root'), so the schema already does the explaining. The description adds no additional meaning such as path format examples, whether extensions are required, or behavior for paths outside the vault; baseline 3 applies when the schema is complete.

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?

States a specific verb (Get) and a specific resource (the frontmatter / YAML metadata of a file), which is unambiguous. It implicitly contrasts with obsidian_update_frontmatter and obsidian_read_file through the narrow resource name, but never names those siblings explicitly.

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?

Usage is only implied by the narrowness of the resource: an agent can infer 'use this when you want metadata rather than the file body.' There is no explicit when-to-use statement, no exclusions, and no pointer to obsidian_read_file for full content or obsidian_get_all_properties for vault-wide property enumeration.

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