dba_userSqlList
Retrieve SQL queries executed by a specific user account. Provide a user name to see their recent SQL activity.
Instructions
Retrieve SQL statements executed by a specific named user. Use when the user asks what queries a particular person or account has been running. ONLY call when the user has explicitly named a specific user account — if no user name appears in the message, ask for clarification. NEVER call with an empty user_name. Do NOT use for SQL history by table — use dba_tableSqlList when the user asks about queries against a specific table.
Arguments: user_name - User name to filter by. Required — do not pass empty string. no_days - Number of days to look back persist - If True, materializes result as a volatile table and returns table name
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_name": "<user_name>"
},
"name": "dba_userSqlList"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| no_days | No | Number of days to look back | |
| persist | No | If True, materializes result as a volatile table and returns table name | |
| user_name | Yes | User name to filter by. Required — do not pass empty string. |