Skip to main content
Glama

delete_pod

Destructive

Delete a Kubernetes pod by name and namespace; set dry_run=True to preview the change before removal. Use for pod cleanup when a controller may recreate it.

Instructions

[WRITE][risk=medium] Delete a pod. No undo — a controller usually recreates it.

Pass dry_run=True to preview without deleting.

Args: name: Pod name. namespace: Namespace; omit for the target's default namespace. dry_run: If True, preview without deleting. target: k8s target name from config.

Input Schema

NameRequiredDescriptionDefault
nameYes
targetNo
dry_runNo
namespaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already carry destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is partly covered. The description goes beyond them by tagging '[WRITE][risk=medium]' and clarifying that deletion is not permanent because a controller usually recreates the pod, which is real context an agent needs. It stops short of permission/auth or return-value details.

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 write/risk tag and core action, then a structured Args block. Every sentence earns its place; the only minor redundancy is dry_run appearing both in prose and the Args list, which is acceptable for scannability.

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?

For a 4-parameter destructive tool with no output schema and 0% schema coverage, the description covers the action, the irreversibility caveat, the preview mechanism, and every parameter. It omits only permission requirements and return/pagination behavior, which are minor here.

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 description coverage is 0%, so the description carries the full param burden, and it documents all four: name, namespace ('omit for the target's default namespace'), dry_run, and target ('k8s target name from config'). That meaningfully compensates for the empty schema, though the per-param text is terse.

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?

States a specific verb and resource ('Delete a pod') and adds a distinguishing behavioral note ('No undo — a controller usually recreates it'). An agent can tell this apart from delete_job or delete_deployment without opening either schema.

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

Usage Guidelines3/5

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

The description gives a preview workflow ('Pass dry_run=True to preview without deleting') which is useful, but it offers no guidance on when to delete a pod versus alternatives like drain_node or rollout_restart_deployment, nor any prerequisite or exclusion conditions.

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