Skip to main content
Glama

set_theme

Switch an Obsidian vault’s community theme and light, dark, or system mode so notes match your preferred appearance.

Instructions

Set the community theme (installed in .obsidian/themes; "" for default) and/or light/dark mode.

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": "set_theme"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
themeNo
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-open-world mutation, so the description only needs to add context. It does add one useful fact beyond annotations — that an empty string resets to the default theme — but says nothing about persistence (per-vault vs global), whether Obsidian must be restarted, or what happens on an invalid theme name.

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?

A single sentence with zero filler; the resource being set is front-loaded and the qualifying detail about theme location follows parenthetically. Nothing is repeated from the schema or annotations.

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?

For a three-parameter mutation tool with no output schema and minimal annotations, the definition covers what is changed but not the effects: per-vault scoping (implied by the vault parameter), error behavior for unknown themes, or whether the change is live. Adequate to invoke correctly in the happy path, but an agent must guess at edge cases.

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 description coverage is only 33% (only the vault parameter is documented in-schema), so the description must compensate. It does so well for 'theme' by explaining that the value is a name installed under .obsidian/themes and that "" selects the default — information absent from the schema. 'mode' is left to the self-explanatory enum, including the mildly ambiguous 'system' value, which keeps it from a 5.

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?

States a specific verb ('Set') with two concrete resources (community theme and light/dark mode), which is enough to distinguish it from siblings like set_css_snippet_enabled or set_plugin_enabled. It also names the theme location (.obsidian/themes), removing ambiguity about what 'theme' means here. It stops short of a perfect 5 only because 'and/or' leaves the combined semantics slightly fuzzy.

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?

Usage is implied rather than stated: 'and/or' tells the agent it may set one or both properties, and '(installed in .obsidian/themes)' hints that the theme must already exist. There is no explicit when-to-use guidance, no statement of what happens if the named theme is not installed, and no routing to alternative tools for appearance-related changes.

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

Deploy Server

Other Tools