Skip to main content
Glama
PCWProps

Pressable MCP Server

by PCWProps

pressable_toggle_edge_cache

Enable or disable edge caching to control content delivery speed for a WordPress site.

Instructions

Enable or disable edge caching for a site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
enabledYes

Implementation Reference

  • Handler for pressable_toggle_edge_cache which enables or disables edge caching via API.
    handler: async (args) => {
        const method = args.enabled ? 'enable' : 'disable';
        return await api.post(`/sites/${args.id}/edge-cache/${method}`);
    }
  • tools/cache.js:29-43 (registration)
    Registration and definition of the pressable_toggle_edge_cache tool.
        name: 'pressable_toggle_edge_cache',
        description: 'Enable or disable edge caching for a site.',
        inputSchema: {
            type: 'object',
            properties: {
                id: { type: 'string' },
                enabled: { type: 'boolean' }
            },
            required: ['id', 'enabled']
        },
        handler: async (args) => {
            const method = args.enabled ? 'enable' : 'disable';
            return await api.post(`/sites/${args.id}/edge-cache/${method}`);
        }
    },
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