Skip to main content
Glama

restyle_theme

Edit a Ghost blog theme's CSS by downloading, rewriting the stylesheet, and re-uploading it. Append new rules or replace the entire stylesheet to update the live look of an active theme.

Instructions

Restyle an installed theme by editing its stylesheet, then re-upload it.

Iterate a theme already on the blog without regenerating it: this downloads the named theme, rewrites its assets/built/screen.css -- appending new rules by default, or mode="replace" to swap the whole stylesheet -- and re-uploads it. The upload itself does NOT activate a theme. But if name is the ACTIVE theme, the new CSS is what visitors see, so this changes the live look; confirm that's intended. Ghost re-validates on upload, so any errors/warnings are returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cssYesCSS to append (default) or to replace the stylesheet with.
modeNo``"append"`` (safe default) or ``"replace"``.append
nameYesThe installed theme to restyle (see ``list_themes``).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

No annotations provided, but the description fully covers behavioral traits: it downloads, appends or replaces CSS, re-uploads, does not activate, and if the theme is active, CSS changes take effect immediately. It also mentions re-validation and error/warning returns.

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?

The description is front-loaded with the core action and then provides necessary details. It is slightly longer than minimal but every sentence serves a purpose, with no fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the siblings and no output schema description, this description is thorough: it covers the file, modes, side effects, and validation. It fully equips the agent to use the tool correctly.

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%, but the description adds value by explaining default append vs replace, the file path, and that 'name' is available via list_themes. It clarifies behavior beyond 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 clearly states it restyles an installed theme by editing its stylesheet and re-uploading it. It distinguishes from siblings like create_theme, upload_theme, and download_theme by specifying 'iterate a theme already on the blog without regenerating it'.

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?

The description gives clear context for when to use this tool (to modify CSS of an installed theme) and warns about live changes if the theme is active. However, it does not explicitly name alternatives or state when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stemcreations/ghost-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server