[GH-ISSUE #10444] Tool support indicated in the show api #68926

Closed
opened 2026-05-04 15:51:42 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @wisouder on GitHub (Apr 28, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10444

Good day, in the /api/chat endpoint, when attempting to submit a query that includes tools, we get the following:
{"error":"registry.ollama.ai/library/codellama:latest does not support tools"}

it would be great if there were a key in the show api that told us whether the model supported tools or not, this way we can prevent from submitting tools requests to a model that doesn't support it

EXAMPLE
curl http://localhost:11434/api/chat -X POST -H "Content-Type: application/json" -d '{
"model": "codellama:latest",
"prompt": "What is the current weather",
"tools": [
{
"type": "function",
"function": {
"name": "get_current_weather_by_location",
"description": "Get detailed weather conditions by US postal code or city name.",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "US postal code (ZIP) or city name."
}
},
"required": ["location"]
}
}
}
]
}'

Originally created by @wisouder on GitHub (Apr 28, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10444 Good day, in the /api/chat endpoint, when attempting to submit a query that includes tools, we get the following: {"error":"registry.ollama.ai/library/codellama:latest does not support tools"} it would be great if there were a key in the show api that told us whether the model supported tools or not, this way we can prevent from submitting tools requests to a model that doesn't support it EXAMPLE curl http://localhost:11434/api/chat -X POST -H "Content-Type: application/json" -d '{ "model": "codellama:latest", "prompt": "What is the current weather", "tools": [ { "type": "function", "function": { "name": "get_current_weather_by_location", "description": "Get detailed weather conditions by US postal code or city name.", "parameters": { "type": "object", "properties": { "location": { "type": "string", "description": "US postal code (ZIP) or city name." } }, "required": ["location"] } } } ] }'
GiteaMirror added the feature request label 2026-05-04 15:51:42 -05:00
Author
Owner

@rick-github commented on GitHub (Apr 28, 2025):

$ curl -s localhost:11434/api/show -d '{"model":"qwen2.5:0.5b"}' | jq .capabilities
[
  "completion",
  "tools"
]
<!-- gh-comment-id:2836308271 --> @rick-github commented on GitHub (Apr 28, 2025): ``` $ curl -s localhost:11434/api/show -d '{"model":"qwen2.5:0.5b"}' | jq .capabilities [ "completion", "tools" ] ```
Author
Owner

@wisouder commented on GitHub (Apr 28, 2025):

Thank you for that @rick-github however when attempting to run on my side, i get null

I am running ollama version is 0.6.2

curl -s localhost:11434/api/show -d '{"model":"qwen2.5:0.5b"}' | jq .capabilities
null

I also attempted to run it without jq and grep out anything that resembled your output but wasn't able to make that work

NOTE: I also tried this command on the other models installed on my system and they all return null

<!-- gh-comment-id:2836399910 --> @wisouder commented on GitHub (Apr 28, 2025): Thank you for that @rick-github however when attempting to run on my side, i get null I am running ollama version is 0.6.2 curl -s localhost:11434/api/show -d '{"model":"qwen2.5:0.5b"}' | jq .capabilities null I also attempted to run it without jq and grep out anything that resembled your output but wasn't able to make that work NOTE: I also tried this command on the other models installed on my system and they all return null
Author
Owner

@rick-github commented on GitHub (Apr 28, 2025):

Upgrade to 0.6.4 or newer.

<!-- gh-comment-id:2836412125 --> @rick-github commented on GitHub (Apr 28, 2025): Upgrade to 0.6.4 or newer.
Author
Owner

@wisouder commented on GitHub (Apr 28, 2025):

beautiful, upgraded and I now see the information you have illustrated, apologies and thank you for the direction!

<!-- gh-comment-id:2836434751 --> @wisouder commented on GitHub (Apr 28, 2025): beautiful, upgraded and I now see the information you have illustrated, apologies and thank you for the direction!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#68926