Skip to main content
Glama

list_cronjobs

List Kubernetes CronJobs across namespaces with schedule, effective timezone, health, next and last runs, and last success, sorted worst first so you can triage failures before drilling into one.

Instructions

Overview of every CronJob (one namespace or all), one compact row each: schedule, effective timezone, health (failing, stalled, never-succeeded, degraded, overrunning, at-risk, healthy, suspended), next run, last scheduled run, last success and last result. Worst first. Use this to see what exists before drilling into one CronJob.

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": "list_cronjobs"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoWindow for judging 'no recent success'
limitNoMax rows to return
namespaceNoNamespace to list; omit for all namespaces
include_suspendedNoInclude suspended CronJobs in the rows (they are always counted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does substantial work: it declares the compact-row shape, the worst-first ordering, the full health taxonomy, and the effective timezone concept. It does not state that this is a read-only listing, nor mention truncation at the limit default of 200, which matters for a list tool that could silently cut results.

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?

Two sentences, front-loaded with the resource and scope before the row contents and the usage hint. The long parenthetical health enumeration is dense but each entry is decision-relevant, so little is wasted; the sentence could have been split for scannability.

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

Completeness5/5

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

No output schema exists, and the description compensates by spelling out every returned column, including the ordering rule. Combined with the fully documented input schema, an agent has enough to call it correctly and interpret the response.

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?

Schema description coverage is 100%, so all four parameters are already documented, and the description only restates the namespace scope ("one namespace or all"). It adds no syntax, format, or interaction detail (e.g., how days interacts with the health verdicts) beyond what the schema provides, so the baseline 3 applies.

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?

Names a specific verb and resource (overview of every CronJob), scopes it (one namespace or all), and enumerates the exact row contents: schedule, effective timezone, health states, next/last run, last success/result. The closing sentence separates it from the drill-down siblings such as get_cronjob_status, so an agent can pick it without opening the schema.

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?

"Use this to see what exists before drilling into one CronJob" gives clear when-to-use context and implicitly routes to the single-CronJob sibling for detail. It also signals triage intent via "Worst first." It stops short of naming an explicit alternative or stating when not to use it.

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