Facebook · Capability

Facebook Threads API — Insights

Facebook Threads API — Insights. 1 operations. Lead operation: Facebook Get Threads Insights. Self-contained Naftiko capability covering one Facebook business surface.

Run with Naftiko FacebookInsights

What You Can Do

GET
Getthreadsinsights — Facebook Get Threads Insights
/v1/{threads-user-id}/insights

MCP Tools

facebook-get-threads-insights

Facebook Get Threads Insights

read-only idempotent

Capability Spec

threads-insights.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Facebook Threads API — Insights
  description: 'Facebook Threads API — Insights. 1 operations. Lead operation: Facebook Get Threads Insights. Self-contained
    Naftiko capability covering one Facebook business surface.'
  tags:
  - Facebook
  - Insights
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FACEBOOK_API_KEY: FACEBOOK_API_KEY
capability:
  consumes:
  - type: http
    namespace: threads-insights
    baseUri: https://graph.threads.net/v1.0
    description: Facebook Threads API — Insights business capability. Self-contained, no shared references.
    resources:
    - name: threads-user-id-insights
      path: /{threads-user-id}/insights
      operations:
      - name: getthreadsinsights
        method: GET
        description: Facebook Get Threads Insights
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: threads-user-id
          in: path
          type: string
          description: The Threads user ID.
          required: true
        - name: metric
          in: query
          type: string
          description: Comma-separated list of metrics.
          required: true
    authentication:
      type: bearer
      token: '{{env.FACEBOOK_API_KEY}}'
  exposes:
  - type: rest
    namespace: threads-insights-rest
    port: 8080
    description: REST adapter for Facebook Threads API — Insights. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/{threads-user-id}/insights
      name: threads-user-id-insights
      description: REST surface for threads-user-id-insights.
      operations:
      - method: GET
        name: getthreadsinsights
        description: Facebook Get Threads Insights
        call: threads-insights.getthreadsinsights
        with:
          threads-user-id: rest.threads-user-id
          metric: rest.metric
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: threads-insights-mcp
    port: 9090
    transport: http
    description: MCP adapter for Facebook Threads API — Insights. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: facebook-get-threads-insights
      description: Facebook Get Threads Insights
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: threads-insights.getthreadsinsights
      with:
        threads-user-id: tools.threads-user-id
        metric: tools.metric
      outputParameters:
      - type: object
        mapping: $.