Apache OpenNLP · Capability

Apache OpenNLP Tools API — Models

Apache OpenNLP Tools API — Models. 2 operations. Lead operation: Apache OpenNLP List Available Models. Self-contained Naftiko capability covering one Apache Opennlp business surface.

Run with Naftiko Apache OpennlpModels

What You Can Do

GET
Listmodels — Apache OpenNLP List Available Models
/v1/models
GET
Getmodel — Apache OpenNLP Get Model
/v1/models/{modelid}

MCP Tools

apache-opennlp-list-available-models

Apache OpenNLP List Available Models

read-only idempotent
apache-opennlp-get-model

Apache OpenNLP Get Model

read-only idempotent

Capability Spec

tools-models.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache OpenNLP Tools API — Models
  description: 'Apache OpenNLP Tools API — Models. 2 operations. Lead operation: Apache OpenNLP List Available Models. Self-contained
    Naftiko capability covering one Apache Opennlp business surface.'
  tags:
  - Apache Opennlp
  - Models
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_OPENNLP_API_KEY: APACHE_OPENNLP_API_KEY
capability:
  consumes:
  - type: http
    namespace: tools-models
    baseUri: https://{host}/opennlp
    description: Apache OpenNLP Tools API — Models business capability. Self-contained, no shared references.
    resources:
    - name: models
      path: /models
      operations:
      - name: listmodels
        method: GET
        description: Apache OpenNLP List Available Models
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: models-modelId
      path: /models/{modelId}
      operations:
      - name: getmodel
        method: GET
        description: Apache OpenNLP Get Model
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: modelId
          in: path
          type: string
          description: Unique model identifier
          required: true
  exposes:
  - type: rest
    namespace: tools-models-rest
    port: 8080
    description: REST adapter for Apache OpenNLP Tools API — Models. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/models
      name: models
      description: REST surface for models.
      operations:
      - method: GET
        name: listmodels
        description: Apache OpenNLP List Available Models
        call: tools-models.listmodels
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/models/{modelid}
      name: models-modelid
      description: REST surface for models-modelId.
      operations:
      - method: GET
        name: getmodel
        description: Apache OpenNLP Get Model
        call: tools-models.getmodel
        with:
          modelId: rest.modelId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tools-models-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache OpenNLP Tools API — Models. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apache-opennlp-list-available-models
      description: Apache OpenNLP List Available Models
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tools-models.listmodels
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-opennlp-get-model
      description: Apache OpenNLP Get Model
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: tools-models.getmodel
      with:
        modelId: tools.modelId
      outputParameters:
      - type: object
        mapping: $.