Skip to main content
Glama
MichaelAnckaert

obsidian-mcp

get_file_content

Retrieve the full text contents of files in your Obsidian vault by providing the file's relative path, making it easy to access notes programmatically.

Instructions

Get the content of a file in the Obsidian Vault.

Args:
    file_path: The relative file path from the vault root. Use the exact path
              format returned by list_files() or find_files().
              Examples: 'notes/meeting-notes.md', 'daily/2024-01-15.md'
              This parameter is REQUIRED - you must specify which file to read.

Returns:
    The full text content of the file, or an error message if the file
    cannot be read or doesn't exist.

Note: Only reads text files. Binary files will return an encoding error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Since no annotations are provided, the description carries the full burden and does well by disclosing that only text files are supported and binary files will return an encoding error. It also clarifies the return behavior (full text or error message), which is useful. The description does not mention any side effects or permissions, but for a read operation this is acceptable.

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 well-structured with Args, Returns, and Note sections. It is slightly verbose (e.g., 'This parameter is REQUIRED' is redundant with the schema), but every part adds informative value, and it remains succinct overall.

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

Completeness5/5

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

The tool has one parameter and an output schema, yet the description still explains the input format, provides examples, and notes limitations. It fully covers what the agent needs to invoke the tool correctly and interpret results.

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

Parameters5/5

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

The input schema has no description for file_path (0% coverage), but the description more than compensates by explaining it must be a relative path from the vault root, giving examples, and emphasizing it is required. This adds significant meaning beyond the schema.

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 reads a file's content from the Obsidian Vault. It uses a specific verb ('Get') and resource ('file'), and the sibling tools (list_files, find_files, find_in_all_file_content) are distinct enough to avoid confusion.

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?

It instructs users to use the exact path format returned by list_files() or find_files(), which gives clear context for how to obtain the required input. It does not explicitly say when to use this tool versus alternatives, but the purpose is so narrow that the guidance 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/MichaelAnckaert/obsidian-mcp'

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