Skip to main content
Glama

list_css_snippets

Read-onlyIdempotent

Lists CSS snippets in a vault's .obsidian/snippets folder with enabled status, plus installed and active themes, so you can audit or verify styling configuration before changing appearance.

Instructions

CSS snippets in .obsidian/snippets and whether each is enabled; also installed themes and the active theme.

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

Input Schema

NameRequiredDescriptionDefault
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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds genuine scope information beyond them: that snippets come with their enabled state and that installed/active themes are bundled in the same response, which the agent could not guess. It says nothing about behavior when the snippets directory is absent or about result size, which keeps it at an adequate rather than rich level.

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?

One compact sentence with zero filler; the primary payload (snippets and enabled state) is front-loaded and the secondary payload (themes) follows after 'also'. It is telegraphic to the point of omitting a verb, which slightly hurts readability but not information density.

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 zero-required-parameter read-only lister with no output schema, the description covers what an agent needs: the resource, its source directory, the per-item enabled flag, and the extra theme data. Only edge-case behavior (missing snippets folder, empty results) is unaddressed, which is a minor omission.

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

Parameters3/5

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

There is a single optional 'vault' parameter with 100% schema description coverage (it already points to list_vaults and documents the OBSIDIAN_VAULT default). The description adds no vault-related meaning, so the baseline of 3 applies since the schema does all the work.

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 names the concrete resource and location ('.obsidian/snippets') and states exactly what is returned for each snippet (enabled or not), plus that themes and the active theme are included. It is a sentence fragment rather than an explicit verb+resource, but an agent can immediately tell this is the read-side counterpart to set_css_snippet_enabled and write_css_snippet.

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 when-to-use guidance and no alternative named; the agent must infer that this is the inspection tool because the sibling names imply mutation. The surprise that themes are also returned is stated but not framed as a reason to call it, so routing is left to the name and annotations alone.

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