naftiko: 1.0.0-alpha2 info: label: Envoy Admin API — Statistics description: 'Envoy Admin API — Statistics. 4 operations. Lead operation: Envoy Reset all statistics counters. Self-contained Naftiko capability covering one Envoy business surface.' tags: - Envoy - Statistics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ENVOY_API_KEY: ENVOY_API_KEY capability: consumes: - type: http namespace: admin-statistics baseUri: http://localhost:9901 description: Envoy Admin API — Statistics business capability. Self-contained, no shared references. resources: - name: reset_counters path: /reset_counters operations: - name: resetcounters method: POST description: Envoy Reset all statistics counters outputRawFormat: json outputParameters: - name: result type: object value: $. - name: stats path: /stats operations: - name: getstats method: GET description: Get Envoy statistics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: format in: query type: string description: Output format for statistics data. - name: filter in: query type: string description: Regex pattern to filter stat names. - name: type in: query type: string description: Filter statistics by type. - name: usedonly in: query type: boolean description: When true, only return statistics that have been written to at least once. - name: stats-prometheus path: /stats/prometheus operations: - name: getstatsprometheus method: GET description: Envoy Get statistics in Prometheus format outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: usedonly in: query type: boolean description: When true, only return statistics that have been written to at least once. - name: filter in: query type: string description: Regex pattern to filter stat names. - name: stats-recentlookups path: /stats/recentlookups operations: - name: getrecentlookups method: GET description: Envoy Get recently looked-up stat names outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: admin-statistics-rest port: 8080 description: REST adapter for Envoy Admin API — Statistics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/reset-counters name: reset-counters description: REST surface for reset_counters. operations: - method: POST name: resetcounters description: Envoy Reset all statistics counters call: admin-statistics.resetcounters outputParameters: - type: object mapping: $. - path: /v1/stats name: stats description: REST surface for stats. operations: - method: GET name: getstats description: Get Envoy statistics call: admin-statistics.getstats with: format: rest.format filter: rest.filter type: rest.type usedonly: rest.usedonly outputParameters: - type: object mapping: $. - path: /v1/stats/prometheus name: stats-prometheus description: REST surface for stats-prometheus. operations: - method: GET name: getstatsprometheus description: Envoy Get statistics in Prometheus format call: admin-statistics.getstatsprometheus with: usedonly: rest.usedonly filter: rest.filter outputParameters: - type: object mapping: $. - path: /v1/stats/recentlookups name: stats-recentlookups description: REST surface for stats-recentlookups. operations: - method: GET name: getrecentlookups description: Envoy Get recently looked-up stat names call: admin-statistics.getrecentlookups outputParameters: - type: object mapping: $. - type: mcp namespace: admin-statistics-mcp port: 9090 transport: http description: MCP adapter for Envoy Admin API — Statistics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: envoy-reset-all-statistics-counters description: Envoy Reset all statistics counters hints: readOnly: false destructive: false idempotent: false call: admin-statistics.resetcounters outputParameters: - type: object mapping: $. - name: get-envoy-statistics description: Get Envoy statistics hints: readOnly: true destructive: false idempotent: true call: admin-statistics.getstats with: format: tools.format filter: tools.filter type: tools.type usedonly: tools.usedonly outputParameters: - type: object mapping: $. - name: envoy-get-statistics-prometheus-format description: Envoy Get statistics in Prometheus format hints: readOnly: true destructive: false idempotent: true call: admin-statistics.getstatsprometheus with: usedonly: tools.usedonly filter: tools.filter outputParameters: - type: object mapping: $. - name: envoy-get-recently-looked-up description: Envoy Get recently looked-up stat names hints: readOnly: true destructive: false idempotent: true call: admin-statistics.getrecentlookups outputParameters: - type: object mapping: $.