Skip to main content
Glama

Prune system

k8s_prune_system
Destructive

Prunes unused Kubernetes system resources to reclaim capacity, with controls for context selection, all-resource cleanup, force, and destructive-action confirmation.

Instructions

Invoke the prune_system operation.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "k8s_prune_system"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo
forceNo
confirmNoExplicitly confirm this destructive operation. Needed only when the client cannot answer a confirmation prompt.
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

D1.5/5.0
Behavior1/5

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

Annotations already declare destructiveHint=true, openWorldHint=true, and readOnlyHint=false; the description adds nothing about scope of deletion, irreversibility, or safety precautions. For a destructive operation, the description carries no behavioral context whatsoever.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single short sentence, but its brevity comes from under-specification rather than discipline; it contains no front-loaded information an agent could act on.

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

Completeness1/5

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

For a destructive, open-world system-prune with four parameters, the definition says nothing about what is removed, whether it is reversible, or how 'all' and 'force' interact with the explicit confirmation flag. Completely inadequate relative to the tool's risk.

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

Parameters2/5

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

The schema documents 2 of 4 parameters (confirm, context) at 50% coverage; the description explains neither those nor the undocumented 'all' and 'force' flags. It adds literally no parameter meaning beyond the schema.

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

Purpose2/5

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

'Invoke the prune_system operation' merely restates the tool name and title with no added verb, resource, or scope. It does not distinguish this from sibling prunes such as k8s_prune_containers or docker_prune_system.

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

Usage Guidelines1/5

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

No when-to-use guidance, no exclusions, and no mention of when pruning system-level resources is appropriate versus the container/image/network/volume prunes listed among siblings.

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

Deploy Server

Other Tools