Skip to main content
Glama

create_namespace

Destructive

Create a Kubernetes namespace on a configured target; use dry-run to preview changes before creation.

Instructions

[WRITE][risk=medium] Create a namespace. Inverse: delete_namespace.

Pass dry_run=True to preview without creating.

Args: name: Namespace name to create. dry_run: If True, preview without creating. target: k8s target name from config.

Input Schema

NameRequiredDescriptionDefault
nameYes
targetNo
dry_runNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false, so the safety profile is covered; the description adds the dry-run preview behavior, a medium risk rating, and the inverse-tool mapping, which are not in the annotations. It omits what happens on re-creation/name conflict (the annotation says non-idempotent but the text never explains the failure mode) and permission requirements.

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?

Front-loaded with the operation class, relationship, and the dry-run tip, then a compact Args block — every section is scannable. Minor waste: the dry_run preview is stated twice (once in prose, once in the Args block).

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?

For a mutating create tool with no output schema, the description leaves the agent without the post-call picture: no statement of whether an existing namespace causes an error or a no-op, and no indication of what success returns. The dry-run coverage is good, but the conflict/return behavior is a real gap.

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

Parameters4/5

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

Schema coverage is 0%, and the description compensates by documenting all three parameters, notably 'target: k8s target name from config' which gives the schema's bare 'Target' field real meaning. 'name' and 'dry_run' definitions are adequate though thin ('dry_run' is repeated verbatim from the intro sentence).

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?

Specific verb+resource ('Create a namespace') plus the explicit inverse relationship to delete_namespace, so an agent can immediately separate this from the destroy tool in the sibling list. It also carries a [WRITE] marker that signals the operation class up front.

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?

Tells the agent when to choose the non-destructive path ('Pass dry_run=True to preview without creating') and points at the inverse tool for the opposite operation. It stops short of stating prerequisites or when-not conditions (e.g. what to do if the namespace already exists, how to pick a target).

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