AI chatbot response limited to 10 items when querying config entities like taxonomy vocabularies
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3539071. -->
Reported by: [sijumpk](https://www.drupal.org/user/389053)
Related to !168
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>
When using the AI chatbot (via <strong>Drupal CMS Assistant</strong> setup), queries that involve listing or counting configuration entities—such as taxonomy vocabularies—are limited to 10 results, even when more items exist in the system.
</p>
<p></p>
This leads to incorrect answers and truncated lists from the chatbot. Attaching screen recording to demonstrate the issue.
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Install Drupal CMS and drupal_cms_ai recipe.</li>
<li>Enable the <strong>Drupal Agent Chatbot</strong> with AI Assistant as <strong>Drupal CMS Assistant</strong>.</li>
<li>Create <strong>11 (or more) taxonomy vocabularies</strong>.</li>
<li>Ask the chatbot: <code>How many taxonomy vocabularies are there in this website?</code></li>
<li>Observe the result: the chatbot lists only 10 vocabularies and reports the count as 10.</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>
Fix the context-setting logic in the plugin to ensure that a value of <code>0</code> for the <code>amount</code> context is not treated as empty.
</p>
<p>
Currently, when <code>amount</code> is <code>0</code>, it is mistakenly treated as an empty value and therefore skipped. As a result, the default value <strong>10</strong> is used (as defined in the context field definition), which limits the query output.
</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue