Skip to main content
Glama

Run Obsidian command

run_obsidian_command

List or execute Obsidian command palette commands, including community plugin commands, by ID against the running app; executing a command requires confirm set to true.

Instructions

List or execute command palette commands, including those registered by community plugins. Without id, lists available command ids. With id, executes that command against the running app, which requires confirm: true. This reaches everything a user could do from the command palette, use it deliberately.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_obsidian_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoCommand id to execute, e.g. "editor:toggle-bold".
filterNoWhen listing, only show ids starting with this prefix.
confirmNoMust be true. Guards against accidental calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does real work: it discloses execution happens against the running app, that community-plugin commands are in scope, and that confirm:true is a required guard. The closing warning to use it deliberately signals blast radius, though it never states what happens on a failed or missing confirm, nor what listing returns.

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?

Four short sentences, purpose front-loaded, then mode rules, then the safety constraint, then the caveat. No filler or restated title text; each sentence adds a distinct rule.

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 no-annotation, no-output-schema tool this covers the essentials: modes, the confirm gate, and command scope. It would be stronger if it described the shape of a listing result or the failure behavior when confirm is not true, both of which the agent must currently guess.

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 3 is the baseline, but the description adds something the per-parameter schema cannot: the conditional relationship where the presence of id switches the tool from list to execute mode. That mode logic is genuinely useful beyond the field descriptions.

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 names specific verbs and the resource: it lists or executes command palette commands by id, including plugin-registered ones. The dual-mode scope (list without id, execute with id) is stated outright, which distinguishes it from the vault-editing siblings in the catalog.

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 gives a clear decision rule: omit id to list, supply id to execute, and confirm must be true to proceed. What's missing is any explicit contrast with sibling tools (e.g., when to prefer a dedicated note tool over an arbitrary palette command), so the agent must infer alternatives.

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