Apache POI · Capability

Apache POI API — Word

Apache POI API — Word. 2 operations. Lead operation: Apache POI Create Document. Self-contained Naftiko capability covering one Apache Poi business surface.

Run with Naftiko Apache PoiWord

What You Can Do

POST
Createdocument — Apache POI Create Document
/v1/documents
GET
Getdocument — Apache POI Get Document
/v1/documents/{documentid}

MCP Tools

apache-poi-create-document

Apache POI Create Document

apache-poi-get-document

Apache POI Get Document

read-only idempotent

Capability Spec

apache-poi-word.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache POI API — Word
  description: 'Apache POI API — Word. 2 operations. Lead operation: Apache POI Create Document. Self-contained Naftiko capability
    covering one Apache Poi business surface.'
  tags:
  - Apache Poi
  - Word
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_POI_API_KEY: APACHE_POI_API_KEY
capability:
  consumes:
  - type: http
    namespace: apache-poi-word
    baseUri: https://poi.example.com/api/v1
    description: Apache POI API — Word business capability. Self-contained, no shared references.
    resources:
    - name: documents
      path: /documents
      operations:
      - name: createdocument
        method: POST
        description: Apache POI Create Document
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: documents-documentId
      path: /documents/{documentId}
      operations:
      - name: getdocument
        method: GET
        description: Apache POI Get Document
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: documentId
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: apache-poi-word-rest
    port: 8080
    description: REST adapter for Apache POI API — Word. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/documents
      name: documents
      description: REST surface for documents.
      operations:
      - method: POST
        name: createdocument
        description: Apache POI Create Document
        call: apache-poi-word.createdocument
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/documents/{documentid}
      name: documents-documentid
      description: REST surface for documents-documentId.
      operations:
      - method: GET
        name: getdocument
        description: Apache POI Get Document
        call: apache-poi-word.getdocument
        with:
          documentId: rest.documentId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: apache-poi-word-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache POI API — Word. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: apache-poi-create-document
      description: Apache POI Create Document
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: apache-poi-word.createdocument
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-poi-get-document
      description: Apache POI Get Document
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apache-poi-word.getdocument
      with:
        documentId: tools.documentId
      outputParameters:
      - type: object
        mapping: $.