FOSSology · Capability

FOSSology API — Overview

FOSSology API — Overview. 5 operations. Lead operation: Get database contents. Self-contained Naftiko capability covering one Fossology business surface.

Run with Naftiko FossologyOverview

What You Can Do

GET
Getdatabasecontents — Get database contents
/v1/overview/database/contents
GET
Getdatabasemetrics — Get database metrics
/v1/overview/database/metrics
GET
Getdiskusage — Get disk usage
/v1/overview/disk/usage
GET
Getphpinfo — Get PHP info
/v1/overview/info/php
GET
Getactivequeries — Get active queries
/v1/overview/queries/active

MCP Tools

get-database-contents

Get database contents

read-only idempotent
get-database-metrics

Get database metrics

read-only idempotent
get-disk-usage

Get disk usage

read-only idempotent
get-php-info

Get PHP info

read-only idempotent
get-active-queries

Get active queries

read-only idempotent

Capability Spec

fossology-overview.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: FOSSology API — Overview
  description: 'FOSSology API — Overview. 5 operations. Lead operation: Get database contents. Self-contained Naftiko capability
    covering one Fossology business surface.'
  tags:
  - Fossology
  - Overview
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FOSSOLOGY_API_KEY: FOSSOLOGY_API_KEY
capability:
  consumes:
  - type: http
    namespace: fossology-overview
    baseUri: http://localhost/repo/api/v1
    description: FOSSology API — Overview business capability. Self-contained, no shared references.
    resources:
    - name: overview-database-contents
      path: /overview/database/contents
      operations:
      - name: getdatabasecontents
        method: GET
        description: Get database contents
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: overview-database-metrics
      path: /overview/database/metrics
      operations:
      - name: getdatabasemetrics
        method: GET
        description: Get database metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: overview-disk-usage
      path: /overview/disk/usage
      operations:
      - name: getdiskusage
        method: GET
        description: Get disk usage
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: overview-info-php
      path: /overview/info/php
      operations:
      - name: getphpinfo
        method: GET
        description: Get PHP info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: overview-queries-active
      path: /overview/queries/active
      operations:
      - name: getactivequeries
        method: GET
        description: Get active queries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.FOSSOLOGY_API_KEY}}'
  exposes:
  - type: rest
    namespace: fossology-overview-rest
    port: 8080
    description: REST adapter for FOSSology API — Overview. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/overview/database/contents
      name: overview-database-contents
      description: REST surface for overview-database-contents.
      operations:
      - method: GET
        name: getdatabasecontents
        description: Get database contents
        call: fossology-overview.getdatabasecontents
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/overview/database/metrics
      name: overview-database-metrics
      description: REST surface for overview-database-metrics.
      operations:
      - method: GET
        name: getdatabasemetrics
        description: Get database metrics
        call: fossology-overview.getdatabasemetrics
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/overview/disk/usage
      name: overview-disk-usage
      description: REST surface for overview-disk-usage.
      operations:
      - method: GET
        name: getdiskusage
        description: Get disk usage
        call: fossology-overview.getdiskusage
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/overview/info/php
      name: overview-info-php
      description: REST surface for overview-info-php.
      operations:
      - method: GET
        name: getphpinfo
        description: Get PHP info
        call: fossology-overview.getphpinfo
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/overview/queries/active
      name: overview-queries-active
      description: REST surface for overview-queries-active.
      operations:
      - method: GET
        name: getactivequeries
        description: Get active queries
        call: fossology-overview.getactivequeries
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: fossology-overview-mcp
    port: 9090
    transport: http
    description: MCP adapter for FOSSology API — Overview. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-database-contents
      description: Get database contents
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fossology-overview.getdatabasecontents
      outputParameters:
      - type: object
        mapping: $.
    - name: get-database-metrics
      description: Get database metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fossology-overview.getdatabasemetrics
      outputParameters:
      - type: object
        mapping: $.
    - name: get-disk-usage
      description: Get disk usage
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fossology-overview.getdiskusage
      outputParameters:
      - type: object
        mapping: $.
    - name: get-php-info
      description: Get PHP info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fossology-overview.getphpinfo
      outputParameters:
      - type: object
        mapping: $.
    - name: get-active-queries
      description: Get active queries
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: fossology-overview.getactivequeries
      outputParameters:
      - type: object
        mapping: $.