Skip to main content
Glama
shaynemeyer

obsidian-mcp

by shaynemeyer

obsidian_switch_vault

Idempotent

Change the active Obsidian vault for subsequent tool calls in this session. Use when working across multiple vaults; individual vault arguments still override.

Instructions

Change which vault subsequent unqualified tool calls target.

Changes this server session only — nothing in any vault is modified, and Obsidian's own open vault is unaffected. Prefer passing vault directly on a tool call for one-off access; switch when a long stretch of work lives in one vault. A vault argument on an individual call always overrides this.

Args: params (SwitchVaultInput): - vault (str): Name of the vault to make current

Returns: str: JSON of the shape {"status": "ok", "current_vault": str, "previous_vault": str, "path": str|null, "rest_base_url": str|null, "backends": ["rest"|"filesystem"]} On failure: "Error: Unknown vault ''. Configured vaults: ..."

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

The description discloses session-only behavior, that nothing in any vault is modified, that Obsidian's own open vault is unaffected, and it documents both success and failure return shapes. These are meaningful traits beyond the annotations, and no annotation conflict exists.

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 core statement is first, followed by targeted scope and usage guidance, then a compact Args/Returns block. No filler; the length is appropriate for the behavioral and precedence information it carries.

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?

For a single-parameter, session-state tool, the definition covers every decision an agent needs: what it does, when to switch vs. pass vault directly, precedence, session scope, and the exact success/error response shape.

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?

There is only one parameter, and the description's Args section gives its meaning. Although the context signal reports 0% schema description coverage, the embedded schema itself includes a description for the vault parameter, and the description's failure output tells the agent how to discover valid vault names when a bad one is supplied.

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?

States a precise action and scope: 'Change which vault subsequent unqualified tool calls target.' This makes clear it is a session-level router rather than a note or vault content operation, and it is easily distinguished from the note-reading/writing siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs when to use the tool vs. the alternative: prefer passing `vault` directly for one-off access and switch only for a long stretch in one vault. Also states precedence: an explicit `vault` argument always overrides the switched value.

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