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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:121-149 (handler)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}` ); } }
- src/index.ts:45-48 (schema)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: {}, }, },