Skip to main content
Glama
dot-RealityTest

obsidian-codex-mcp

create_folder

Create a new folder in your Obsidian vault by specifying the folder path.

Instructions

Create a new folder in the vault.

Args: folder_path: Path to the new folder (e.g., "projects/new-project/")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folder_pathYes

Implementation Reference

  • MCP tool handler for create_folder. This is the entry point that validates read-only mode, gets the vault client, and delegates to the client's create_folder method. Returns success/error dict.
    @mcp.tool()
    def create_folder(folder_path: str) -> dict:
        """Create a new folder in the vault.
        
        Args:
            folder_path: Path to the new folder (e.g., "projects/new-project/")
        """
        try:
            if is_read_only():
                return read_only_error()
    
            client = get_vault_client()
            success = client.create_folder(folder_path)
            
            if success:
                return {"success": True, "message": f"Folder created: {folder_path}"}
            else:
                return {"error": f"Folder already exists: {folder_path}"}
        except Exception as e:
            return {"error": str(e)}
  • server.py:271-272 (registration)
    The @mcp.tool() decorator registers create_folder as an MCP tool with the FastMCP server.
    @mcp.tool()
    def create_folder(folder_path: str) -> dict:
  • Actual implementation in ObsidianVaultClient. Resolves the vault-relative path, checks if it already exists (returns False), and creates the directory with parents=True.
    def create_folder(self, folder_path: str) -> bool:
        """Create a new folder in the vault."""
        folder = self._resolve_vault_path(folder_path)
        
        if folder.exists():
            return False
        
        folder.mkdir(parents=True, exist_ok=True)
        return True
Behavior2/5

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

No annotations provided; description only states 'create' but does not disclose key behaviors such as error handling on duplicate paths, permissions required, or side effects.

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?

Two sentences only, front-loaded with the core purpose, no wasted words.

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 simple one-parameter tool with no output schema, the description covers the basic functionality but misses potential contextual details like conflict behavior or directory structure constraints.

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?

Despite 0% schema coverage, the description adds an example and explains the parameter meaning and format ('e.g., projects/new-project/'), which compensates for the schema's lack of description.

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?

Description clearly states action ('create a new folder'), specific resource ('in the vault'), and distinguishes from sibling tools like create_note.

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?

Provides an example of usage but lacks explicit guidance on when to use this tool versus alternatives, or prerequisites like vault existence.

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/dot-RealityTest/obsidian-codex-mcp'

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