Skip to main content
Glama

Kubernetes MCP Server

get-logs

Retrieve log output from a Kubernetes pod to monitor application behavior, debug issues, and track pod activity. Specify the pod name and optionally set namespace, line count, or enable real-time log streaming.

Instructions

Get logs from a Kubernetes pod

Input Schema

NameRequiredDescriptionDefault
followNoFollow the logs (stream new logs as they come in)
linesNoNumber of lines to retrieve from the end of the logs (default: 100)
namespaceNoThe namespace of the pod (optional, defaults to current context namespace)
podYesThe name of the pod to get logs from

Input Schema (JSON Schema)

{ "properties": { "follow": { "description": "Follow the logs (stream new logs as they come in)", "type": "boolean" }, "lines": { "description": "Number of lines to retrieve from the end of the logs (default: 100)", "type": "number" }, "namespace": { "description": "The namespace of the pod (optional, defaults to current context namespace)", "type": "string" }, "pod": { "description": "The name of the pod to get logs from", "type": "string" } }, "required": [ "pod" ], "type": "object" }

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