Skip to main content
Glama
DynamicEndpoints

Palo Alto Device Server

upgrade_firewall

Upgrade Palo Alto firewall PAN-OS to maintain security compliance and access new features by applying the latest software version.

Instructions

Upgrade the Palo Alto firewall to the latest PAN-OS version

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'upgrade_firewall' tool: performs a POST request to /Device/Upgrade on the Palo Alto firewall API and returns the JSON response.
    case 'upgrade_firewall': {
        try {
            const response = await axios.post(
                `${API_BASE_URL}/Device/Upgrade`,
                {},
                {
                    headers: {
                        'X-PAN-KEY': API_KEY,
                        'Accept': 'application/json'
                    }
                }
            );
    
            return {
                content: [
                    {
                        type: 'text',
                        text: JSON.stringify(response.data, null, 2),
                    },
                ],
            };
        } catch (error) {
            const axiosError = error as AxiosError;
            throw new McpError(
                ErrorCode.InternalError,
                `Palo Alto API error: ${axiosError.message}`
            );
        }
    }
  • Input schema definition for 'upgrade_firewall' tool (no input parameters required).
    inputSchema: {
        type: 'object',
        properties: {},
    },
  • src/index.ts:42-49 (registration)
    Registration of the 'upgrade_firewall' tool in the ListToolsRequestHandler response.
    {
        name: 'upgrade_firewall',
        description: 'Upgrade the Palo Alto firewall to the latest PAN-OS version',
        inputSchema: {
            type: 'object',
            properties: {},
        },
    },

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/DynamicEndpoints/paloalto-device-server'

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