naftiko: 1.0.0-alpha2 info: label: Freepik / Magnific API — Tasks description: 'Freepik / Magnific API — Tasks. 1 operations. Lead operation: Poll task status. Self-contained Naftiko capability covering one Freepik business surface.' tags: - Freepik - Tasks created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FREEPIK_API_KEY: FREEPIK_API_KEY capability: consumes: - type: http namespace: freepik-tasks baseUri: https://api.magnific.com description: Freepik / Magnific API — Tasks business capability. Self-contained, no shared references. resources: - name: v1-ai-endpoint-taskId path: /v1/ai/{endpoint}/{taskId} operations: - name: gettask method: GET description: Poll task status outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: endpoint in: path type: string required: true - name: taskId in: path type: string required: true authentication: type: apikey key: x-magnific-api-key value: '{{env.FREEPIK_API_KEY}}' placement: header exposes: - type: rest namespace: freepik-tasks-rest port: 8080 description: REST adapter for Freepik / Magnific API — Tasks. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/ai/{endpoint}/{taskid} name: v1-ai-endpoint-taskid description: REST surface for v1-ai-endpoint-taskId. operations: - method: GET name: gettask description: Poll task status call: freepik-tasks.gettask with: endpoint: rest.endpoint taskId: rest.taskId outputParameters: - type: object mapping: $. - type: mcp namespace: freepik-tasks-mcp port: 9090 transport: http description: MCP adapter for Freepik / Magnific API — Tasks. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: poll-task-status description: Poll task status hints: readOnly: true destructive: false idempotent: true call: freepik-tasks.gettask with: endpoint: tools.endpoint taskId: tools.taskId outputParameters: - type: object mapping: $.