naftiko: 1.0.0-alpha2 info: label: Grafana Tempo HTTP API — Metrics description: 'Grafana Tempo HTTP API — Metrics. 1 operations. Lead operation: Query Metrics Range. Self-contained Naftiko capability covering one Tempo business surface.' tags: - Tempo - Metrics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: TEMPO_API_KEY: TEMPO_API_KEY capability: consumes: - type: http namespace: tempo-metrics baseUri: http://localhost:3200 description: Grafana Tempo HTTP API — Metrics business capability. Self-contained, no shared references. resources: - name: api-metrics-query_range path: /api/metrics/query_range operations: - name: querymetricsrange method: GET description: Query Metrics Range outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: q in: query type: string description: TraceQL metrics query expression required: true - name: start in: query type: integer description: Start time as Unix epoch (seconds) required: true - name: end in: query type: integer description: End time as Unix epoch (seconds) required: true - name: step in: query type: string description: Query step interval (e.g., 30s, 1m, 5m) exposes: - type: rest namespace: tempo-metrics-rest port: 8080 description: REST adapter for Grafana Tempo HTTP API — Metrics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/metrics/query-range name: api-metrics-query-range description: REST surface for api-metrics-query_range. operations: - method: GET name: querymetricsrange description: Query Metrics Range call: tempo-metrics.querymetricsrange with: q: rest.q start: rest.start end: rest.end step: rest.step outputParameters: - type: object mapping: $. - type: mcp namespace: tempo-metrics-mcp port: 9090 transport: http description: MCP adapter for Grafana Tempo HTTP API — Metrics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: query-metrics-range description: Query Metrics Range hints: readOnly: true destructive: false idempotent: true call: tempo-metrics.querymetricsrange with: q: tools.q start: tools.start end: tools.end step: tools.step outputParameters: - type: object mapping: $.