Skip to content

[RFE] add "count" parameter to object retrieval tools #967

@thoraxe

Description

@thoraxe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions