naftiko: 1.0.0-alpha2 info: label: LangWatch Analytics API description: 'Time-series analytics over traces, tokens, cost, latency, and evaluator scores. Self-contained Naftiko capability covering one LangWatch business surface.' tags: - LangWatch - Analytics - Time Series created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: LANGWATCH_API_KEY: LANGWATCH_API_KEY capability: consumes: - type: http namespace: analytics baseUri: https://app.langwatch.ai description: Time-series analytics over traces, tokens, cost, latency, and evaluator scores. resources: - name: api-analytics-timeseries path: /api/analytics/timeseries operations: - name: queryTimeseries method: POST description: Query time-series analytics. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer value: '{{env.LANGWATCH_API_KEY}}' placement: header exposes: - type: rest namespace: analytics-rest port: 8080 description: REST adapter for LangWatch Analytics API. resources: - path: /v1/api/analytics/timeseries name: querytimeseries-resource description: REST surface for queryTimeseries. operations: - method: POST name: queryTimeseries description: Query time-series analytics. call: analytics.queryTimeseries with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: analytics-mcp port: 9090 transport: http description: MCP adapter for LangWatch Analytics API. One tool per consumed operation. tools: - name: langwatch-queryTimeseries description: Query time-series analytics. hints: readOnly: false destructive: false idempotent: false call: analytics.queryTimeseries with: body: tools.body outputParameters: - type: object mapping: $.