Skip to main content
Glama

pv_get

Retrieve detailed information about a specific PersistentVolume in Kubernetes clusters managed by k8s-pilot, including configuration and status data for storage resource management.

Instructions

Get details of a specific PersistentVolume.

Args: context_name: The Kubernetes context name name: The PersistentVolume name

Returns: Detailed information about the PersistentVolume

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
context_nameYes
nameYes

Implementation Reference

  • The pv_get tool handler function, registered via @mcp.tool() decorator. Retrieves PersistentVolume details from Kubernetes cluster using CoreV1Api.
    @mcp.tool()
    @use_current_context
    def pv_get(context_name: str, name: str):
        """
        Get details of a specific PersistentVolume.
    
        Args:
            context_name: The Kubernetes context name
            name: The PersistentVolume name
    
        Returns:
            Detailed information about the PersistentVolume
        """
        core_v1: CoreV1Api = get_api_clients(context_name)["core"]
        pv = core_v1.read_persistent_volume(name=name)
        return {
            "name": pv.metadata.name,
            "capacity": pv.spec.capacity,
            "access_modes": pv.spec.access_modes,
            "storage_class": pv.spec.storage_class_name,
            "host_path": pv.spec.host_path.path if pv.spec.host_path else None
        }
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 (implying a read-only operation) but doesn't mention potential side effects, error conditions, authentication needs, rate limits, or the format of the returned information. For a tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

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 well-structured and appropriately sized, with a clear purpose statement followed by separate 'Args' and 'Returns' sections. It avoids unnecessary verbosity, though the 'Returns' section is somewhat vague ('Detailed information about the PersistentVolume'). Every sentence serves a purpose, making it efficient but not perfectly concise.

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 description coverage (0%), the description is incomplete. It covers the basic purpose and parameters but lacks crucial details such as the structure of returned data, error handling, dependencies on other tools, or security considerations. This makes it inadequate for a tool in this context.

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 two parameters ('context_name' and 'name'), adding meaning beyond the input schema, which has 0% description coverage. However, it doesn't provide details like valid formats, examples, or constraints (e.g., what constitutes a valid PersistentVolume name). This partial compensation for the schema gap justifies a baseline score.

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 PersistentVolume.' It uses a specific verb ('Get') and resource ('PersistentVolume'), making the action clear. However, it doesn't explicitly differentiate from sibling tools like 'pv_list' or 'pv_delete' beyond the 'specific' qualifier, which is why it doesn't reach 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 'pv_list' (for listing all PersistentVolumes) or 'pv_delete' (for deletion), nor does it specify prerequisites or contexts for usage. The only implied usage is retrieving details for a known PersistentVolume, but this is minimal guidance.

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