MCPcopy Create free account
hub / github.com/IBM/mcp-cli / ToolRiskLevel

Class ToolRiskLevel

src/mcp_cli/utils/preferences.py:40–45  ·  view source on GitHub ↗

Risk levels for tools.

Source from the content-addressed store, hash-verified

38
39
40class ToolRiskLevel(str, Enum):
41 """Risk levels for tools."""
42
43 SAFE = "safe" # Read-only operations
44 MODERATE = "moderate" # Local modifications
45 HIGH = "high" # System-wide or destructive operations
46
47
48class ToolPatternRule(BaseModel):

Callers 1

set_risk_thresholdMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected