Skip to main content
Glama

Read note frontmatter (full or single key)

obsidian_frontmatter_get
Read-onlyIdempotent

Extract YAML frontmatter from an Obsidian note, returning the entire object or a single key's value.

Instructions

Return parsed YAML frontmatter for a note. With key, returns just that field's value. Without key, returns the whole frontmatter object. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoSingle key to read; omit for full frontmatter
pathNoVault-relative path
titleNoNote title (filename without .md, accepts periodic aliases)
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so the description's 'Read-only' confirms. It adds behavioral details: returns full frontmatter object without 'key' and just the field value with 'key'. This goes beyond annotations by clarifying conditional behavior.

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?

The description is two concise sentences, front-loaded with the main purpose, and no redundant words. It efficiently conveys the core behavior and condition.

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?

For a simple read tool with full annotations and 100% parameter documentation, the description is sufficient. It explains what is returned and the key behavior. No output schema exists, but the return type can be inferred. Could benefit from mentioning possible return types (object or scalar), but not a critical gap.

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

Parameters4/5

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

All three parameters (key, path, title) have descriptions in the schema, achieving 100% coverage. The description adds meaning by explaining how the 'key' parameter affects output (returns field value vs full object). This is extra value beyond the schema's basic descriptions.

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?

The description clearly states the tool returns parsed YAML frontmatter for a note, with distinction between returning full object versus a single key. It uses specific verb 'Return' and identifies the resource 'frontmatter'. It implicitly differentiates from sibling tools like obsidian_frontmatter_search (search) and obsidian_read_note (full note), though not 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?

The description provides no explicit guidance on when to use this tool versus alternatives like obsidian_read_note for full note content or obsidian_frontmatter_search for searching. However, its behavior is intuitive for reading frontmatter, and the 'Read-only' annotation hints at safe usage. Implied usage is adequate.

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/oomkapwn/enquire-mcp'

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