naftiko: 1.0.0-alpha2 info: label: GroqCloud API — Chat description: 'GroqCloud API — Chat. 1 operations. Lead operation: Creates a model response for the given chat conversation.. Self-contained Naftiko capability covering one Groq business surface.' tags: - Groq - Chat created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GROQ_API_KEY: GROQ_API_KEY capability: consumes: - type: http namespace: groq-chat baseUri: https://api.groq.com description: GroqCloud API — Chat business capability. Self-contained, no shared references. resources: - name: openai-v1-chat-completions path: /openai/v1/chat/completions operations: - name: createchatcompletion method: POST description: Creates a model response for the given chat conversation. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.GROQ_API_KEY}}' exposes: - type: rest namespace: groq-chat-rest port: 8080 description: REST adapter for GroqCloud API — Chat. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/openai/v1/chat/completions name: openai-v1-chat-completions description: REST surface for openai-v1-chat-completions. operations: - method: POST name: createchatcompletion description: Creates a model response for the given chat conversation. call: groq-chat.createchatcompletion with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: groq-chat-mcp port: 9090 transport: http description: MCP adapter for GroqCloud API — Chat. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: creates-model-response-given-chat description: Creates a model response for the given chat conversation. hints: readOnly: false destructive: false idempotent: false call: groq-chat.createchatcompletion with: body: tools.body outputParameters: - type: object mapping: $.