# QuerySQLCheckerTool

> **Class** in `langchain_ibm`

📖 [View in docs](https://reference.langchain.com/python/langchain-ibm/agent_toolkits/sql/tool/QuerySQLCheckerTool)

Use an LLM to check if a query is correct.

## Signature

```python
QuerySQLCheckerTool()
```

## Extends

- `BaseSQLDatabaseTool`
- `BaseTool`

## Properties

- `template`
- `llm`
- `llm_chain`
- `name`
- `description`
- `args_schema`

## Methods

- [`initialize_llm_chain()`](https://reference.langchain.com/python/langchain-ibm/agent_toolkits/sql/tool/QuerySQLCheckerTool/initialize_llm_chain)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-ibm/blob/8a4e7ff49e9b316b266baa1bfdfb7a794694101a/libs/ibm/langchain_ibm/agent_toolkits/sql/tool.py#L135)