<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DBSQL MCP output limit in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/dbsql-mcp-output-limit/m-p/159422#M1871</link>
    <description>&lt;P&gt;Hi, Databricks Champions&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SQL MCP server. I was able to connect to MCP and run my sql queries. However as my query out goes above 32,768 it gets truncated and I am not able to get the complete output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only pass warehouse_id in "_meta" parameters while making connection. There is no way for me to configure row_limit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;poll → state='SUCCEEDED'&lt;/P&gt;&lt;P&gt;Final state: SUCCEEDED&lt;/P&gt;&lt;P&gt;── MANIFEST (excl. schema) ──&lt;BR /&gt;{&lt;BR /&gt;"format": "PROTOBUF_ARRAY",&lt;BR /&gt;"total_chunk_count": 1,&lt;BR /&gt;"chunks": [&lt;BR /&gt;{&lt;BR /&gt;"chunk_index": 0,&lt;BR /&gt;"row_offset": 0,&lt;BR /&gt;"row_count": 32768,&lt;BR /&gt;"byte_count": 1860920&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"total_row_count": 32768,&lt;BR /&gt;"total_byte_count": 1860920,&lt;BR /&gt;"truncated": true&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;── RESULT keys ──&lt;BR /&gt;['chunk_index', 'row_offset', 'row_count', 'data_typed_array']&lt;/P&gt;&lt;P&gt;It's literally giving me a single chunk only (with truncated = True) and there is no way for me to get the further data because chunks are not given to me.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Has anyone encountered this limitation with the SQL MCP Server? Is there a supported way to:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Increase the result row limit?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Configure pagination/chunking?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Retrieve the rows beyond the 32,768-row cutoff?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;&lt;SPAN&gt;Any guidance would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2026 09:28:45 GMT</pubDate>
    <dc:creator>Manas2000</dc:creator>
    <dc:date>2026-06-17T09:28:45Z</dc:date>
    <item>
      <title>DBSQL MCP output limit</title>
      <link>https://community.databricks.com/t5/generative-ai/dbsql-mcp-output-limit/m-p/159422#M1871</link>
      <description>&lt;P&gt;Hi, Databricks Champions&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SQL MCP server. I was able to connect to MCP and run my sql queries. However as my query out goes above 32,768 it gets truncated and I am not able to get the complete output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can only pass warehouse_id in "_meta" parameters while making connection. There is no way for me to configure row_limit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;poll → state='SUCCEEDED'&lt;/P&gt;&lt;P&gt;Final state: SUCCEEDED&lt;/P&gt;&lt;P&gt;── MANIFEST (excl. schema) ──&lt;BR /&gt;{&lt;BR /&gt;"format": "PROTOBUF_ARRAY",&lt;BR /&gt;"total_chunk_count": 1,&lt;BR /&gt;"chunks": [&lt;BR /&gt;{&lt;BR /&gt;"chunk_index": 0,&lt;BR /&gt;"row_offset": 0,&lt;BR /&gt;"row_count": 32768,&lt;BR /&gt;"byte_count": 1860920&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"total_row_count": 32768,&lt;BR /&gt;"total_byte_count": 1860920,&lt;BR /&gt;"truncated": true&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;── RESULT keys ──&lt;BR /&gt;['chunk_index', 'row_offset', 'row_count', 'data_typed_array']&lt;/P&gt;&lt;P&gt;It's literally giving me a single chunk only (with truncated = True) and there is no way for me to get the further data because chunks are not given to me.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Has anyone encountered this limitation with the SQL MCP Server? Is there a supported way to:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Increase the result row limit?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Configure pagination/chunking?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Retrieve the rows beyond the 32,768-row cutoff?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;&lt;SPAN&gt;Any guidance would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2026 09:28:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/dbsql-mcp-output-limit/m-p/159422#M1871</guid>
      <dc:creator>Manas2000</dc:creator>
      <dc:date>2026-06-17T09:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: DBSQL MCP output limit</title>
      <link>https://community.databricks.com/t5/generative-ai/dbsql-mcp-output-limit/m-p/159845#M1875</link>
      <description>&lt;P&gt;HI &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/237157"&gt;@Manas2000&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This appears to be a Databricks SQL MCP limitation, not a Databricks SQL warehouse limitation.&lt;/P&gt;&lt;P&gt;A hacky workaround might be to manually paginate in SQL, e.g., with `ROW_NUMBER()` or `LIMIT/OFFSET`, and run separate MCP calls for each page.&lt;/P&gt;&lt;P&gt;But candidly for large result extraction, MCP is the wrong tool. You could use the &lt;A href="https://docs.databricks.com/aws/en/dev-tools/sql-execution-tutorial" target="_blank"&gt;Databricks Statement Execution API&lt;/A&gt; directly with chunking or `EXTERNAL_LINKS`.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2026 22:09:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/dbsql-mcp-output-limit/m-p/159845#M1875</guid>
      <dc:creator>frankieseabrook</dc:creator>
      <dc:date>2026-06-18T22:09:17Z</dc:date>
    </item>
  </channel>
</rss>

