naftiko: 1.0.0-alpha2 info: label: Palo Alto Networks Cortex XDR REST API — Scripts description: 'Palo Alto Networks Cortex XDR REST API — Scripts. 2 operations. Lead operation: Palo Alto Networks Get Script Execution Results. Self-contained Naftiko capability covering one Palo Alto Networks business surface.' tags: - Palo Alto Networks - Scripts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PALO_ALTO_NETWORKS_API_KEY: PALO_ALTO_NETWORKS_API_KEY capability: consumes: - type: http namespace: palo-alto-cortex-xdr-scripts baseUri: https://api-{fqdn}/public_api/v1 description: Palo Alto Networks Cortex XDR REST API — Scripts business capability. Self-contained, no shared references. resources: - name: scripts-get_script_execution_results path: /scripts/get_script_execution_results operations: - name: getscriptexecutionresults method: POST description: Palo Alto Networks Get Script Execution Results outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: scripts-run_script path: /scripts/run_script operations: - name: runscript method: POST description: Palo Alto Networks Execute Script on Endpoints outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: x-xdr-hmac-v2 value: '{{env.PALO_ALTO_NETWORKS_API_KEY}}' placement: header exposes: - type: rest namespace: palo-alto-cortex-xdr-scripts-rest port: 8080 description: REST adapter for Palo Alto Networks Cortex XDR REST API — Scripts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/scripts/get-script-execution-results name: scripts-get-script-execution-results description: REST surface for scripts-get_script_execution_results. operations: - method: POST name: getscriptexecutionresults description: Palo Alto Networks Get Script Execution Results call: palo-alto-cortex-xdr-scripts.getscriptexecutionresults with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/scripts/run-script name: scripts-run-script description: REST surface for scripts-run_script. operations: - method: POST name: runscript description: Palo Alto Networks Execute Script on Endpoints call: palo-alto-cortex-xdr-scripts.runscript with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: palo-alto-cortex-xdr-scripts-mcp port: 9090 transport: http description: MCP adapter for Palo Alto Networks Cortex XDR REST API — Scripts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: palo-alto-networks-get-script description: Palo Alto Networks Get Script Execution Results hints: readOnly: true destructive: false idempotent: false call: palo-alto-cortex-xdr-scripts.getscriptexecutionresults with: body: tools.body outputParameters: - type: object mapping: $. - name: palo-alto-networks-execute-script description: Palo Alto Networks Execute Script on Endpoints hints: readOnly: false destructive: false idempotent: false call: palo-alto-cortex-xdr-scripts.runscript with: body: tools.body outputParameters: - type: object mapping: $.