generate_app_import
Generate a JSON import file for Magic Ports by resolving port mappings between user-defined servers. Outputs a file ready for import.
Instructions
Generate a JSON file for importing into the Magic Ports frontend app.
Resolves the port mapping topology between user-defined servers using the enriched knowledge graph on the API server. The full JSON is written to a file on disk and a compact summary is returned.
Workflow:
Call list_services to see available service roles for the product.
Ask the user which servers they have and what roles they serve.
Call this tool with the server definitions.
Present the generated file to the user for download/import.
Args: product_name: Exact product name (e.g. 'VBR v13', 'VB365') servers_json: JSON array of server definitions. Each object must have 'name' (server label) and 'services' (list of service names this server provides). Example: [ {"name": "VBR", "services": ["Backup server"]}, {"name": "Proxy", "services": ["Backup proxy"]}, {"name": "Repo", "services": ["Backup repository"]}, {"name": "ESXi", "services": ["ESXi host", "vCenter Server"]} ] output_dir: Optional directory to write the file to. Defaults to ~/Documents/veeam-ports-exports or VEEAM_PORTS_OUTPUT_DIR env var. exclude_subsections: Subsection names to exclude from results (e.g. ["CDP Components"]). Accepts a list or JSON string. exclude_ports: Port numbers to exclude from results (e.g. ["33035"]). Accepts a list or JSON string. format: Output format — 'json' (default), 'csv', or 'markdown'. csv and markdown return the raw content as text (no file written).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_name | Yes | ||
| servers_json | Yes | ||
| output_dir | No | ||
| exclude_subsections | No | ||
| exclude_ports | No | ||
| format | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |