> ## 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.

# Is Allowed • AI Agent SDK

> is_allowed: Check if a tool is allowed.

# is\_allowed

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**PermissionAllowlist**](../classes/PermissionAllowlist) class in the [**approval**](../modules/approval) module.

Check if a tool is allowed.

## Signature

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

## Parameters

<ParamField query="tool_name" type="str" required={true}>
  Name of the tool
</ParamField>

<ParamField query="path" type="Optional" required={false}>
  Optional path to check against allowed paths
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  True if tool is allowed (optionally for the given path)
</ResponseField>

## Uses

* `normpath`

## Source

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