QueryBear logs every interaction between your AI clients and your databases. When you give an agent — or a non-technical teammate using one — access to production data, the audit trail is how you keep that access accountable.Documentation Index
Fetch the complete documentation index at: https://docs.querybear.com/llms.txt
Use this file to discover all available pages before exploring further.
What gets logged
For everyrun_query call:
- Who — the originating client and account (each MCP client authorizes via OAuth, so calls are attributable).
- When — a precise timestamp.
- What — the full SQL that was executed, including how QueryBear rewrote it (injected
LIMIT, stripped columns). - Result — row count returned, execution time, and whether the query succeeded or was rejected.
- Why (on rejection) — which layer blocked it: parser, table allow-list, blocked column, row limit, or timeout.
get_schema) and connection events are logged too.
Where to find it
Open the Audit view in the QueryBear dashboard. You can filter by connection, client, time range, and status (success / rejected).Why it matters
- Investigate surprising answers. If an AI returns something that looks off, you can see the exact query it ran rather than guessing.
- Catch prompt injection. A spike of unusual queries — or a series of rejected ones — is a signal that an agent may be under attack. The audit trail makes that visible.
- Accountability at scale. When a Custom GPT or shared Claude Desktop connector is used across a team, the log shows who asked what.
- Compliance. A complete, immutable record of data access supports least-privilege and auditability requirements.
Example
Related
- Access control — the rules each logged query is checked against
- Security model — the gateway that enforces and records everything