upgrade_firewall
Upgrade Palo Alto firewall PAN-OS version to maintain security compliance and access new features through automated system updates.
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 that performs a POST request to /Device/Upgrade endpoint to upgrade the firewall.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:42-49 (registration)Registration of the 'upgrade_firewall' tool in the list of tools returned by ListToolsRequest, including its schema.{ name: 'upgrade_firewall', description: 'Upgrade the Palo Alto firewall to the latest PAN-OS version', inputSchema: { type: 'object', properties: {}, }, },