Skip to main content
Glama
PCWProps

Pressable MCP Server

by PCWProps

pressable_toggle_maintenance_mode

Activate or deactivate maintenance mode for a WordPress site to temporarily restrict access during updates or maintenance.

Instructions

Toggle maintenance mode for a site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
enabledYes

Implementation Reference

  • The handler function for the pressable_toggle_maintenance_mode tool which makes a POST request to toggle maintenance mode.
    handler: async (args) => {
        return await api.post(`/sites/${args.id}/maintenance-mode`, { enabled: args.enabled });
    }
  • The input schema for the pressable_toggle_maintenance_mode tool defining the expected 'id' and 'enabled' arguments.
    inputSchema: {
        type: 'object',
        properties: {
            id: { type: 'string' },
            enabled: { type: 'boolean' }
        },
        required: ['id', 'enabled']
    },
  • tools/sites.js:122-135 (registration)
    The full tool definition and registration for pressable_toggle_maintenance_mode in tools/sites.js.
        name: 'pressable_toggle_maintenance_mode',
        description: 'Toggle maintenance mode for a site.',
        inputSchema: {
            type: 'object',
            properties: {
                id: { type: 'string' },
                enabled: { type: 'boolean' }
            },
            required: ['id', 'enabled']
        },
        handler: async (args) => {
            return await api.post(`/sites/${args.id}/maintenance-mode`, { enabled: args.enabled });
        }
    },
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/PCWProps/pressable-mcp-server'

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