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

# Check Availability • AI Agent SDK

> check_availability: Check if this tool is currently available to run.

# check\_availability

Method

> This is a method of the [**FunctionTool**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/FunctionTool.md) class in the [**decorator**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/decorator.md) module.

Check if this tool is currently available to run.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def check_availability() -> tuple[bool, str]
```

### Returns

**Returns** `tuple[bool, str]`

tuple of (is\_available, reason\_if\_not)

## Uses

* `logging.warning`

## Used By

* [`ToolRegistry.get_tool_definitions`](../functions/ToolRegistry-get_tool_definitions)
* [`ToolRegistry.list_available_tools`](../functions/ToolRegistry-list_available_tools)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/decorator.py#L241)
>
> `praisonaiagents/tools/decorator.py` at line 241


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.