naftiko: 1.0.0-alpha2 info: label: Cohere Models API — Models description: 'Cohere Models API — Models. 2 operations. Lead operation: List available models. Self-contained Naftiko capability covering one Cohere business surface.' tags: - Cohere - Models created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: COHERE_API_KEY: COHERE_API_KEY capability: consumes: - type: http namespace: models-models baseUri: https://api.cohere.com description: Cohere Models API — Models business capability. Self-contained, no shared references. resources: - name: v1-models path: /v1/models operations: - name: listmodels method: GET description: List available models outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: page_size in: query type: integer description: Maximum number of models to include in a page. Defaults to 20. - name: page_token in: query type: string description: Page token provided in the next_page_token field of a previous response for pagination. - name: endpoint in: query type: string description: When provided, filters the list of models to only those compatible with the specified endpoint. - name: default_only in: query type: boolean description: When true, filters the list of models to only the default model for the specified endpoint. - name: v1-models-model path: /v1/models/{model} operations: - name: getmodel method: GET description: Get model details outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.COHERE_API_KEY}}' exposes: - type: rest namespace: models-models-rest port: 8080 description: REST adapter for Cohere Models API — Models. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/models name: v1-models description: REST surface for v1-models. operations: - method: GET name: listmodels description: List available models call: models-models.listmodels with: page_size: rest.page_size page_token: rest.page_token endpoint: rest.endpoint default_only: rest.default_only outputParameters: - type: object mapping: $. - path: /v1/v1/models/{model} name: v1-models-model description: REST surface for v1-models-model. operations: - method: GET name: getmodel description: Get model details call: models-models.getmodel outputParameters: - type: object mapping: $. - type: mcp namespace: models-models-mcp port: 9090 transport: http description: MCP adapter for Cohere Models API — Models. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-available-models description: List available models hints: readOnly: true destructive: false idempotent: true call: models-models.listmodels with: page_size: tools.page_size page_token: tools.page_token endpoint: tools.endpoint default_only: tools.default_only outputParameters: - type: object mapping: $. - name: get-model-details description: Get model details hints: readOnly: true destructive: false idempotent: true call: models-models.getmodel outputParameters: - type: object mapping: $.