> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Risk Level • AI Agent SDK

> get_risk_level: Get the risk level of a tool.

# get\_risk\_level

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**approval**](../modules/approval) module.

Get the risk level of a tool.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_risk_level(tool_name: str) -> Optional[str]
```

## Parameters

<ParamField query="tool_name" type="str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Optional[str]">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/approval.py#L524">
  `praisonaiagents/approval.py` at line 524
</Card>
