Skip to main content
Glama

Execute Obsidian command

execute_obsidian_command
Destructive

Run a command in the Obsidian app as if chosen from the command palette, using a command id from the available command list to trigger app actions.

Instructions

Run a command in the Obsidian app, as if chosen from the command palette. Use list_obsidian_commands for the ids.

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": {
      "commandId": "<commandId>"
    },
    "name": "execute_obsidian_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandIdYesCommand id, e.g. "app:open-settings"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A3.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=true, so the safety profile is known. The description adds nothing beyond that: it does not warn that arbitrary palette commands may mutate or delete vault content with no undo, does not say whether plugin/third-party commands are accepted, and does not describe failure behavior for invalid ids. For a destructive arbitrary-command executor, this is a meaningful gap.

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 short sentences, front-loaded with the core action and followed immediately by the id-lookup pointer. There is no filler, repetition, or trailing caveat that dilutes the instruction.

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?

The tool is simple (one required string parameter) and there is no output schema, so return values need not be explained. But for a destructive, open-world executor the definition leaves out what a successful call returns, what happens on an unknown id, and whether side effects are reversible — details an agent needs before invoking it.

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% and the schema already supplies an example id format, so the baseline is 3. The description goes slightly beyond by directing the agent to list_obsidian_commands as the authoritative source of valid ids, which tells the agent how to populate the parameter rather than guessing a string.

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 a command in the Obsidian app") plus an analogy ("as if chosen from the command palette") that makes the scope immediately concrete. It also names the sibling tool that supplies valid command ids, so an agent can distinguish it from list_obsidian_commands without opening either schema.

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?

"Use list_obsidian_commands for the ids" is explicit routing for id lookup, which is genuinely helpful. However, there is no guidance on when this tool should be preferred over the many dedicated siblings (create_note, delete_note, open_in_obsidian) that perform the same underlying actions more safely, leaving the agent to infer that this is a catch-all escape hatch.

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