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

# validate • AI Agent SDK

> validate: Validate the tool configuration.

# validate

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

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

Validate the tool configuration.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def validate() -> bool
```

### Returns

<ResponseField name="Returns" type="bool">
  True if validation passes
</ResponseField>

### Exceptions

<AccordionGroup>
  <Accordion title="ToolValidationError">
    If validation fails
  </Accordion>
</AccordionGroup>

## Uses

* `get_schema`
* `ToolValidationError`

## Used By

* [`validate_tool`](../functions/validate_tool)
* [`tool`](../functions/tool)

## Source

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