naftiko: 1.0.0-alpha2 info: label: Veeva Vault API — MDL description: 'Veeva Vault API — MDL. 2 operations. Lead operation: Execute an MDL script synchronously. Self-contained Naftiko capability covering one Veeva Systems business surface.' tags: - Veeva Systems - MDL created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: VEEVA_SYSTEMS_API_KEY: VEEVA_SYSTEMS_API_KEY capability: consumes: - type: http namespace: veeva-systems-mdl baseUri: https://{vaultDNS}/api/{version} description: Veeva Vault API — MDL business capability. Self-contained, no shared references. resources: - name: mdl-execute path: /mdl/execute operations: - name: post method: POST description: Execute an MDL script synchronously outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: mdl-execute_async path: /mdl/execute_async operations: - name: post method: POST description: Execute an MDL script asynchronously for large operations 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: Authorization value: '{{env.VEEVA_SYSTEMS_API_KEY}}' placement: header exposes: - type: rest namespace: veeva-systems-mdl-rest port: 8080 description: REST adapter for Veeva Vault API — MDL. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/mdl/execute name: mdl-execute description: REST surface for mdl-execute. operations: - method: POST name: post description: Execute an MDL script synchronously call: veeva-systems-mdl.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/mdl/execute-async name: mdl-execute-async description: REST surface for mdl-execute_async. operations: - method: POST name: post description: Execute an MDL script asynchronously for large operations call: veeva-systems-mdl.post with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: veeva-systems-mdl-mcp port: 9090 transport: http description: MCP adapter for Veeva Vault API — MDL. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: execute-mdl-script-synchronously description: Execute an MDL script synchronously hints: readOnly: false destructive: false idempotent: false call: veeva-systems-mdl.post with: body: tools.body outputParameters: - type: object mapping: $. - name: execute-mdl-script-asynchronously-large description: Execute an MDL script asynchronously for large operations hints: readOnly: false destructive: false idempotent: false call: veeva-systems-mdl.post with: body: tools.body outputParameters: - type: object mapping: $.