Skip to content

docs: document configurable row cap for AI run_sql tool#713

Merged
ZeRego merged 1 commit into
mainfrom
mintlify/22aea193
May 27, 2026
Merged

docs: document configurable row cap for AI run_sql tool#713
ZeRego merged 1 commit into
mainfrom
mintlify/22aea193

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 27, 2026

Summary

Document the new operator-tunable row caps for the AI Analyst and MCP run_sql tools.

Changes

  • Added AI_COPILOT_RUN_SQL_MAX_LIMIT to the AI Analyst environment variables table, noting the fallback chain to AI_COPILOT_MAX_QUERY_LIMIT and the default.
  • Added an "Optional configuration" section to the self-host MCP guide describing MCP_RUN_SQL_MAX_LIMIT with an example.

Context

Source PR shipped configurable row caps for the AI agent's run_sql tool: the previously hard-coded 5000-row Zod cap is replaced by two new operator settings — AI_COPILOT_RUN_SQL_MAX_LIMIT (chat agent / suggestion generator) and MCP_RUN_SQL_MAX_LIMIT (MCP server, decoupled from AI Copilot). The tool description and execute() now respect the configured cap.

cc @author of source PR for review/assignment.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

🤖 Documentation Bot

Status

⚠️ 1 broken link needs manual attention


🔗 Broken Links (Manual Fix Required)

Click to view details
   📄 timezones-draft.mdx

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 27, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lightdash 🟢 Ready View Preview May 27, 2026, 5:01 PM

@ZeRego ZeRego merged commit 5f102a6 into main May 27, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant