Leaf Agriculture · Capability

Leaf Agriculture Leaf API — API Reference > Machine File Conversion

Leaf Agriculture Leaf API — API Reference > Machine File Conversion. 11 operations. Lead operation: Leaf Agriculture Upload operation file. Self-contained Naftiko capability covering one Leaf Agriculture business surface.

Run with Naftiko Leaf AgricultureAPI Reference > Machine File Conversion

What You Can Do

POST
Post — Leaf Agriculture Upload operation file
/v1/services/operations/api/batch
GET
Get — Leaf Agriculture Get all batches
/v1/services/operations/api/batch
GET
Get — Leaf Agriculture Get batch by id
/v1/services/operations/api/batch/{batch-id}
GET
Get — Leaf Agriculture Get all files
/v1/services/operations/api/files
POST
Post — Leaf Agriculture Merge operation files
/v1/services/operations/api/files/merge
GET
Get — Leaf Agriculture Get all uncovered files
/v1/services/operations/api/files/uncoveredfiles
GET
Get — Leaf Agriculture Get specific file by id
/v1/services/operations/api/files/{file-id}
GET
Get — Leaf Agriculture Get file images
/v1/services/operations/api/files/{file-id}/images
GET
Get — Leaf Agriculture Get file status
/v1/services/operations/api/files/{file-id}/status
GET
Get — Leaf Agriculture Get file summary
/v1/services/operations/api/files/{file-id}/summary
GET
Get — Leaf Agriculture Get file units
/v1/services/operations/api/files/{file-id}/units

MCP Tools

leaf-agriculture-upload-operation-file

Leaf Agriculture Upload operation file

leaf-agriculture-get-all-batches

Leaf Agriculture Get all batches

read-only idempotent
leaf-agriculture-get-batch-id

Leaf Agriculture Get batch by id

read-only idempotent
leaf-agriculture-get-all-files

Leaf Agriculture Get all files

read-only idempotent
leaf-agriculture-merge-operation-files

Leaf Agriculture Merge operation files

leaf-agriculture-get-all-uncovered

Leaf Agriculture Get all uncovered files

read-only idempotent
leaf-agriculture-get-specific-file

Leaf Agriculture Get specific file by id

read-only idempotent
leaf-agriculture-get-file-images

Leaf Agriculture Get file images

read-only idempotent
leaf-agriculture-get-file-status

Leaf Agriculture Get file status

read-only idempotent
leaf-agriculture-get-file-summary

Leaf Agriculture Get file summary

read-only idempotent
leaf-agriculture-get-file-units

Leaf Agriculture Get file units

read-only idempotent

Capability Spec

