naftiko: 1.0.0-alpha2 info: label: Ollama API — Models description: 'Ollama API — Models. 7 operations. Lead operation: Ollama Copy a model. Self-contained Naftiko capability covering one Ollama business surface.' tags: - Ollama - Models created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OLLAMA_API_KEY: OLLAMA_API_KEY capability: consumes: - type: http namespace: ollama-models baseUri: http://localhost:11434 description: Ollama API — Models business capability. Self-contained, no shared references. resources: - name: api-copy path: /api/copy operations: - name: copymodel method: POST description: Ollama Copy a model outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-create path: /api/create operations: - name: createmodel method: POST description: Ollama Create a model outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-delete path: /api/delete operations: - name: deletemodel method: DELETE description: Ollama Delete a model outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-pull path: /api/pull operations: - name: pullmodel method: POST description: Ollama Pull a model outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-push path: /api/push operations: - name: pushmodel method: POST description: Ollama Push a model outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-show path: /api/show operations: - name: showmodelinfo method: POST description: Ollama Show model information outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: api-tags path: /api/tags operations: - name: listmodels method: GET description: Ollama List local models outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: ollama-models-rest port: 8080 description: REST adapter for Ollama API — Models. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/copy name: api-copy description: REST surface for api-copy. operations: - method: POST name: copymodel description: Ollama Copy a model call: ollama-models.copymodel with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/create name: api-create description: REST surface for api-create. operations: - method: POST name: createmodel description: Ollama Create a model call: ollama-models.createmodel with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/delete name: api-delete description: REST surface for api-delete. operations: - method: DELETE name: deletemodel description: Ollama Delete a model call: ollama-models.deletemodel with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/pull name: api-pull description: REST surface for api-pull. operations: - method: POST name: pullmodel description: Ollama Pull a model call: ollama-models.pullmodel with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/push name: api-push description: REST surface for api-push. operations: - method: POST name: pushmodel description: Ollama Push a model call: ollama-models.pushmodel with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/show name: api-show description: REST surface for api-show. operations: - method: POST name: showmodelinfo description: Ollama Show model information call: ollama-models.showmodelinfo with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/tags name: api-tags description: REST surface for api-tags. operations: - method: GET name: listmodels description: Ollama List local models call: ollama-models.listmodels outputParameters: - type: object mapping: $. - type: mcp namespace: ollama-models-mcp port: 9090 transport: http description: MCP adapter for Ollama API — Models. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: ollama-copy-model description: Ollama Copy a model hints: readOnly: false destructive: false idempotent: false call: ollama-models.copymodel with: body: tools.body outputParameters: - type: object mapping: $. - name: ollama-create-model description: Ollama Create a model hints: readOnly: false destructive: false idempotent: false call: ollama-models.createmodel with: body: tools.body outputParameters: - type: object mapping: $. - name: ollama-delete-model description: Ollama Delete a model hints: readOnly: false destructive: true idempotent: true call: ollama-models.deletemodel with: body: tools.body outputParameters: - type: object mapping: $. - name: ollama-pull-model description: Ollama Pull a model hints: readOnly: false destructive: false idempotent: false call: ollama-models.pullmodel with: body: tools.body outputParameters: - type: object mapping: $. - name: ollama-push-model description: Ollama Push a model hints: readOnly: false destructive: false idempotent: false call: ollama-models.pushmodel with: body: tools.body outputParameters: - type: object mapping: $. - name: ollama-show-model-information description: Ollama Show model information hints: readOnly: false destructive: false idempotent: false call: ollama-models.showmodelinfo with: body: tools.body outputParameters: - type: object mapping: $. - name: ollama-list-local-models description: Ollama List local models hints: readOnly: true destructive: false idempotent: true call: ollama-models.listmodels outputParameters: - type: object mapping: $.