Apache OpenNLP · Capability

Apache OpenNLP Tools API — Tokenization

Apache OpenNLP Tools API — Tokenization. 1 operations. Lead operation: Apache OpenNLP Tokenize Text. Self-contained Naftiko capability covering one Apache Opennlp business surface.

Run with Naftiko Apache OpennlpTokenization

What You Can Do

POST
Tokenize — Apache OpenNLP Tokenize Text
/v1/tokenize

MCP Tools

apache-opennlp-tokenize-text

Apache OpenNLP Tokenize Text

Capability Spec

tools-tokenization.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache OpenNLP Tools API — Tokenization
  description: 'Apache OpenNLP Tools API — Tokenization. 1 operations. Lead operation: Apache OpenNLP Tokenize Text. Self-contained
    Naftiko capability covering one Apache Opennlp business surface.'
  tags:
  - Apache Opennlp
  - Tokenization
  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-tokenization
    baseUri: https://{host}/opennlp
    description: Apache OpenNLP Tools API — Tokenization business capability. Self-contained, no shared references.
    resources:
    - name: tokenize
      path: /tokenize
      operations:
      - name: tokenize
        method: POST
        description: Apache OpenNLP Tokenize Text
        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-tokenization-rest
    port: 8080
    description: REST adapter for Apache OpenNLP Tools API — Tokenization. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/tokenize
      name: tokenize
      description: REST surface for tokenize.
      operations:
      - method: POST
        name: tokenize
        description: Apache OpenNLP Tokenize Text
        call: tools-tokenization.tokenize
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: tools-tokenization-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache OpenNLP Tools API — Tokenization. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apache-opennlp-tokenize-text
      description: Apache OpenNLP Tokenize Text
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: tools-tokenization.tokenize
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.