Skip to main content
Glama

ingress_get

Retrieve detailed information about a specific Kubernetes Ingress resource, including configuration and routing rules, to monitor and manage external access to services in your cluster.

Instructions

Get details of a specific Ingress.

Args: context_name: The Kubernetes context name namespace: The Kubernetes namespace name: The Ingress name

Returns: Detailed information about the Ingress

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
namespaceYes
nameYes

Implementation Reference

  • The core handler function for the 'ingress_get' MCP tool. It fetches and returns detailed information (name, host, paths) about a specific Kubernetes Ingress resource in the given namespace using the NetworkingV1Api.
    @mcp.tool()
    @use_current_context
    def ingress_get(context_name: str, namespace: str, name: str):
        """
        Get details of a specific Ingress.
    
        Args:
            context_name: The Kubernetes context name
            namespace: The Kubernetes namespace
            name: The Ingress name
    
        Returns:
            Detailed information about the Ingress
        """
        networking_v1: NetworkingV1Api = get_api_clients(context_name)["networking"]
        ingress = networking_v1.read_namespaced_ingress(name=name, namespace=namespace)
        return {
            "name": ingress.metadata.name,
            "host": ingress.spec.rules[0].host if ingress.spec.rules else None,
            "paths": [
                {
                    "path": path.path,
                    "service_name": path.backend.service.name,
                    "service_port": path.backend.service.port.number
                }
                for path in ingress.spec.rules[0].http.paths
            ] if ingress.spec.rules else []
        }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states this is a read operation ('Get details'), implying it's non-destructive, but doesn't cover critical aspects like authentication requirements, error handling, rate limits, or what 'Detailed information' entails. This is a significant gap for a tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded, with the core purpose stated first. The Args and Returns sections are structured clearly, though the 'Returns' line is vague. There's minimal waste, but the lack of richer context prevents a perfect score.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of Kubernetes operations, no annotations, no output schema, and low schema coverage, the description is incomplete. It doesn't explain the return format, error cases, or dependencies, leaving the agent under-informed for a tool that interacts with cluster resources.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description lists all three parameters (context_name, namespace, name) with brief explanations, adding meaning beyond the schema's 0% coverage. However, it doesn't elaborate on format constraints, valid values, or examples, leaving the agent with basic but incomplete semantic guidance. Given the low schema coverage, this partially compensates but not fully.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get details of a specific Ingress.' It uses a specific verb ('Get') and resource ('Ingress'), making the function unambiguous. However, it doesn't explicitly differentiate from sibling tools like 'ingress_list' or 'ingress_update,' which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'ingress_list' for listing multiple ingresses or 'ingress_update' for modifications, nor does it specify prerequisites or exclusions. This leaves the agent without contextual usage information.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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