Set Jetpack module status is a WordPress ability from Jetpack — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Set Jetpack module status
WriteActivate or deactivate a single Jetpack module by slug.
Requires the Jetpack plugin on WordPress 6.9+. Abilities are registered by several bundled Jetpack packages (automattic/jetpack-backup, jetpack-connection, jetpack-forms, jetpack-stats) plus the main plugin's own registrars for Related Posts, Shortlinks, Sitemaps, Newsletter/Subscriptions, and Monitor. Permission requirements vary by ability — most gate on 'manage_options', 'jetpack_admin_page', or 'view_stats', while Forms abilities use 'edit_pages'. Backup abilities only register when a Backup product/plan is active; Sitemaps, Monitor, and Newsletter abilities only register when their respective module is turned on.
What it does
This ability sets a Jetpack module's active state given its slug and a desired boolean, returning the resulting slug, active state, and a changed flag. It is idempotent: setting a module to its current state returns changed=false. Before writing, it refuses activation with jetpack_modules_conflicting_plugin_active if a conflicting standalone plugin is already active, and it calls Jetpack's activate/deactivate routines with redirects disabled so the REST request isn't killed by an internal redirect. After writing it re-verifies the actual state and returns jetpack_modules_state_mismatch if a filter blocked the change. Call jetpack/get-modules first to confirm the exact slug.
See it in action
You ask your AI assistant
"Activate the Jetpack Stats module on my site."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| slug | string | Yes | The Jetpack module slug to toggle (e.g. "stats", "sso", "sharedaddy"). |
| active | boolean | Yes | Desired active state: true activates the module, false deactivates it. |
Returns
An object with slug, the resulting active state, and a changed boolean. Possible errors include jetpack_modules_missing_slug, jetpack_modules_invalid_slug, jetpack_modules_activate_failed, jetpack_modules_deactivate_failed, jetpack_modules_state_mismatch, and jetpack_modules_conflicting_plugin_active.
Permission
The current user must have both the 'jetpack_manage_modules' and 'jetpack_activate_modules' capabilities.
More Jetpack abilities
Bulk update form responses
Mark multiple Jetpack Forms responses as spam or restore them from spam in a single call.
Create a form
Create a new Jetpack Forms form with a title and optional block content.
Delete a form
Move a Jetpack Forms form to the trash.
Get backup overview
Return a one-call snapshot of the site's backup state: last backup, recent count, schedule, and storage usage.
Get follower counts
Return a breakdown of follower counts across email, WordPress.com, comments, and Publicize.
Get form details
Get a single form's full structure, including its field definitions, status, and edit URL.