Sweep Stale Agents
sweep_stale_agentsRetires abandoned agents in your project using conservative inactivity thresholds while preserving your own agent and agents with active file reservations.
Instructions
Retire abandoned agents in the caller's project using the server's conservative inactivity heuristic. The caller is never retired, the threshold has a 60-second floor, and active file reservations block retirement by default.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_key": "<project_key>",
"agent_name": "<agent_name>"
},
"name": "sweep_stale_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_name | Yes | ||
| project_key | Yes | ||
| threshold_seconds | No | ||
| registration_token | No | ||
| require_no_active_reservations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||