Skip to main content
Glama
mmpyro

vcluster-mcp

by mmpyro

set_namespace_annotation

Create or update an annotation on a Kubernetes namespace to store metadata such as descriptions, links, or configuration data.

Instructions

Create or update an annotation on a namespace.

This function creates a new annotation or updates an existing annotation on a Kubernetes namespace. Annotations are key-value pairs used for storing non-identifying metadata such as descriptions, links, or configuration data.

Args: namespace: The name of the namespace to annotate. key: The annotation key to set. value: The annotation value to assign. kubeconfig_path: Optional path to a kubeconfig file. If not provided, the default kubeconfig from the environment will be used.

Returns: Union[bool, str]: True on success, or error object if failed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
valueYes
namespaceYes
kubeconfig_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that it creates/updates annotations, explains the kubeconfig fallback behavior, and states the return type (True on success or an error object). It doesn't mention permissions or idempotency, but the information given is sufficient for a simple mutation tool.

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 with a clear main sentence, a brief explanation of annotations, an Args list, and a Returns note. It is slightly verbose with the generic definition of annotations, but every element earns its place and the key information is front-loaded.

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

Completeness4/5

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

The description covers the tool's purpose, parameters, kubeconfig behavior, and return value. It does not specify error object details or whether the namespace must exist, but the output schema and simplicity of the operation make this acceptable. The description is complete enough for an agent to invoke the tool correctly.

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

Parameters5/5

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

Schema description coverage is 0%, but the description compensates fully with an Args section that explains each parameter: namespace, key, value, and kubeconfig_path. This adds significant meaning beyond the schema's bare type/required definitions.

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

Purpose5/5

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

The description states 'Create or update an annotation on a namespace' with a specific verb and resource. It distinguishes itself from sibling tools like get_namespace_annotations and set_namespace_label by focusing on annotation write operations for namespaces.

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

Usage Guidelines4/5

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

The description clearly indicates the operation is for creating or updating namespace annotations, which implies when to use it. It doesn't explicitly mention alternatives or exclusions, but the context is obvious given the sibling tools (get/delete annotations). The lack of explicit when-not guidance slightly lowers the score.

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/mmpyro/vcluster-mcp'

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