Skip to main content
Glama

replicaset_get

Retrieve detailed information about a specific Kubernetes ReplicaSet by providing context, namespace, and name parameters to inspect pod replication status.

Instructions

Get details of a specific ReplicaSet.

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

Returns: Detailed information about the ReplicaSet

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
namespaceYes
nameYes

Implementation Reference

  • The replicaset_get tool handler function, which retrieves details of a specific ReplicaSet using the Kubernetes AppsV1Api. Decorated with @mcp.tool() for registration and @use_current_context for context management.
    @mcp.tool()
    @use_current_context
    def replicaset_get(context_name: str, namespace: str, name: str):
        """
        Get details of a specific ReplicaSet.
    
        Args:
            context_name: The Kubernetes context name
            namespace: The Kubernetes namespace
            name: The ReplicaSet name
    
        Returns:
            Detailed information about the ReplicaSet
        """
        apps_v1: AppsV1Api = get_api_clients(context_name)["apps"]
        replicaset = apps_v1.read_namespaced_replica_set(name=name, namespace=namespace)
        return {
            "name": replicaset.metadata.name,
            "replicas": replicaset.status.replicas,
            "labels": replicaset.metadata.labels,
            "containers": [c.image for c in replicaset.spec.template.spec.containers]
        }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool retrieves details but doesn't specify what 'details' include (e.g., status, pods, events), whether it's read-only (implied by 'Get'), error handling, or authentication needs. For a Kubernetes tool with zero annotation coverage, this leaves significant gaps in understanding how the tool behaves beyond basic retrieval.

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 well-structured with a clear purpose statement followed by parameter and return sections. It uses minimal sentences that earn their place by defining the tool and its inputs/outputs. However, the 'Returns' section is vague ('Detailed information'), which slightly reduces efficiency.

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

Completeness3/5

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

Given the tool's moderate complexity (3 required parameters, no output schema, no annotations), the description is somewhat complete but has gaps. It covers the purpose and parameters but lacks details on return values, error cases, and usage context. For a Kubernetes retrieval tool, more behavioral and contextual information would enhance completeness, though the basics are present.

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 includes an 'Args' section that lists and briefly describes the three parameters (context_name, namespace, name), adding meaning beyond the input schema, which has 0% description coverage. However, it doesn't provide examples, format details (e.g., namespace naming conventions), or constraints, so it partially compensates for the schema gap 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 ReplicaSet.' It uses a specific verb ('Get') and resource ('ReplicaSet'), making the action clear. However, it doesn't explicitly differentiate from sibling tools like 'replicaset_list' or 'replicaset_get' (if there were multiple get variants), though the specificity of 'specific ReplicaSet' implies individual retrieval versus listing.

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 'replicaset_list' for listing all ReplicaSets or 'replicaset_get' in contrast to other resource-specific get tools. There's no context on prerequisites, such as needing a valid Kubernetes context or namespace, beyond what the parameters imply.

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