query-store-investigation

Pass

Audited by Gen Agent Trust Hub on Nov 18, 2026

Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
  • Read-Only Performance Investigation: The skill provides complex SQL queries to analyze Query Store data. These queries use system views (sys.query_store_*) and temporary tables for calculation, ensuring they do not modify database data or schema.
  • State-Changing Command Safeguards: The skill explicitly identifies commands that modify state, such as sp_query_store_force_plan and sp_query_store_remove_plan. It implements a 'confirmation gate' policy, requiring the agent to present these as recommendations only and wait for explicit user confirmation before execution.
  • Permission and Scope Management: The skill operates within the scope of the SQL Tools MCP server and follows established guidelines for incident evidence collection, emphasizing data integrity and accurate baseline comparisons.
  • Safe Tooling Integration: It leverages standard, well-documented SQL utilities like sqlcmd and official Microsoft documentation links, maintaining transparency in how it interacts with the database environment.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 18, 2026, 03:27 AM