Because GateRook caps every result before it reaches the AI app, within limits you can change per environment.
Default limits per call:
- Response size: 512 KB on dev and stage, 256 KB on prod.
- SQL:
sql_queryreturns 50 rows unless the AI asks for more, at most 1,000 per call and never more than the environment's row limit: 1,000 rows, or 100 on prod. Cells longer than 8 KiB are cut. - Logs: 1,000 lines on dev and stage, 200 on prod.
- SSH: 256 KB of output.
What to do:
- Narrow the request. Ask for fewer columns, a filter, an aggregate or a shorter time range.
- Page through it. Tools that return
nextCursorcontinue where the last answer stopped. - Raise a limit if you need to. In Policies, choose the environment and change Limits, or the connector's own section, such as SQL's row limit and response size. An endpoint or tool limit can only be stricter, and the strictest value wins.
Larger results also send more of your data to the AI app and its model provider. See row and output limits.