Skip to content

[Feature Request] Add statusOnly parameter to resources_get to reduce context usage #876

@pixelsoccupied

Description

@pixelsoccupied

When diagnosing issues with Kubernetes resources, I typically only need the .status section (conditions, phase, readiness, error messages). The current resources_get tool returns the entire resource, which can be very large — especially for CRDs/operators (e.g., ClusterVersion, ArgoCD Application, MachineSet) where .spec, .metadata.managedFields, and annotations can be hundreds of lines.

This wastes LLM context window tokens on information that isn't needed for diagnosis, and can cause truncation on large CRs.

Happy to open up a PR

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