Gong · Capability

Gong Stats API — Statistics

Gong Stats API — Statistics. 4 operations. Lead operation: Gong List coaching metrics. Self-contained Naftiko capability covering one Gong business surface.

Run with Naftiko GongStatistics

What You Can Do

GET
Listcoachingmetrics — Gong List coaching metrics
/v1/coaching/metrics
POST
Retrieveaggregatedactivity — Gong Retrieve aggregated activity
/v1/stats/activity/aggregated
POST
Retrievedailyactivity — Gong Retrieve daily activity
/v1/stats/activity/day-by-day
POST
Retrieveinteractionstats — Gong Retrieve interaction statistics
/v1/stats/interaction

MCP Tools

gong-list-coaching-metrics

Gong List coaching metrics

read-only idempotent
gong-retrieve-aggregated-activity

Gong Retrieve aggregated activity

read-only
gong-retrieve-daily-activity

Gong Retrieve daily activity

read-only
gong-retrieve-interaction-statistics

Gong Retrieve interaction statistics

read-only

Capability Spec

stats-statistics.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Gong Stats API — Statistics
  description: 'Gong Stats API — Statistics. 4 operations. Lead operation: Gong List coaching metrics. Self-contained Naftiko
    capability covering one Gong business surface.'
  tags:
  - Gong
  - Statistics
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GONG_API_KEY: GONG_API_KEY
capability:
  consumes:
  - type: http
    namespace: stats-statistics
    baseUri: https://api.gong.io/v2
    description: Gong Stats API — Statistics business capability. Self-contained, no shared references.
    resources:
    - name: coaching-metrics
      path: /coaching/metrics
      operations:
      - name: listcoachingmetrics
        method: GET
        description: Gong List coaching metrics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: workspace-id
          in: query
          type: string
          description: Filter by workspace ID.
        - name: manager-id
          in: query
          type: string
          description: Filter by manager's Gong user ID.
        - name: from
          in: query
          type: string
          description: Start date for the metrics period in ISO-8601 format.
          required: true
        - name: to
          in: query
          type: string
          description: End date for the metrics period in ISO-8601 format.
          required: true
    - name: stats-activity-aggregated
      path: /stats/activity/aggregated
      operations:
      - name: retrieveaggregatedactivity
        method: POST
        description: Gong Retrieve aggregated activity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: stats-activity-day-by-day
      path: /stats/activity/day-by-day
      operations:
      - name: retrievedailyactivity
        method: POST
        description: Gong Retrieve daily activity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: stats-interaction
      path: /stats/interaction
      operations:
      - name: retrieveinteractionstats
        method: POST
        description: Gong Retrieve interaction statistics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GONG_API_KEY}}'
  exposes:
  - type: rest
    namespace: stats-statistics-rest
    port: 8080
    description: REST adapter for Gong Stats API — Statistics. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/coaching/metrics
      name: coaching-metrics
      description: REST surface for coaching-metrics.
      operations:
      - method: GET
        name: listcoachingmetrics
        description: Gong List coaching metrics
        call: stats-statistics.listcoachingmetrics
        with:
          workspace-id: rest.workspace-id
          manager-id: rest.manager-id
          from: rest.from
          to: rest.to
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/stats/activity/aggregated
      name: stats-activity-aggregated
      description: REST surface for stats-activity-aggregated.
      operations:
      - method: POST
        name: retrieveaggregatedactivity
        description: Gong Retrieve aggregated activity
        call: stats-statistics.retrieveaggregatedactivity
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/stats/activity/day-by-day
      name: stats-activity-day-by-day
      description: REST surface for stats-activity-day-by-day.
      operations:
      - method: POST
        name: retrievedailyactivity
        description: Gong Retrieve daily activity
        call: stats-statistics.retrievedailyactivity
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/stats/interaction
      name: stats-interaction
      description: REST surface for stats-interaction.
      operations:
      - method: POST
        name: retrieveinteractionstats
        description: Gong Retrieve interaction statistics
        call: stats-statistics.retrieveinteractionstats
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: stats-statistics-mcp
    port: 9090
    transport: http
    description: MCP adapter for Gong Stats API — Statistics. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: gong-list-coaching-metrics
      description: Gong List coaching metrics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: stats-statistics.listcoachingmetrics
      with:
        workspace-id: tools.workspace-id
        manager-id: tools.manager-id
        from: tools.from
        to: tools.to
      outputParameters:
      - type: object
        mapping: $.
    - name: gong-retrieve-aggregated-activity
      description: Gong Retrieve aggregated activity
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: stats-statistics.retrieveaggregatedactivity
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: gong-retrieve-daily-activity
      description: Gong Retrieve daily activity
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: stats-statistics.retrievedailyactivity
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: gong-retrieve-interaction-statistics
      description: Gong Retrieve interaction statistics
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: stats-statistics.retrieveinteractionstats
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.