Skip to main content
Glama

Obsidian CLI passthrough

obsidian_cli

Run any Obsidian CLI command against your vault to handle operations not covered by typed tools, with automatic vault targeting and confirmation for state-changing actions.

Instructions

Run any command against the Obsidian vault via the official Obsidian CLI. Escape hatch for the long tail not covered by the typed tools. Obsidian must be running on this Mac.

Syntax Parameters take a value with = e.g. "query=meeting notes" Flags are bare words e.g. "todo", "total", "counts" Multiline content uses \n and \t inside the value file= resolves like a wikilink, path= is exact from the vault root Omitting file and path targets the currently active file, avoid this for writes

Vault targeting is handled automatically: a vault= token is prepended unless you pass your own.

Examples ["search", "query=quarterly review", "limit=10"] ["tasks", "todo", "verbose"] ["backlinks", "file=Main Notes", "counts"] ["files", "folder=Journal", "total"] ["help"] for the full command list, ["help", "tasks"] for one command

State-changing commands (delete, move, rename, plugin toggles, themes, snippets, publish, command execution) require confirm: true. A few (eval, restart, plugin install and uninstall, devtools) are blocked unless the server runs with OBSIDIAN_MCP_ALLOW_DANGEROUS=1.

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": {
      "args": "<args>"
    },
    "name": "obsidian_cli"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesCLI tokens, pre-split into an array. First token is the command, e.g. ["search","query=budget"]. Never a single shell string.
vaultNoOverride the target vault.
confirmNoRequired for state-changing commands and for the overwrite and permanent flags.
timeout_msNoPer-command timeout in ms. Defaults to 20000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full behavioral burden and does so: it discloses the confirmation gate for state-changing commands (delete, move, rename, plugin toggles, themes, snippets, publish, command execution), an environment-variable gate blocking eval/restart/plugin install and uninstall/devtools, the auto-prepended vault token, and the write hazard of targeting the active file by omitting file and path.

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?

Front-loaded one-sentence purpose followed by labeled Syntax, Examples, and safety sections. The syntax rules and four examples are compact and each earns its place by preventing a distinct class of invocation error.

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 high-flexibility passthrough with no annotations and no output schema, the definition covers prerequisites, confirmation, dangerous-command gating, and token syntax thoroughly, and routes to ["help"] for command discovery. The one remaining gap is that return values/stdout shape are never characterized, which matters for an agent that must parse results.

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?

Schema coverage is 100%, so baseline is 3, but the description adds real syntax the schema lacks: value tokens with '=', bare flags, \n and \t escaping in multiline values, and the file=<name> (wikilink-style) versus path=<path> (vault-root exact) distinction. Example arrays also demonstrate correct tokenization for args.

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 specific verb and resource ("Run any command against the Obsidian vault via the official Obsidian CLI") and immediately positions itself against the sibling set: "Escape hatch for the long tail not covered by the typed tools." An agent can tell without opening the schema that this is the generic fallback rather than a typed operation.

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?

Gives clear selection context (use when the typed tools don't cover the operation) and a hard prerequisite ("Obsidian must be running on this Mac"), plus a pointer to ["help"] for discovery. It does not explicitly say "prefer the typed tools when one exists," but the escape-hatch framing implies it strongly; no explicit exclusions otherwise.

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