Apache OpenNLP · Capability

Apache OpenNLP Tools API — Document Categorization

Apache OpenNLP Tools API — Document Categorization. 1 operations. Lead operation: Apache OpenNLP Categorize Document. Self-contained Naftiko capability covering one Apache Opennlp business surface.

Run with Naftiko Apache OpennlpDocument Categorization

What You Can Do

POST
Categorizedocument — Apache OpenNLP Categorize Document
/v1/categorize

MCP Tools

apache-opennlp-categorize-document

Apache OpenNLP Categorize Document

Capability Spec

tools-document-categorization.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache OpenNLP Tools API — Document Categorization
  description: 'Apache OpenNLP Tools API — Document Categorization. 1 operations. Lead operation: Apache OpenNLP Categorize
    Document. Self-contained Naftiko capability covering one Apache Opennlp business surface.'
  tags:
  - Apache Opennlp
  - Document Categorization
  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-document-categorization
    baseUri: https://{host}/opennlp
    description: Apache OpenNLP Tools API — Document Categorization business capability. Self-contained, no shared references.
    resources:
    - name: categorize
      path: /categorize
      operations:
      - name: categorizedocument
        method: POST
        description: Apache OpenNLP Categorize Document
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: tools-document-categorization-rest
    port: 8080
    description: REST adapter for Apache OpenNLP Tools API — Document Categorization. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/categorize
      name: categorize
      description: REST surface for categorize.
      operations:
      - method: POST
        name: categorizedocument
        description: Apache OpenNLP Categorize Document
        call: tools-document-categorization.categorizedocument
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tools-document-categorization-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache OpenNLP Tools API — Document Categorization. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: apache-opennlp-categorize-document
      description: Apache OpenNLP Categorize Document
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tools-document-categorization.categorizedocument
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.