check_install_content_updates
Automatically check for and install content updates on Palo Alto firewalls to maintain security and functionality.
Instructions
Automatically Check for and Install Content Updates
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_install_content_updates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:179-207 (handler)Handler function for 'check_install_content_updates' tool. Performs a POST request to the Palo Alto API endpoint '/Device/ContentUpdates' to check for and install content updates, then returns the JSON response as text content.
case 'check_install_content_updates': { try { const response = await axios.post( `${API_BASE_URL}/Device/ContentUpdates`, {}, { 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:58-65 (registration)Tool registration in the ListTools response, defining the tool name, description, and empty input schema.
{ name: 'check_install_content_updates', description: 'Automatically Check for and Install Content Updates', inputSchema: { type: 'object', properties: {}, }, }, - src/index.ts:61-64 (schema)Input schema for the 'check_install_content_updates' tool, which requires no parameters.
inputSchema: { type: 'object', properties: {}, },