Database Query Tool

Domain: Tools & Function Calling

🎯 Motivation

A tool that lets the agent query databases (SQL, NoSQL) to retrieve, insert, or update data.

πŸ“‹ Concrete Example

Agent calls: query_database(sql=β€˜SELECT name, grade FROM students WHERE grade > 80’) -> returns: [(Alice, 95), (Bob, 85)]. It can answer data questions precisely.

πŸ”— Analogy

A librarian searching the catalog - you ask β€˜Do you have books about space?’ They search the database and tell you what is available. Database query tools let agents search digital data catalogs.