Skip to main content
Glama
PCWProps

Pressable MCP Server

by PCWProps

pressable_restore_site

Restore a WordPress site from backup by specifying site ID, filesystem, and database options. Use this tool to recover site data and configurations when needed.

Instructions

Restore a site from a backup.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSite ID to restore
filesystem_idNo
database_idNo
restore_on_site_idNoOptional ID of site to restore onto

Implementation Reference

  • The handler function that executes the restore operation by making a POST request to the Pressable API.
    handler: async (args) => {
        const { id, ...restoreData } = args;
        return await api.post(`/sites/${id}/restores`, restoreData);
    }
  • The JSON schema defining the required and optional inputs for the pressable_restore_site tool.
    inputSchema: {
        type: 'object',
        properties: {
            id: { type: 'string', description: 'Site ID to restore' },
            filesystem_id: { type: 'integer' },
            database_id: { type: 'integer' },
            restore_on_site_id: { type: 'integer', description: 'Optional ID of site to restore onto' }
        },
        required: ['id']
    },
  • tools/backups.js:32-48 (registration)
    The complete tool definition object for pressable_restore_site, including name, description, schema, and handler.
        name: 'pressable_restore_site',
        description: 'Restore a site from a backup.',
        inputSchema: {
            type: 'object',
            properties: {
                id: { type: 'string', description: 'Site ID to restore' },
                filesystem_id: { type: 'integer' },
                database_id: { type: 'integer' },
                restore_on_site_id: { type: 'integer', description: 'Optional ID of site to restore onto' }
            },
            required: ['id']
        },
        handler: async (args) => {
            const { id, ...restoreData } = args;
            return await api.post(`/sites/${id}/restores`, restoreData);
        }
    },
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