get_system_info
Retrieve system information from Palo Alto firewalls to monitor device status and configuration details for network security management.
Instructions
Get system information from the Palo Alto firewall
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:93-120 (handler)The handler logic for the 'get_system_info' tool. It makes an axios GET request to the Palo Alto API endpoint for VirtualSystems and returns the JSON response as text content.
case 'get_system_info': { try { const response = await axios.get( `${API_BASE_URL}/Device/VirtualSystems`, { 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:34-41 (registration)Registration of the 'get_system_info' tool in the ListTools response, including its name, description, and empty input schema.
{ name: 'get_system_info', description: 'Get system information from the Palo Alto firewall', inputSchema: { type: 'object', properties: {}, }, }, - src/index.ts:37-40 (schema)Input schema for the 'get_system_info' tool, which requires no parameters (empty object).
inputSchema: { type: 'object', properties: {}, },