daemonset_get
Retrieve detailed information about a specific Kubernetes DaemonSet by providing context, namespace, and name parameters to inspect deployment configurations.
Instructions
Get details of a specific DaemonSet.
Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name
Returns: Detailed information about the DaemonSet
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_name | Yes | ||
| namespace | Yes | ||
| name | Yes |
Implementation Reference
- tools/daemonset.py:59-75 (handler)The daemonset_get tool handler function. Decorated with @mcp.tool() which likely handles registration. Retrieves DaemonSet details from Kubernetes API using AppsV1Api.@mcp.tool() @use_current_context def daemonset_get(context_name: str, namespace: str, name: str): """ Get details of a specific DaemonSet. Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name Returns: Detailed information about the DaemonSet """ apps_v1: AppsV1Api = get_api_clients(context_name)["apps"] daemonset = apps_v1.read_namespaced_daemon_set(name=name, namespace=namespace) return {"name": daemonset.metadata.name, "labels": daemonset.metadata.labels, "containers": [c.image for c in daemonset.spec.template.spec.containers]}
- tools/daemonset.py:59-59 (registration)The @mcp.tool() decorator registers the daemonset_get function as an MCP tool.@mcp.tool()
- tools/daemonset.py:61-72 (schema)Input schema defined by function parameters with type hints and docstring describing args and return value.def daemonset_get(context_name: str, namespace: str, name: str): """ Get details of a specific DaemonSet. Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The DaemonSet name Returns: Detailed information about the DaemonSet """