Gong · Capability

Gong Library API — Library

Gong Library API — Library. 2 operations. Lead operation: Gong Retrieve library folders. Self-contained Naftiko capability covering one Gong business surface.

Run with Naftiko GongLibrary

What You Can Do

GET
Listlibraryfolders — Gong Retrieve library folders
/v1/library/folders
GET
Listcallsinfolder — Gong List calls in a library folder
/v1/library/folders/{folderid}/calls

MCP Tools

gong-retrieve-library-folders

Gong Retrieve library folders

read-only idempotent
gong-list-calls-library-folder

Gong List calls in a library folder

read-only idempotent

Capability Spec

library-library.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gong Library API — Library
  description: 'Gong Library API — Library. 2 operations. Lead operation: Gong Retrieve library folders. Self-contained Naftiko
    capability covering one Gong business surface.'
  tags:
  - Gong
  - Library
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GONG_API_KEY: GONG_API_KEY
capability:
  consumes:
  - type: http
    namespace: library-library
    baseUri: https://api.gong.io/v2
    description: Gong Library API — Library business capability. Self-contained, no shared references.
    resources:
    - name: library-folders
      path: /library/folders
      operations:
      - name: listlibraryfolders
        method: GET
        description: Gong Retrieve library folders
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspaceId
          in: query
          type: string
          description: Optional workspace ID to filter folders by workspace.
    - name: library-folders-folderId-calls
      path: /library/folders/{folderId}/calls
      operations:
      - name: listcallsinfolder
        method: GET
        description: Gong List calls in a library folder
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: folderId
          in: path
          type: string
          description: The unique identifier of the library folder.
          required: true
    authentication:
      type: bearer
      token: '{{env.GONG_API_KEY}}'
  exposes:
  - type: rest
    namespace: library-library-rest
    port: 8080
    description: REST adapter for Gong Library API — Library. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/library/folders
      name: library-folders
      description: REST surface for library-folders.
      operations:
      - method: GET
        name: listlibraryfolders
        description: Gong Retrieve library folders
        call: library-library.listlibraryfolders
        with:
          workspaceId: rest.workspaceId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/library/folders/{folderid}/calls
      name: library-folders-folderid-calls
      description: REST surface for library-folders-folderId-calls.
      operations:
      - method: GET
        name: listcallsinfolder
        description: Gong List calls in a library folder
        call: library-library.listcallsinfolder
        with:
          folderId: rest.folderId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: library-library-mcp
    port: 9090
    transport: http
    description: MCP adapter for Gong Library API — Library. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: gong-retrieve-library-folders
      description: Gong Retrieve library folders
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: library-library.listlibraryfolders
      with:
        workspaceId: tools.workspaceId
      outputParameters:
      - type: object
        mapping: $.
    - name: gong-list-calls-library-folder
      description: Gong List calls in a library folder
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: library-library.listcallsinfolder
      with:
        folderId: tools.folderId
      outputParameters:
      - type: object
        mapping: $.