Skip to main content
Glama

skein_theme

Destructive

The caller's visual theme — colours, fonts, sizes, spacing. Call action="instructions" FIRST when the user asks for visual changes ("change the color", "another font", "make it darker", "like Alice's"): it returns the canonical fork → preview → confirm → persist workflow and the onboarding script, and improvising without it is the documented way to get this wrong. Built-in light/dark are read-only, so editing always starts with action="fork". Read-only actions: instructions, describe.

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": {
      "action": "<action>"
    },
    "name": "skein_theme"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName for the new theme; unique among your own themes (another user's theme of the same name never collides), 1..100 chars. Required for fork.
actionYesWhat to do: - "instructions" → the canonical theme-editing guide (workflow, onboarding script, anti-patterns). Returns markdown, not JSON; cache it for the session. - "describe" → the token schema, the caller's active theme, every saved theme, and their recent Inspect-mode clicks. - "fork" → copy a theme (or a builtin) into a new editable one and activate it for the caller. - "preview_variables" → push an ephemeral preview to the caller's open tabs; nothing is saved. Applies your map verbatim, and warns (response `warning` + `roles[]`) about any key the current role dictionary does not declare — such a key paints nothing. - "set_variables" → merge variables into a saved theme and persist them. Refuses the WHOLE patch with `unknown_theme_role` (+ `roles[]`, with the successor of each retired name) if any key is not a current role: nothing is written, because a dead key in a saved row paints nothing and gets silently deleted by the frontend's next migration write-back. - "inspect_clear" → drop the caller's accumulated Inspect-mode selections.
sourceNoWhat to fork: "active" (the caller's current theme, falling back to their builtin), "builtin-light", "builtin-dark", or a theme UUID from describe. Required for fork.
themeIdNoUUID of the theme to write to, as returned by fork or describe. Required for set_variables.
variablesNoPartial map of CSS variable name → value. Supplied keys overwrite, absent keys are preserved (unlike the REST PATCH, which replaces the whole map). Required for set_variables and preview_variables. Every key must be a role of the CURRENT dictionary (action="describe", or the summary in action="instructions"): the pre-redesign names have no alias layer and resolve to nothing. set_variables refuses such a patch outright (`unknown_theme_role`); preview_variables applies it as sent and warns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations: it declares that builtin-light/dark cannot be edited, that fork activates the copy for the caller, and that instructions returns markdown rather than JSON. The destructive flavour of annotations is partially explained by naming inspect_clear's accumulating state, but it never says whether a fork or set_variables can be undone or what permissions the caller needs, leaving some mutation risk undisclosed.

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?

Front-loaded with what the tool is, then the mandated first action, then the constraint that forces fork — a sensible order for an agent scanning quickly. The clause about improvising being "the documented way to get this wrong" is persuasive padding that could be trimmed without losing information.

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 six-action tool with a nested variables object and no output schema, the description covers the high-risk paths: ephemeral preview versus persisted merge, and the destructive accumulation reset. Return shapes for describe and fork are inferred rather than stated, and no confirmation or reversibility story is given, so it stops just short of fully self-sufficient.

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 the schema already carries per-parameter meaning; the description's contribution is the sequencing dependency (fork produces the themeId that set_variables requires) and the rule that built-ins are valid fork sources. That is genuine added semantics beyond field-level text, though the variable-key validity rules are largely restated from the schema.

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 the resource precisely ("the caller's visual theme") and scopes it with concrete contents (colours, fonts, sizes, spacing). It also explicitly separates read-only actions (instructions, describe) from the mutating path, so an agent knows exactly what kind of tool this is before opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives an explicit ordering rule: call action="instructions" FIRST for any visual-change request, with named example phrasings, and states that editing always starts with action="fork" because built-ins are read-only. The consequence of skipping the guide ("the documented way to get this wrong") makes the recommendation actionable rather than advisory.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.