There are times when a user may simply want to know how many of an object exist. Without some kind of "count" parameter on the tools, the LLM has to either do math, or have access to a "calculator" or some other tool to send a list to get it counted.
If the object retrieval tools had a "count" parameter where, when true, the retrieval simply returns a number, it would fix quite a few use cases.
For example:
"how many pods are in my namespace blah?"
Today, the LLM would list the pods and then (hopefully) count them correctly.
With a count parameter on the list pods tool, we would simply return "5" instead of a big yaml/json blob.
There are times when a user may simply want to know how many of an object exist. Without some kind of "count" parameter on the tools, the LLM has to either do math, or have access to a "calculator" or some other tool to send a list to get it counted.
If the object retrieval tools had a "count" parameter where, when true, the retrieval simply returns a number, it would fix quite a few use cases.
For example:
"how many pods are in my namespace blah?"
Today, the LLM would list the pods and then (hopefully) count them correctly.
With a count parameter on the list pods tool, we would simply return "5" instead of a big yaml/json blob.