estimate_capacity
Estimate endpoint capacity with Little's Law to determine saturation RPS and risk levels (critical, high, medium, low) from current RPS and p99 latency.
Instructions
Estimate capacity per endpoint using Little's Law.
concurrency = RPS x (p99_ms / 1000)
saturation_rps = thread_pool_size / (p99_ms / 1000)
Risk levels (based on current_rps / saturation_rps):
CRITICAL > 80%
HIGH > 60%
MEDIUM > 40%
LOW otherwise
Args:
repo_name: The logical name of the indexed repository.
Returns:
List of dicts: ``endpoint_fqn``, ``current_rps``, ``p99_ms``,
``saturation_rps``, ``ceiling_concurrency``, ``risk_level``.
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": {
"repo_name": "<repo_name>"
},
"name": "estimate_capacity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |