Skip to main content
Glama

daemonset_list

List all DaemonSets in a specified Kubernetes namespace to monitor and manage cluster-wide deployments using the k8s-pilot server.

Instructions

List all DaemonSets in a given namespace.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace

Returns: List of DaemonSet basic information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
namespaceYes

Implementation Reference

  • The main handler function for the 'daemonset_list' tool. It lists all DaemonSets in the specified namespace using the Kubernetes AppsV1Api. Decorated with @mcp.tool() for registration and @use_current_context for context management.
    @mcp.tool()
    @use_current_context
    def daemonset_list(context_name: str, namespace: str):
        """
        List all DaemonSets in a given namespace.
    
        Args:
            context_name: The Kubernetes context name
            namespace: The Kubernetes namespace
    
        Returns:
            List of DaemonSet basic information
        """
        apps_v1: AppsV1Api = get_api_clients(context_name)["apps"]
        daemonsets = apps_v1.list_namespaced_daemon_set(namespace)
        result = [{"name": ds.metadata.name} for ds in daemonsets.items]
        return result
  • tools/daemonset.py:8-8 (registration)
    The @mcp.tool() decorator registers the daemonset_list function as an MCP tool.
    @mcp.tool()
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. While it states this is a list operation (implying read-only), it doesn't disclose important behavioral aspects like: whether it requires specific permissions, what 'basic information' includes, if there are rate limits, pagination behavior, or error conditions. The description is minimal beyond stating the core function.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly structured and concise: a clear purpose statement followed by organized Args and Returns sections. Every sentence earns its place with no wasted words, and the information is front-loaded with the core functionality stated first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only list tool with 2 parameters and no output schema, the description is adequate but has gaps. It explains what the tool does and documents parameters, but doesn't describe the return format beyond 'List of DaemonSet basic information' or address behavioral considerations. With no annotations and no output schema, more context about the response structure would be helpful.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description compensates well by explicitly documenting both parameters in the Args section with clear explanations: 'context_name: The Kubernetes context name' and 'namespace: The Kubernetes namespace'. This adds meaningful semantics beyond the bare schema, though it doesn't provide format examples or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'List all DaemonSets in a given namespace' which provides a specific verb ('List') and resource ('DaemonSets') with scope ('in a given namespace'). However, it doesn't explicitly differentiate from sibling tools like 'daemonset_get' or 'list_namespace_resources', which could also retrieve DaemonSet information in different ways.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. With siblings like 'daemonset_get' (for specific DaemonSets), 'list_namespace_resources' (for broader resource listing), and 'pod_list' (for related resources), there's no indication of when this list-focused tool is preferred over other options.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bourbonkk/k8s-pilot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server