Skip to main content
Glama

daemonset_list

Retrieve and list all DaemonSets within a specified Kubernetes namespace using context_name. Simplify resource monitoring and management in multi-cluster environments.

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 daemonset_list tool handler: lists DaemonSets in the specified namespace using the Kubernetes API. Registered via @mcp.tool() decorator.
    @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

Other Tools

Related 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