Tools Function Input should give back an empty json schema skeleton
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3567784. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !1120 !1119
>>>
<p>[Tracker]<br>
<strong>Update Summary: </strong>[One-line status update for stakeholders]<br>
<strong>Short Description: </strong>[One-line issue summary for stakeholders]<br>
<strong>Check-in Date: </strong>MM/DD/YYYY<br>
<em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br>
[/Tracker]</p>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Currently the Tool Function Input doesn't give back a parameter if its missing. We have seen in Mistral (<span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/ai_provider_mistral/issues/3567467" title="Status: Closed (fixed)">#3567467: Mistral provider fails with Canvas AI when tool has no parameters</a></span>) that this fails whenever its empty.</p>
<p>Because this will change for all providers, and we can't be 100% certain this doesn't cause BC. This is set to 2.0.x even if its a bug, more than a function.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add so the function always returns parameters with a json schema skeleton.</p>
issue