Skip to main content
Glama

Update Theme

wp_update_theme
Idempotent

Safely update a WordPress theme to its latest version. Runs in background with automatic fallbacks. Use the Command Center (swiftly_command_center) to see which themes have updates available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesTheme slug to update (e.g. "twentytwentyfour", "astra"). Use the slug from the updates list.
site_idNoSite ID to target (optional if you have only one connected site)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a non-destructive, idempotent write, so the safety profile is covered. The description adds genuine behavioral context beyond that: 'Runs in background with automatic fallbacks,' which tells the agent the operation is asynchronous and self-recovering. It does not detail what the fallbacks do or whether approval is needed.

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?

Two compact sentences, front-loaded with the core action and followed by the companion-tool pointer. No filler and nothing redundant.

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 two-parameter mutation tool with full schema coverage and no output schema, the definition supplies the key missing context (background execution, fallbacks, where to find eligible themes). It is essentially complete, though a note on approval or failure behavior would seal it.

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?

Schema coverage is 100%, and the schema descriptions already explain both the slug (with examples and the 'use the slug from the updates list' guidance) and site_id. The description adds no parameter meaning beyond the schema, so the baseline of 3 applies.

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 and resource ('update a WordPress theme to its latest version'), which is clear and unambiguous. It does not, however, explicitly distinguish itself from adjacent siblings like wp_install_theme or wp_activate_theme, which an agent might otherwise confuse with updating.

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?

Explicitly routes the agent to swiftly_command_center to discover which themes have updates available, giving concrete pre-call context. It stops short of naming when NOT to use this tool (e.g., for installs or activations), so it lacks full exclusions.

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.

Resources