Apache OpenNLP · Capability

Apache OpenNLP Tools API — Sentence Detection

Apache OpenNLP Tools API — Sentence Detection. 1 operations. Lead operation: Apache OpenNLP Detect Sentences. Self-contained Naftiko capability covering one Apache Opennlp business surface.

Run with Naftiko Apache OpennlpSentence Detection

What You Can Do

POST
Detectsentences — Apache OpenNLP Detect Sentences
/v1/detect/sentences

MCP Tools

apache-opennlp-detect-sentences

Apache OpenNLP Detect Sentences

Capability Spec

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