Please include parameter descriptions when MCP sends tools to Ollama

With the Model Context Provider integration, I see the packets sent from HA to Ollama are not including the description for each tool parameter (right now, they only include the type of the parameter). The description is being added by other MCP clients like LibreChat, and leads to improved results. Can we please add this “description” field when populating the tools field sent across to Ollama? This is how LibreChat is doing it, i.e. the “inputSchema” from the MCP reference client TypeScript SDK

One use case I’ve run into where this feature in LibreChat noticably helps is to hint to the LLM that the ISO 8601 string the model suggests for populating the parameter must include seconds and also specify a particular timezone offset.

Edit: it looks like this Description is being dropped when it’s converted using “Voluptuous” at this line in the MCP integration

@allenporter

Hi, generally lets not tag people / developers in feature requests in forums. However, this looks like an issue so its reasonable to file in github. It is definitely not working as intended and we do wand descriptions being passed here.

MCP is correctly providing the descriptions to the Home Assistant tools as we have tests for that. I think it would be helpful to file an issue with additional detail like debugging data that shows why you think there is a problem. The tests seem to think both integrations support this file.