naftiko: 1.0.0-alpha2 info: label: Envoy Proxy Admin API — Statistics description: 'Envoy Proxy Admin API — Statistics. 4 operations. Lead operation: Envoy Proxy Reset Counters. Self-contained Naftiko capability covering one Envoy Proxy business surface.' tags: - Envoy Proxy - Statistics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ENVOY_PROXY_API_KEY: ENVOY_PROXY_API_KEY capability: consumes: - type: http namespace: admin-statistics baseUri: http://localhost:9901 description: Envoy Proxy Admin API — Statistics business capability. Self-contained, no shared references. resources: - name: reset_counters path: /reset_counters operations: - name: postresetcounters method: POST description: Envoy Proxy Reset Counters outputRawFormat: json outputParameters: - name: result type: object value: $. - name: stats path: /stats operations: - name: getstats method: GET description: Envoy Proxy Get Statistics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: format in: query type: string description: Output format for the statistics. - name: filter in: query type: string description: Regular expression to filter the returned statistics by name. - name: usedonly in: query type: boolean description: Only return statistics that have been written to by Envoy. - name: histogram_buckets in: query type: string description: Control histogram output mode. - name: stats-prometheus path: /stats/prometheus operations: - name: getstatsprometheus method: GET description: Envoy Proxy Get Statistics in Prometheus Format outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: usedonly in: query type: boolean description: Only return statistics that have been written to by Envoy. - name: text_readouts in: query type: boolean description: Include text readout gauges in the output. - name: filter in: query type: string description: Regular expression to filter the returned statistics by name. - name: stats-recentlookups path: /stats/recentlookups operations: - name: getstatsrecentlookups method: GET description: Envoy Proxy Get Recent Stat Lookups outputRawFormat: json outputParameters: - name: result type: object value: $. exposes: - type: rest namespace: admin-statistics-rest port: 8080 description: REST adapter for Envoy Proxy 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: postresetcounters description: Envoy Proxy Reset Counters call: admin-statistics.postresetcounters outputParameters: - type: object mapping: $. - path: /v1/stats name: stats description: REST surface for stats. operations: - method: GET name: getstats description: Envoy Proxy Get Statistics call: admin-statistics.getstats with: format: rest.format filter: rest.filter usedonly: rest.usedonly histogram_buckets: rest.histogram_buckets outputParameters: - type: object mapping: $. - path: /v1/stats/prometheus name: stats-prometheus description: REST surface for stats-prometheus. operations: - method: GET name: getstatsprometheus description: Envoy Proxy Get Statistics in Prometheus Format call: admin-statistics.getstatsprometheus with: usedonly: rest.usedonly text_readouts: rest.text_readouts filter: rest.filter outputParameters: - type: object mapping: $. - path: /v1/stats/recentlookups name: stats-recentlookups description: REST surface for stats-recentlookups. operations: - method: GET name: getstatsrecentlookups description: Envoy Proxy Get Recent Stat Lookups call: admin-statistics.getstatsrecentlookups outputParameters: - type: object mapping: $. - type: mcp namespace: admin-statistics-mcp port: 9090 transport: http description: MCP adapter for Envoy Proxy Admin API — Statistics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: envoy-proxy-reset-counters description: Envoy Proxy Reset Counters hints: readOnly: false destructive: false idempotent: false call: admin-statistics.postresetcounters outputParameters: - type: object mapping: $. - name: envoy-proxy-get-statistics description: Envoy Proxy Get Statistics hints: readOnly: true destructive: false idempotent: true call: admin-statistics.getstats with: format: tools.format filter: tools.filter usedonly: tools.usedonly histogram_buckets: tools.histogram_buckets outputParameters: - type: object mapping: $. - name: envoy-proxy-get-statistics-prometheus description: Envoy Proxy Get Statistics in Prometheus Format hints: readOnly: true destructive: false idempotent: true call: admin-statistics.getstatsprometheus with: usedonly: tools.usedonly text_readouts: tools.text_readouts filter: tools.filter outputParameters: - type: object mapping: $. - name: envoy-proxy-get-recent-stat description: Envoy Proxy Get Recent Stat Lookups hints: readOnly: true destructive: false idempotent: true call: admin-statistics.getstatsrecentlookups outputParameters: - type: object mapping: $.