Skip to main content
Glama
PCWProps

Pressable MCP Server

by PCWProps

pressable_update_site

Update settings for a WordPress site, including its name and PHP version, through the Pressable API.

Instructions

Update settings for a specific site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameNo
php_versionNo

Implementation Reference

  • The handler function for 'pressable_update_site' tool that performs a PUT request to update the site settings.
    handler: async (args) => {
        const { id, ...data } = args;
        return await api.put(`/sites/${id}`, data);
    }
  • The input schema definition for 'pressable_update_site' tool, defining the required ID and optional parameters like name and PHP version.
    inputSchema: {
        type: 'object',
        properties: {
            id: { type: 'string' },
            name: { type: 'string' },
            php_version: { type: 'string' }
        },
        required: ['id']
    },
  • tools/sites.js:161-176 (registration)
    The full definition and registration of the 'pressable_update_site' tool within the siteTools array.
        name: 'pressable_update_site',
        description: 'Update settings for a specific site.',
        inputSchema: {
            type: 'object',
            properties: {
                id: { type: 'string' },
                name: { type: 'string' },
                php_version: { type: 'string' }
            },
            required: ['id']
        },
        handler: async (args) => {
            const { id, ...data } = args;
            return await api.put(`/sites/${id}`, data);
        }
    },
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