Skip to main content
Glama
Obsidian CDP MCP Server

Obsidian CDP MCP Server

obsidian_execute_command

Runs a specified Obsidian command by its command ID, enabling automation of editor and plugin actions from an MCP client.

Instructions

Execute an Obsidian command by its ID.

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": {
      "command_id": "<command_id>"
    },
    "name": "obsidian_execute_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
command_idYesCommand ID to execute (e.g., 'editor:toggle-fold')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.9.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and does not meet it. It never says whether the command runs in the live Obsidian app, whether arbitrary commands (including destructive ones like file deletion) can be triggered, what happens on an invalid or unknown ID, or whether anything is returned.

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?

A single short sentence with zero filler, and the key constraint (command ID) is front-loaded. It is efficient but borders on under-specification rather than being a model of tight structure.

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

Completeness2/5

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

For a tool that can trigger arbitrary editor commands with side effects, and with no annotations and no output schema, the definition leaves too much unstated: ID provenance, failure behavior, and side-effect risk. An agent could call this correctly in the happy path but has no basis for judging risk.

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

Parameters3/5

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

Schema coverage is 100% and the schema itself supplies a concrete example ('editor:toggle-fold'), so the parameter is well documented without the description. The description adds no syntax, format, or discovery detail beyond what the schema already states, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('Execute') and resource ('an Obsidian command'), and the 'by its ID' qualifier makes the input contract clear. It does not differentiate itself from the obvious companion tool obsidian_list_commands, so an agent must infer that relationship rather than read it.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus alternatives, no mention of how a command ID is obtained (e.g., via obsidian_list_commands), and no prerequisites. The only hint is the parameter name itself, which is structured data rather than guidance.

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