naftiko: 1.0.0-alpha2 info: label: MongoDB Atlas Administration API — Collection Level Metrics description: 'MongoDB Atlas Administration API — Collection Level Metrics. 9 operations. Lead operation: Return Pinned Namespaces. Self-contained Naftiko capability covering one Mongodb business surface.' tags: - Mongodb - Collection Level Metrics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MONGODB_API_KEY: MONGODB_API_KEY capability: consumes: - type: http namespace: atlas-collection-level-metrics baseUri: https://cloud.mongodb.com description: MongoDB Atlas Administration API — Collection Level Metrics business capability. Self-contained, no shared references. resources: - name: api-atlas-v2-groups-groupId-clusters-clusterName-collStats-pinned path: /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/collStats/pinned operations: - name: listgroupclustercollstatpinnednamespaces method: GET description: Return Pinned Namespaces outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: clusterName in: path type: string description: Human-readable label that identifies the cluster to retrieve pinned namespaces for. required: true - name: updategroupclustercollstatpinnednamespaces method: PATCH description: Add Pinned Namespaces outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: clusterName in: path type: string description: Human-readable label that identifies the cluster to pin namespaces to. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: pingroupclustercollstatpinnednamespaces method: PUT description: Pin Namespaces outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: clusterName in: path type: string description: Human-readable label that identifies the cluster to pin namespaces to. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: api-atlas-v2-groups-groupId-clusters-clusterName-collStats-unpin path: /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/collStats/unpin operations: - name: unpingroupclustercollstatunpinnamespaces method: PATCH description: Unpin Namespaces outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: clusterName in: path type: string description: Human-readable label that identifies the cluster to unpin namespaces from. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: api-atlas-v2-groups-groupId-clusters-clusterName-clusterView-collStats-namespace path: /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/{clusterView}/collStats/namespaces operations: - name: getgroupclustercollstatnamespaces method: GET description: Return Ranked Namespaces from One Cluster outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: clusterName in: path type: string description: Human-readable label that identifies the cluster to pin namespaces to. required: true - name: clusterView in: path type: string description: Human-readable label that identifies the cluster topology to retrieve metrics for. required: true - name: api-atlas-v2-groups-groupId-clusters-clusterName-clusterView-databaseName-collec path: /api/atlas/v2/groups/{groupId}/clusters/{clusterName}/{clusterView}/{databaseName}/{collectionName}/collStats/measurements operations: - name: listgroupclustercollstatmeasurements method: GET description: Return Cluster-Level Query Latency outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: clusterName in: path type: string description: Human-readable label that identifies the cluster to retrieve metrics for. required: true - name: clusterView in: path type: string description: Human-readable label that identifies the cluster topology to retrieve metrics for. required: true - name: metrics in: query type: array description: 'List that contains the metrics that you want to retrieve for the associated data series. If you don''t set this parameter, this resource returns data series for ' - name: api-atlas-v2-groups-groupId-collStats-metrics path: /api/atlas/v2/groups/{groupId}/collStats/metrics operations: - name: listgroupcollstatmetrics method: GET description: Return All Metric Names outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-atlas-v2-groups-groupId-processes-processId-collStats-namespaces path: /api/atlas/v2/groups/{groupId}/processes/{processId}/collStats/namespaces operations: - name: getgroupprocesscollstatnamespaces method: GET description: Return Ranked Namespaces from One Host outputRawFormat: json outputParameters: - name: result type: object value: $. - name: api-atlas-v2-groups-groupId-processes-processId-databaseName-collectionName-coll path: /api/atlas/v2/groups/{groupId}/processes/{processId}/{databaseName}/{collectionName}/collStats/measurements operations: - name: listgroupprocesscollstatmeasurements method: GET description: Return Host-Level Query Latency outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: metrics in: query type: array description: 'List that contains the metrics that you want to retrieve for the associated data series. If you don''t set this parameter, this resource returns data series for ' authentication: type: bearer token: '{{env.MONGODB_API_KEY}}' exposes: - type: rest namespace: atlas-collection-level-metrics-rest port: 8080 description: REST adapter for MongoDB Atlas Administration API — Collection Level Metrics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/atlas/v2/groups/{groupid}/clusters/{clustername}/collstats/pinned name: api-atlas-v2-groups-groupid-clusters-clustername-collstats-pinned description: REST surface for api-atlas-v2-groups-groupId-clusters-clusterName-collStats-pinned. operations: - method: GET name: listgroupclustercollstatpinnednamespaces description: Return Pinned Namespaces call: atlas-collection-level-metrics.listgroupclustercollstatpinnednamespaces with: clusterName: rest.clusterName outputParameters: - type: object mapping: $. - method: PATCH name: updategroupclustercollstatpinnednamespaces description: Add Pinned Namespaces call: atlas-collection-level-metrics.updategroupclustercollstatpinnednamespaces with: clusterName: rest.clusterName body: rest.body outputParameters: - type: object mapping: $. - method: PUT name: pingroupclustercollstatpinnednamespaces description: Pin Namespaces call: atlas-collection-level-metrics.pingroupclustercollstatpinnednamespaces with: clusterName: rest.clusterName body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/groups/{groupid}/clusters/{clustername}/collstats/unpin name: api-atlas-v2-groups-groupid-clusters-clustername-collstats-unpin description: REST surface for api-atlas-v2-groups-groupId-clusters-clusterName-collStats-unpin. operations: - method: PATCH name: unpingroupclustercollstatunpinnamespaces description: Unpin Namespaces call: atlas-collection-level-metrics.unpingroupclustercollstatunpinnamespaces with: clusterName: rest.clusterName body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/groups/{groupid}/clusters/{clustername}/{clusterview}/collstats/namespaces name: api-atlas-v2-groups-groupid-clusters-clustername-clusterview-collstats-namespace description: REST surface for api-atlas-v2-groups-groupId-clusters-clusterName-clusterView-collStats-namespace. operations: - method: GET name: getgroupclustercollstatnamespaces description: Return Ranked Namespaces from One Cluster call: atlas-collection-level-metrics.getgroupclustercollstatnamespaces with: clusterName: rest.clusterName clusterView: rest.clusterView outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/groups/{groupid}/clusters/{clustername}/{clusterview}/{databasename}/{collectionname}/collstats/measurements name: api-atlas-v2-groups-groupid-clusters-clustername-clusterview-databasename-collec description: REST surface for api-atlas-v2-groups-groupId-clusters-clusterName-clusterView-databaseName-collec. operations: - method: GET name: listgroupclustercollstatmeasurements description: Return Cluster-Level Query Latency call: atlas-collection-level-metrics.listgroupclustercollstatmeasurements with: clusterName: rest.clusterName clusterView: rest.clusterView metrics: rest.metrics outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/groups/{groupid}/collstats/metrics name: api-atlas-v2-groups-groupid-collstats-metrics description: REST surface for api-atlas-v2-groups-groupId-collStats-metrics. operations: - method: GET name: listgroupcollstatmetrics description: Return All Metric Names call: atlas-collection-level-metrics.listgroupcollstatmetrics outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/groups/{groupid}/processes/{processid}/collstats/namespaces name: api-atlas-v2-groups-groupid-processes-processid-collstats-namespaces description: REST surface for api-atlas-v2-groups-groupId-processes-processId-collStats-namespaces. operations: - method: GET name: getgroupprocesscollstatnamespaces description: Return Ranked Namespaces from One Host call: atlas-collection-level-metrics.getgroupprocesscollstatnamespaces outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/groups/{groupid}/processes/{processid}/{databasename}/{collectionname}/collstats/measurements name: api-atlas-v2-groups-groupid-processes-processid-databasename-collectionname-coll description: REST surface for api-atlas-v2-groups-groupId-processes-processId-databaseName-collectionName-coll. operations: - method: GET name: listgroupprocesscollstatmeasurements description: Return Host-Level Query Latency call: atlas-collection-level-metrics.listgroupprocesscollstatmeasurements with: metrics: rest.metrics outputParameters: - type: object mapping: $. - type: mcp namespace: atlas-collection-level-metrics-mcp port: 9090 transport: http description: MCP adapter for MongoDB Atlas Administration API — Collection Level Metrics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: return-pinned-namespaces description: Return Pinned Namespaces hints: readOnly: true destructive: false idempotent: true call: atlas-collection-level-metrics.listgroupclustercollstatpinnednamespaces with: clusterName: tools.clusterName outputParameters: - type: object mapping: $. - name: add-pinned-namespaces description: Add Pinned Namespaces hints: readOnly: false destructive: false idempotent: true call: atlas-collection-level-metrics.updategroupclustercollstatpinnednamespaces with: clusterName: tools.clusterName body: tools.body outputParameters: - type: object mapping: $. - name: pin-namespaces description: Pin Namespaces hints: readOnly: false destructive: false idempotent: true call: atlas-collection-level-metrics.pingroupclustercollstatpinnednamespaces with: clusterName: tools.clusterName body: tools.body outputParameters: - type: object mapping: $. - name: unpin-namespaces description: Unpin Namespaces hints: readOnly: false destructive: false idempotent: true call: atlas-collection-level-metrics.unpingroupclustercollstatunpinnamespaces with: clusterName: tools.clusterName body: tools.body outputParameters: - type: object mapping: $. - name: return-ranked-namespaces-one-cluster description: Return Ranked Namespaces from One Cluster hints: readOnly: true destructive: false idempotent: true call: atlas-collection-level-metrics.getgroupclustercollstatnamespaces with: clusterName: tools.clusterName clusterView: tools.clusterView outputParameters: - type: object mapping: $. - name: return-cluster-level-query-latency description: Return Cluster-Level Query Latency hints: readOnly: true destructive: false idempotent: true call: atlas-collection-level-metrics.listgroupclustercollstatmeasurements with: clusterName: tools.clusterName clusterView: tools.clusterView metrics: tools.metrics outputParameters: - type: object mapping: $. - name: return-all-metric-names description: Return All Metric Names hints: readOnly: true destructive: false idempotent: true call: atlas-collection-level-metrics.listgroupcollstatmetrics outputParameters: - type: object mapping: $. - name: return-ranked-namespaces-one-host description: Return Ranked Namespaces from One Host hints: readOnly: true destructive: false idempotent: true call: atlas-collection-level-metrics.getgroupprocesscollstatnamespaces outputParameters: - type: object mapping: $. - name: return-host-level-query-latency description: Return Host-Level Query Latency hints: readOnly: true destructive: false idempotent: true call: atlas-collection-level-metrics.listgroupprocesscollstatmeasurements with: metrics: tools.metrics outputParameters: - type: object mapping: $.