Skip to main content
Glama

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
NameRequiredDescriptionDefault
context_nameYes
namespaceYes
nameYes

Implementation Reference

  • 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]}
  • The @mcp.tool() decorator registers the daemonset_get function as an MCP tool.
    @mcp.tool()
  • 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 """

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