naftiko: 1.0.0-alpha2 info: label: Prometheus Management API — Admin description: 'Prometheus Management API — Admin. 3 operations. Lead operation: Prometheus Clean tombstones. Self-contained Naftiko capability covering one Prometheus business surface.' tags: - Prometheus - Admin created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PROMETHEUS_API_KEY: PROMETHEUS_API_KEY capability: consumes: - type: http namespace: management-admin baseUri: http://{host}:{port} description: Prometheus Management API — Admin business capability. Self-contained, no shared references. resources: - name: api-v1-admin-tsdb-clean_tombstones path: /api/v1/admin/tsdb/clean_tombstones operations: - name: cleantombstones method: POST description: Prometheus Clean tombstones outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-v1-admin-tsdb-delete_series path: /api/v1/admin/tsdb/delete_series operations: - name: deletetsdbseries method: POST description: Prometheus Delete series outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: match[] in: query type: array description: Repeated label matcher argument to select series to delete. required: true - name: start in: query type: string description: Start of the time range to delete. Defaults to minimum time. - name: end in: query type: string description: End of the time range to delete. Defaults to maximum time. - name: api-v1-admin-tsdb-snapshot path: /api/v1/admin/tsdb/snapshot operations: - name: createtsdbsnapshot method: POST description: Prometheus Create TSDB snapshot outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: skip_head in: query type: boolean description: Skip data present in the head block if true. Defaults to false. exposes: - type: rest namespace: management-admin-rest port: 8080 description: REST adapter for Prometheus Management API — Admin. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/v1/admin/tsdb/clean-tombstones name: api-v1-admin-tsdb-clean-tombstones description: REST surface for api-v1-admin-tsdb-clean_tombstones. operations: - method: POST name: cleantombstones description: Prometheus Clean tombstones call: management-admin.cleantombstones outputParameters: - type: object mapping: $. - path: /v1/api/v1/admin/tsdb/delete-series name: api-v1-admin-tsdb-delete-series description: REST surface for api-v1-admin-tsdb-delete_series. operations: - method: POST name: deletetsdbseries description: Prometheus Delete series call: management-admin.deletetsdbseries with: match[]: rest.match[] start: rest.start end: rest.end outputParameters: - type: object mapping: $. - path: /v1/api/v1/admin/tsdb/snapshot name: api-v1-admin-tsdb-snapshot description: REST surface for api-v1-admin-tsdb-snapshot. operations: - method: POST name: createtsdbsnapshot description: Prometheus Create TSDB snapshot call: management-admin.createtsdbsnapshot with: skip_head: rest.skip_head outputParameters: - type: object mapping: $. - type: mcp namespace: management-admin-mcp port: 9090 transport: http description: MCP adapter for Prometheus Management API — Admin. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: prometheus-clean-tombstones description: Prometheus Clean tombstones hints: readOnly: false destructive: false idempotent: false call: management-admin.cleantombstones outputParameters: - type: object mapping: $. - name: prometheus-delete-series description: Prometheus Delete series hints: readOnly: false destructive: false idempotent: false call: management-admin.deletetsdbseries with: match[]: tools.match[] start: tools.start end: tools.end outputParameters: - type: object mapping: $. - name: prometheus-create-tsdb-snapshot description: Prometheus Create TSDB snapshot hints: readOnly: false destructive: false idempotent: false call: management-admin.createtsdbsnapshot with: skip_head: tools.skip_head outputParameters: - type: object mapping: $.