naftiko: 1.0.0-alpha2 info: label: Threads API — Read And Manage Threads > Read Threads Insights description: 'Threads API — Read And Manage Threads > Read Threads Insights. 2 operations. Lead operation: Get Account Insights. Self-contained Naftiko capability covering one Threads Api business surface.' tags: - Threads Api - Read And Manage Threads > Read Threads Insights created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: THREADS_API_API_KEY: THREADS_API_API_KEY capability: consumes: - type: http namespace: threads-read-and-manage-threads-read-threads-insights baseUri: http://{{api_host}} description: Threads API — Read And Manage Threads > Read Threads Insights business capability. Self-contained, no shared references. resources: - name: me-threads_insights path: /me/threads_insights operations: - name: get method: GET description: Get Account Insights outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: metric in: query type: string description: 'views: The number of times the post was viewed.' - name: thread_id-insights path: /{thread_id}/insights operations: - name: get method: GET description: Get Post Insights outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: metric in: query type: string description: 'views: The number of times the post was viewed.' - name: thread_id in: path type: string required: true exposes: - type: rest namespace: threads-read-and-manage-threads-read-threads-insights-rest port: 8080 description: REST adapter for Threads API — Read And Manage Threads > Read Threads Insights. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/me/threads-insights name: me-threads-insights description: REST surface for me-threads_insights. operations: - method: GET name: get description: Get Account Insights call: threads-read-and-manage-threads-read-threads-insights.get with: metric: rest.metric outputParameters: - type: object mapping: $. - path: /v1/{thread-id}/insights name: thread-id-insights description: REST surface for thread_id-insights. operations: - method: GET name: get description: Get Post Insights call: threads-read-and-manage-threads-read-threads-insights.get with: metric: rest.metric thread_id: rest.thread_id outputParameters: - type: object mapping: $. - type: mcp namespace: threads-read-and-manage-threads-read-threads-insights-mcp port: 9090 transport: http description: MCP adapter for Threads API — Read And Manage Threads > Read Threads Insights. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-account-insights description: Get Account Insights hints: readOnly: true destructive: false idempotent: true call: threads-read-and-manage-threads-read-threads-insights.get with: metric: tools.metric outputParameters: - type: object mapping: $. - name: get-post-insights description: Get Post Insights hints: readOnly: true destructive: false idempotent: true call: threads-read-and-manage-threads-read-threads-insights.get with: metric: tools.metric thread_id: tools.thread_id outputParameters: - type: object mapping: $.