Skip to main content
Glama
bezata

kObsidian MCP

by bezata

Execute Obsidian Command

commands.execute
Destructive

Trigger any Obsidian command by its internal ID, passing optional arguments to perform actions like saving files or opening the command palette.

Instructions

Execute an Obsidian command by its internal id (as returned by commands.list). args is an optional argument map passed to the command (most built-in commands take no arguments). Requires the Local REST API plugin. Destructive — the effect depends entirely on what the command does, so verify the command id before calling.

Targets the vault the live Obsidian process has open via the Local REST API. Not affected by vault.select — that only changes filesystem-tool routing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNoOptional map of command arguments. Most commands accept none.
commandIdYesCommand identifier, e.g. `editor:save-file` or `command-palette:open`.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.3.5
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed4 schema fields changedv0.1.2
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / args / description
      Added value: +"Optional map of command arguments. Most commands accept none."
    • addedInput schema / properties / commandId / description
      Added value: +"Command identifier, e.g. `editor:save-file` or `command-palette:open`."
    • addedOutput schema / description
      Added value: +"Freeform object. The specific shape depends on the tool; see the tool description."
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false. The description reinforces this by stating 'Destructive — the effect depends entirely on what the command does' and adds a verification warning. It also discloses the plugin requirement, the targeting of the live Obsidian vault, and that routing is unaffected by `vault.select`. This adds significant context beyond the annotations with no contradiction.

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 two short paragraphs that are front-loaded with the core purpose and then add relevant contextual warnings. It avoids redundancy with the schema and each sentence contributes either a prerequisite, a caution, or a routing clarification. It could be slightly tighter (e.g., merging the two paragraphs), but it is appropriately sized for a potentially dangerous tool.

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?

Given the tool's high risk (executes arbitrary commands) and the presence of a full schema and output schema, the description covers all critical aspects: how to identify a command, optional arguments, required plugin, destructiveness warning, target scope, and routing behavior. It does not describe error handling, but that is not essential when the description already meets the safety and usage needs for an agent.

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 both parameters are already well-documented. The description enhances this by clarifying that `args` is an optional argument map and that most built-in commands take no arguments (matching the schema's note). More importantly, it tells the agent where to obtain a valid `commandId` (via `commands.list`), which is not in the schema. This added guidance slightly exceeds the baseline for full coverage.

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 states a specific verb ('Execute') and a clear resource ('an Obsidian command by its internal id'), and references `commands.list` as the source of ids. It also explicitly notes that `vault.select` does not affect this tool, distinguishing it from filesystem-routing tools. This is a precise, unambiguous purpose statement.

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 mentions a clear prerequisite (Requires the Local REST API plugin) and gives a caution to verify the command id before calling, which guides safe usage. It does not explicitly state when to use this tool over alternatives, but the reference to `commands.list` implies a natural sequence and the `vault.select` note clarifies when it is not affected. Lacks an explicit when-not-to-use, so a 4 is appropriate.

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

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/bezata/kObsidian'

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