investigate-statistics-issues

Pass

Audited by Gen Agent Trust Hub on Nov 18, 2026

Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
  • Administrative SQL Execution: The skill provides a series of T-SQL queries to be executed against a target database. These queries access system metadata (DMVs) and perform diagnostic checks. It also describes remediation steps such as UPDATE STATISTICS, DROP STATISTICS, and ALTER DATABASE, which are standard administrative functions requiring appropriate permissions.
  • Parameter Interpolation: The diagnostic queries use a template syntax to inject values like TopN or ModificationThresholdPct directly into SQL strings. This is a common pattern in agent skills for flexibility, though it relies on the agent's ability to provide valid and safe inputs to prevent malformed SQL queries.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 18, 2026, 03:27 AM