Skip to main content
Glama
kube-sentinel-mcp
by ekrmcakir

k8s_get_resource_metrics

Fetch a pod's CPU and memory metrics, requests, limits, and utilization percentages to diagnose resource pressure and capacity issues.

Instructions

Fetch CPU and Memory metrics, requests, limits, and utilization percentages for a pod.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pod_name": "<pod_name>"
    },
    "name": "k8s_get_resource_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
pod_nameYes
namespaceNodefault

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Fetch' implies a read, but it says nothing about metrics freshness/instant-vs-range semantics, whether the metrics-server must be available, what happens if metrics are missing, or permission requirements — all material for a metrics 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?

A single front-loaded sentence with no filler; the returned data types are enumerated efficiently. It is appropriately sized, though the brevity is partly under-specification rather than true economy.

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?

An output schema exists, so the description need not explain return values, and enumerating them is somewhat redundant. With no annotations and 0% schema coverage, the definition should still say more about namespace scoping and metric availability caveats than it does.

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?

Schema description coverage is 0%, so neither parameter is documented structurally beyond its type and title. The description mentions only that the target is 'a pod', adding no meaning about pod_name format or what namespace scoping does, so it fails to compensate for the coverage gap.

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

Purpose4/5

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

States a specific verb ('Fetch') and resource ('CPU and Memory metrics, requests, limits, and utilization percentages for a pod'), so the agent knows exactly what data comes back. It does not, however, distinguish itself from the sibling k8s_get_pod_diagnostics, which plausibly returns overlapping pod state.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no named alternative. The agent is left to infer whether this or k8s_get_pod_diagnostics should be preferred for a metric-related question, and nothing indicates prerequisites such as the pod needing to be running.

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