Start Insights Agent runs from the CLI and MCP
You can now start, review, cancel, and schedule Insights Agent runs from the CLI and the MCP server. Pass up to five slow query fingerprints or schema recommendations to start a run, or turn a slow_query or schema_recommendation schedule on and off.
Use pscale insights agent, or planetscale_start_insights_agent_run and planetscale_update_insights_agent_schedule from MCP. Service tokens need read_insights_agent to list and show runs, and write_insights_agent to start, cancel, or change schedules.
pscale insights agent runs create <database> <branch> --org <org> --fingerprint <fingerprint> --keyspace <keyspace> pscale insights agent schedules update <database> <branch> slow_query --org <org> --enabled --frequency week --day-of-week 1 --time 03:00 --time-zone America/New_York
CLI insights docs · MCP docs · Insights Agent · Service tokens