Skip to main content
Glama

describe-configmap

Retrieve detailed information about a specific Kubernetes ConfigMap resource, including its data, metadata, and configuration details for cluster management.

Instructions

Describe details of a Kubernetes configmap

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
configmapYesThe name of the configmap to describe
namespaceNoThe namespace of the configmap (optional, defaults to current context namespace)

Implementation Reference

  • The handler function that implements the core logic for the 'describe-configmap' tool by executing the 'kubectl describe configmap' command with the provided configmap name and optional namespace.
    case "describe-configmap": {
      const { configmap, namespace } = args;
      const nsArg = namespace ? `-n ${namespace}` : "";
      const cmd = `kubectl describe configmap ${configmap} ${nsArg}`;
      const { stdout } = await execAsync(cmd);
      return {
        content: [{ type: "text", text: stdout || "No configmap details found" }]
      };
    }
  • The input schema definition for the 'describe-configmap' tool, including parameters for configmap name (required) and optional namespace.
      name: "describe-configmap",
      description: "Describe details of a Kubernetes configmap",
      inputSchema: {
        type: "object",
        properties: {
          configmap: { 
            type: "string",
            description: "The name of the configmap to describe"
          },
          namespace: { 
            type: "string",
            description: "The namespace of the configmap (optional, defaults to current context namespace)"
          }
        },
        required: ["configmap"]
      }
    },
  • server.js:1392-1394 (registration)
    The tool list registration handler that includes 'describe-configmap' in the list of available tools returned to MCP clients.
    server.setRequestHandler(ListToolsRequestSchema, async () => {
      return { 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/thekaranpargaie/kube-mcp'

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