Ollama · Capability

Ollama API — Version

Ollama API — Version. 1 operations. Lead operation: Get Ollama version. Self-contained Naftiko capability covering one Ollama business surface.

Run with Naftiko OllamaVersion

What You Can Do

GET
Getversion — Get Ollama version
/v1/api/version

MCP Tools

get-ollama-version

Get Ollama version

read-only idempotent

Capability Spec

ollama-version.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Ollama API — Version
  description: 'Ollama API — Version. 1 operations. Lead operation: Get Ollama version. Self-contained Naftiko capability
    covering one Ollama business surface.'
  tags:
  - Ollama
  - Version
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OLLAMA_API_KEY: OLLAMA_API_KEY
capability:
  consumes:
  - type: http
    namespace: ollama-version
    baseUri: http://localhost:11434
    description: Ollama API — Version business capability. Self-contained, no shared references.
    resources:
    - name: api-version
      path: /api/version
      operations:
      - name: getversion
        method: GET
        description: Get Ollama version
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: ollama-version-rest
    port: 8080
    description: REST adapter for Ollama API — Version. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/version
      name: api-version
      description: REST surface for api-version.
      operations:
      - method: GET
        name: getversion
        description: Get Ollama version
        call: ollama-version.getversion
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ollama-version-mcp
    port: 9090
    transport: http
    description: MCP adapter for Ollama API — Version. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-ollama-version
      description: Get Ollama version
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: ollama-version.getversion
      outputParameters:
      - type: object
        mapping: $.