Mini DBA AI Assistant works by sending your question plus selected Mini DBA context to an AI provider. This page explains what context can be included, how detail pages add extra evidence, how the default free token allowance works, and how to reduce sensitive data exposure.
The exact prompt depends on where you open the AI Assistant and which context switches are enabled. Assume the request may include:
Do not type secrets into the prompt. Avoid pasting passwords, API keys, connection strings, private customer data, personal data, or confidential payload values. Use approved masking or internal policy before sending context to any AI provider.
The page-level assistant lets you choose Metrics, Sessions, and Alerts.
Metrics is usually the lowest-risk useful option because it focuses on operational counters. Sessions may include login, host, application, query, command, or wait details. Alerts may include names, thresholds, and descriptions that reveal operational policies or customer-specific issues.
Use the smallest context that answers the question:
Some Mini DBA detail pages send additional context to improve answer quality. Execution plan pages can pass plan XML, plan text, SQL text, plan tree output, JSON plans, or parsed plan operators depending on the database platform. Other pages can pass page-specific summaries such as Azure elastic pool context.
Additional context is appended to the live snapshot before the request is sent. This gives the assistant the exact object you are asking about and reduces generic answers.
The default Mini DBA AI provider includes a limited free daily token allowance per user. The limit is fixed in the product at 100,000 tokens per user per day for the default provider.
When the default provider is used:
The token count may come from the AI provider response. If the provider does not return token usage, Mini DBA estimates usage from the system prompt, question, context, conversation history, and response length.
BYO AI uses your configured provider and subscription. It is not limited by the default Mini DBA free daily token quota. Your provider may still enforce its own rate limits, context limits, billing limits, regional restrictions, and model-specific token windows.
If cost matters, reduce token use by asking narrower questions, disabling unnecessary context switches, clearing old conversation history, and using plan context only when the selected plan is relevant.
Mini DBA keeps conversation history for the current server or page context during the user session. This lets you ask follow-up questions without repeating all context. Conversation history can also consume additional tokens because previous messages may be sent with later requests.
Use Clear when:
Before enabling AI broadly, confirm:
If no answer is returned, check AI Provider Settings, provider status, model or deployment name, API key, endpoint URL, API version, network path, and Web Proxy Settings. If Mini DBA says no live data snapshot is available, wait for the next server refresh or open a page that has current model data.
If the default quota bar does not appear, the default provider may not be configured, BYO AI may be enabled, or the browser may not have returned token usage yet.