Skip to main content
Glama
packetracer

Palo Alto Networks MCP Server Suite

by packetracer

multi_move_clone_configuration

Move or clone multiple firewall configurations to new locations in Palo Alto Networks environments to streamline configuration management.

Instructions

Multi-Move or Multi-Clone the configuration of the Palo Alto firewall

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
config_pathsYesPaths to the configurations to move or clone
new_locationYesNew location for the configurations
actionYesAction to perform

Implementation Reference

  • Handler for the 'multi_move_clone_configuration' tool. Extracts arguments (config_paths, new_location, action), determines the API endpoint ('MultiMove' or 'MultiClone'), performs a POST request to the Palo Alto firewall's Configuration endpoint, and returns the response data as text content.
    case 'multi_move_clone_configuration': {
        const { config_paths, new_location, action } = request.params.arguments as { 
            config_paths: string[], 
            new_location: string, 
            action: 'move' | 'clone' 
        };
    
        const endpoint = action === 'move' ? 'MultiMove' : 'MultiClone';
        const response = await this.axiosInstance.post(
            `/Configuration/${endpoint}`,
            { config_paths, new_location }
        );
    
        return {
            content: [
                {
                    type: 'text',
                    text: JSON.stringify(response.data, null, 2),
                },
            ],
        };
    }
  • Input schema defining the parameters for the 'multi_move_clone_configuration' tool: config_paths (array of strings), new_location (string), and action (string enum: 'move' or 'clone').
    inputSchema: {
        type: 'object',
        properties: {
            config_paths: {
                type: 'array',
                items: {
                    type: 'string'
                },
                description: 'Paths to the configurations to move or clone'
            },
            new_location: {
                type: 'string',
                description: 'New location for the configurations'
            },
            action: {
                type: 'string',
                enum: ['move', 'clone'],
                description: 'Action to perform'
            }
        },
        required: ['config_paths', 'new_location', 'action']
    }
  • src/index.ts:173-198 (registration)
    Registration of the 'multi_move_clone_configuration' tool in the MCP server's list of tools, specifying its name, description, and input schema.
    {
        name: 'multi_move_clone_configuration',
        description: 'Multi-Move or Multi-Clone the configuration of the Palo Alto firewall',
        inputSchema: {
            type: 'object',
            properties: {
                config_paths: {
                    type: 'array',
                    items: {
                        type: 'string'
                    },
                    description: 'Paths to the configurations to move or clone'
                },
                new_location: {
                    type: 'string',
                    description: 'New location for the configurations'
                },
                action: {
                    type: 'string',
                    enum: ['move', 'clone'],
                    description: 'Action to perform'
                }
            },
            required: ['config_paths', 'new_location', 'action']
        }
    }

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/packetracer/mcpserver'

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