naftiko: 1.0.0-alpha2 info: label: MongoDB Atlas Administration API — Access Tracking description: 'MongoDB Atlas Administration API — Access Tracking. 2 operations. Lead operation: Return Database Access History for One Cluster by Cluster Name. Self-contained Naftiko capability covering one Mongodb business surface.' tags: - Mongodb - Access Tracking created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MONGODB_API_KEY: MONGODB_API_KEY capability: consumes: - type: http namespace: atlas-access-tracking baseUri: https://cloud.mongodb.com description: MongoDB Atlas Administration API — Access Tracking business capability. Self-contained, no shared references. resources: - name: api-atlas-v2-groups-groupId-dbAccessHistory-clusters-clusterName path: /api/atlas/v2/groups/{groupId}/dbAccessHistory/clusters/{clusterName} operations: - name: getgroupdbaccesshistorycluster method: GET description: Return Database Access History for One Cluster by Cluster Name outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: authResult in: query type: boolean description: Flag that indicates whether the response returns the successful authentication attempts only. - name: clusterName in: path type: string description: Human-readable label that identifies the cluster. required: true - name: end in: query type: integer description: Date and time when to stop retrieving database history. If you specify **end**, you must also specify **start**. This parameter uses UNIX epoch time in millisec - name: ipAddress in: query type: string description: One Internet Protocol address that attempted to authenticate with the database. - name: nLogs in: query type: integer description: Maximum number of lines from the log to return. - name: start in: query type: integer description: Date and time when MongoDB Cloud begins retrieving database history. If you specify **start**, you must also specify **end**. This parameter uses UNIX epoch tim - name: api-atlas-v2-groups-groupId-dbAccessHistory-processes-hostname path: /api/atlas/v2/groups/{groupId}/dbAccessHistory/processes/{hostname} operations: - name: getgroupdbaccesshistoryprocess method: GET description: Return Database Access History for One Cluster by Hostname outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: authResult in: query type: boolean description: Flag that indicates whether the response returns the successful authentication attempts only. - name: end in: query type: integer description: Date and time when to stop retrieving database history. If you specify **end**, you must also specify **start**. This parameter uses UNIX epoch time in millisec - name: hostname in: path type: string description: Fully qualified domain name or IP address of the MongoDB host that stores the log files that you want to download. required: true - name: ipAddress in: query type: string description: One Internet Protocol address that attempted to authenticate with the database. - name: nLogs in: query type: integer description: Maximum number of lines from the log to return. - name: start in: query type: integer description: Date and time when MongoDB Cloud begins retrieving database history. If you specify **start**, you must also specify **end**. This parameter uses UNIX epoch tim authentication: type: bearer token: '{{env.MONGODB_API_KEY}}' exposes: - type: rest namespace: atlas-access-tracking-rest port: 8080 description: REST adapter for MongoDB Atlas Administration API — Access Tracking. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/atlas/v2/groups/{groupid}/dbaccesshistory/clusters/{clustername} name: api-atlas-v2-groups-groupid-dbaccesshistory-clusters-clustername description: REST surface for api-atlas-v2-groups-groupId-dbAccessHistory-clusters-clusterName. operations: - method: GET name: getgroupdbaccesshistorycluster description: Return Database Access History for One Cluster by Cluster Name call: atlas-access-tracking.getgroupdbaccesshistorycluster with: authResult: rest.authResult clusterName: rest.clusterName end: rest.end ipAddress: rest.ipAddress nLogs: rest.nLogs start: rest.start outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/groups/{groupid}/dbaccesshistory/processes/{hostname} name: api-atlas-v2-groups-groupid-dbaccesshistory-processes-hostname description: REST surface for api-atlas-v2-groups-groupId-dbAccessHistory-processes-hostname. operations: - method: GET name: getgroupdbaccesshistoryprocess description: Return Database Access History for One Cluster by Hostname call: atlas-access-tracking.getgroupdbaccesshistoryprocess with: authResult: rest.authResult end: rest.end hostname: rest.hostname ipAddress: rest.ipAddress nLogs: rest.nLogs start: rest.start outputParameters: - type: object mapping: $. - type: mcp namespace: atlas-access-tracking-mcp port: 9090 transport: http description: MCP adapter for MongoDB Atlas Administration API — Access Tracking. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: return-database-access-history-one description: Return Database Access History for One Cluster by Cluster Name hints: readOnly: true destructive: false idempotent: true call: atlas-access-tracking.getgroupdbaccesshistorycluster with: authResult: tools.authResult clusterName: tools.clusterName end: tools.end ipAddress: tools.ipAddress nLogs: tools.nLogs start: tools.start outputParameters: - type: object mapping: $. - name: return-database-access-history-one-2 description: Return Database Access History for One Cluster by Hostname hints: readOnly: true destructive: false idempotent: true call: atlas-access-tracking.getgroupdbaccesshistoryprocess with: authResult: tools.authResult end: tools.end hostname: tools.hostname ipAddress: tools.ipAddress nLogs: tools.nLogs start: tools.start outputParameters: - type: object mapping: $.