Skip to main content
Glama

set_css_snippet_enabled

Enable or disable a CSS snippet in an Obsidian vault by name, letting you control which custom styles are active.

Instructions

Turn a CSS snippet on or off.

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": {
      "name": "<name>",
      "enabled": "<enabled>"
    },
    "name": "set_css_snippet_enabled"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=false and idempotentHint=false, so the safety profile is covered by structured data. The description adds nothing beyond that: it does not say whether the snippet must exist, whether the change takes effect immediately or requires a reload, or how a missing snippet is handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of filler, but its brevity reflects under-specification rather than efficiency given the tool's parameters and mutation semantics.

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 simple two-required-parameter toggle with no output schema, an agent could still call this correctly from the name plus schema.

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

Parameters2/5

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

With only 33% schema description coverage, only 'vault' is documented in the schema, and the description does not compensate at all for 'name' or 'enabled'. It never states that 'name' is the snippet filename/identifier or that 'enabled' is the target toggle state, leaving the two required parameters unexplained.

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 gives a specific verb pair ('Turn ... on or off') applied to a named resource ('CSS snippet'), which is unambiguous on its face. It does not explicitly contrast itself with the sibling write_css_snippet, but the toggle-vs-author distinction is inferable from the wording.

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 guidance on when to use this instead of write_css_snippet, list_css_snippets, or set_plugin_enabled, and no prerequisites such as the snippet needing to already exist. The agent must infer the usage context entirely from the name.

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