optimize_mirrors
Manage repository mirrors: list configured ones, test speeds, and run health checks to get recommendations.
Instructions
[MIRRORS] Smart repository management. Actions: 'status' (list configured repos), 'test' (test repo speeds), 'health' (full health check). Examples: optimize_mirrors(action='status', auto_test=True) lists and tests all repos; optimize_mirrors(action='health') checks for issues and gives recommendations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of mirrors for suggestions (default 10) | |
| action | Yes | Operation to perform: 'status' (list mirrors), 'test' (test speeds), 'suggest' (get recommendations), 'health' (full check) | |
| country | No | Optional country code for suggestions (e.g., 'US', 'DE') - action='suggest' only | |
| auto_test | No | If true, test mirrors after listing - action='status' only | |
| mirror_url | No | Specific mirror URL to test - action='test' only |