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

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

> This is a method of the [**FunctionTool**](../classes/FunctionTool) class in the [**decorator**](../modules/decorator) 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

<ResponseField name="Returns" type="tuple[bool, str]">
  tuple of (is\_available, reason\_if\_not)
</ResponseField>

## 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 title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/tools/decorator.py#L216">
  `praisonaiagents/tools/decorator.py` at line 216
</Card>
