Enum ToolRiskLevel
Indicates the inherent risk level of a tool invocation.
public enum ToolRiskLevel
Fields
Low = 0No risk. The tool performs pure computation with no external effects. Examples: calculator, text formatting, JSON parsing.
Medium = 1Moderate risk. The tool reads external state or performs controlled operations. Examples: reading files, HTTP GET, listing processes.
High = 2High risk. The tool modifies local or remote state. Examples: writing files, executing commands, HTTP POST.
Critical = 3Critical risk. The tool performs irreversible or highly privileged operations. Examples: deleting files, killing processes, sending emails, executing shell commands.
Remarks
Risk levels provide a quick classification for security policies and UI displays. A tool's risk level reflects the worst-case impact of a single invocation.