leaf-agriculture-api-reference-machine-file-conversion.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Leaf Agriculture Leaf API — API Reference > Machine File Conversion
  description: 'Leaf Agriculture Leaf API — API Reference > Machine File Conversion. 11 operations. Lead operation: Leaf Agriculture
    Upload operation file. Self-contained Naftiko capability covering one Leaf Agriculture business surface.'
  tags:
  - Leaf Agriculture
  - API Reference > Machine File Conversion
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LEAF_AGRICULTURE_API_KEY: LEAF_AGRICULTURE_API_KEY
capability:
  consumes:
  - type: http
    namespace: leaf-agriculture-api-reference-machine-file-conversion
    baseUri: ''
    description: Leaf Agriculture Leaf API — API Reference > Machine File Conversion business capability. Self-contained,
      no shared references.
    resources:
    - name: services-operations-api-batch
      path: /services/operations/api/batch
      operations:
      - name: post
        method: POST
        description: Leaf Agriculture Upload operation file
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
        - name: leafUserId
          in: query
          type: string
        - name: provider
          in: query
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: get
        method: GET
        description: Leaf Agriculture Get all batches
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
    - name: services-operations-api-batch-batch_id
      path: /services/operations/api/batch/{batch_id}
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get batch by id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: batch_id
          in: path
          type: string
          required: true
    - name: services-operations-api-files
      path: /services/operations/api/files
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get all files
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
    - name: services-operations-api-files-merge
      path: /services/operations/api/files/merge
      operations:
      - name: post
        method: POST
        description: Leaf Agriculture Merge operation files
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: services-operations-api-files-uncoveredFiles
      path: /services/operations/api/files/uncoveredFiles
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get all uncovered files
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: leafUserId
          in: query
          type: string
    - name: services-operations-api-files-file_id
      path: /services/operations/api/files/{file_id}
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get specific file by id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: file_id
          in: path
          type: string
          required: true
    - name: services-operations-api-files-file_id-images
      path: /services/operations/api/files/{file_id}/images
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get file images
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: file_id
          in: path
          type: string
          required: true
    - name: services-operations-api-files-file_id-status
      path: /services/operations/api/files/{file_id}/status
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get file status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: file_id
          in: path
          type: string
          required: true
    - name: services-operations-api-files-file_id-summary
      path: /services/operations/api/files/{file_id}/summary
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get file summary
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: file_id
          in: path
          type: string
          required: true
    - name: services-operations-api-files-file_id-units
      path: /services/operations/api/files/{file_id}/units
      operations:
      - name: get
        method: GET
        description: Leaf Agriculture Get file units
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Authorization
          in: header
          type: string
        - name: file_id
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: leaf-agriculture-api-reference-machine-file-conversion-rest
    port: 8080
    description: REST adapter for Leaf Agriculture Leaf API — API Reference > Machine File Conversion. One Spectral-compliant
      resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/services/operations/api/batch
      name: services-operations-api-batch
      description: REST surface for services-operations-api-batch.
      operations:
      - method: POST
        name: post
        description: Leaf Agriculture Upload operation file
        call: leaf-agriculture-api-reference-machine-file-conversion.post
        with:
          Authorization: rest.Authorization
          leafUserId: rest.leafUserId
          provider: rest.provider
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: get
        description: Leaf Agriculture Get all batches
        call: leaf-agriculture-api-reference-machine-file-conversion.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/operations/api/batch/{batch-id}
      name: services-operations-api-batch-batch-id
      description: REST surface for services-operations-api-batch-batch_id.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get batch by id
        call: leaf-agriculture-api-reference-machine-file-conversion.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          batch_id: rest.batch_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/operations/api/files
      name: services-operations-api-files
      description: REST surface for services-operations-api-files.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get all files
        call: leaf-agriculture-api-reference-machine-file-conversion.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/operations/api/files/merge
      name: services-operations-api-files-merge
      description: REST surface for services-operations-api-files-merge.
      operations:
      - method: POST
        name: post
        description: Leaf Agriculture Merge operation files
        call: leaf-agriculture-api-reference-machine-file-conversion.post
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/operations/api/files/uncoveredfiles
      name: services-operations-api-files-uncoveredfiles
      description: REST surface for services-operations-api-files-uncoveredFiles.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get all uncovered files
        call: leaf-agriculture-api-reference-machine-file-conversion.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          leafUserId: rest.leafUserId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/operations/api/files/{file-id}
      name: services-operations-api-files-file-id
      description: REST surface for services-operations-api-files-file_id.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get specific file by id
        call: leaf-agriculture-api-reference-machine-file-conversion.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          file_id: rest.file_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/operations/api/files/{file-id}/images
      name: services-operations-api-files-file-id-images
      description: REST surface for services-operations-api-files-file_id-images.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get file images
        call: leaf-agriculture-api-reference-machine-file-conversion.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          file_id: rest.file_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/operations/api/files/{file-id}/status
      name: services-operations-api-files-file-id-status
      description: REST surface for services-operations-api-files-file_id-status.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get file status
        call: leaf-agriculture-api-reference-machine-file-conversion.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          file_id: rest.file_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/operations/api/files/{file-id}/summary
      name: services-operations-api-files-file-id-summary
      description: REST surface for services-operations-api-files-file_id-summary.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get file summary
        call: leaf-agriculture-api-reference-machine-file-conversion.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          file_id: rest.file_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/services/operations/api/files/{file-id}/units
      name: services-operations-api-files-file-id-units
      description: REST surface for services-operations-api-files-file_id-units.
      operations:
      - method: GET
        name: get
        description: Leaf Agriculture Get file units
        call: leaf-agriculture-api-reference-machine-file-conversion.get
        with:
          Content-Type: rest.Content-Type
          Authorization: rest.Authorization
          file_id: rest.file_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: leaf-agriculture-api-reference-machine-file-conversion-mcp
    port: 9090
    transport: http
    description: MCP adapter for Leaf Agriculture Leaf API — API Reference > Machine File Conversion. One tool per consumed
      operation, routed inline through this capability's consumes block.
    tools:
    - name: leaf-agriculture-upload-operation-file
      description: Leaf Agriculture Upload operation file
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: leaf-agriculture-api-reference-machine-file-conversion.post
      with:
        Authorization: tools.Authorization
        leafUserId: tools.leafUserId
        provider: tools.provider
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-all-batches
      description: Leaf Agriculture Get all batches
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-machine-file-conversion.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-batch-id
      description: Leaf Agriculture Get batch by id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-machine-file-conversion.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        batch_id: tools.batch_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-all-files
      description: Leaf Agriculture Get all files
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-machine-file-conversion.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-merge-operation-files
      description: Leaf Agriculture Merge operation files
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: leaf-agriculture-api-reference-machine-file-conversion.post
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-all-uncovered
      description: Leaf Agriculture Get all uncovered files
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-machine-file-conversion.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        leafUserId: tools.leafUserId
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-specific-file
      description: Leaf Agriculture Get specific file by id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-machine-file-conversion.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        file_id: tools.file_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-file-images
      description: Leaf Agriculture Get file images
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-machine-file-conversion.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        file_id: tools.file_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-file-status
      description: Leaf Agriculture Get file status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-machine-file-conversion.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        file_id: tools.file_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-file-summary
      description: Leaf Agriculture Get file summary
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-machine-file-conversion.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        file_id: tools.file_id
      outputParameters:
      - type: object
        mapping: $.
    - name: leaf-agriculture-get-file-units
      description: Leaf Agriculture Get file units
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: leaf-agriculture-api-reference-machine-file-conversion.get
      with:
        Content-Type: tools.Content-Type
        Authorization: tools.Authorization
        file_id: tools.file_id
      outputParameters:
      - type: object
        mapping: $.