Skip to main content
Glama
chaandannn

nable (finops-mcp)

get_workload_costs

Retrieve detailed Kubernetes workload cost breakdowns with efficiency grades. Filter by namespace or workload type, sort by cost, waste, or efficiency.

Instructions

Detailed Kubernetes workload cost breakdown with efficiency grades. Supports filtering by namespace and workload kind, sorting by cost or waste.

Args: namespace: Filter to a specific namespace (e.g. "production") kind: Filter by workload type: Deployment, StatefulSet, DaemonSet, Job sort_by: "cost" (default) | "waste" | "efficiency" (worst first) context: Kubeconfig context (default: current context) limit: Max workloads returned (default 50)

Each workload includes: cost, waste, CPU/memory requests vs actual usage, efficiency grade (A-F), and pod labels for attribution.

Examples: - "Show me all workload costs in the production namespace" - "Which Deployments are wasting the most money?" - "Show me StatefulSet costs sorted by waste" - "What are the least efficient workloads in the cluster?" - "List all DaemonSet costs" - "Show me every workload cost sorted by efficiency"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo
limitNo
contextNo
sort_byNocost
namespaceNo
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the input parameters, default behavior (current kubeconfig context, limit 50), and the output structure (each workload includes cost, waste, CPU/memory usage, efficiency grade, pod labels). It lacks mention of read-only or side effects, but for a read tool this is sufficient. It could be strengthened by stating it queries the cluster and is safe to run.

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?

The description is well-structured with sections for Args, explanation of return data, and examples. It is slightly verbose but every sentence adds value. The examples are particularly helpful. A minor reduction for not being more concise, but still effective.

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?

Given the tool has 5 parameters with no schema descriptions, no annotations, and no output schema, the description is very complete. It covers all parameters with defaults and allowed values, explains the return data in detail, and provides concrete usage examples. It also mentions the kubeconfig context for environment. This leaves little ambiguity for an AI agent.

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

Parameters5/5

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

The input schema has zero description coverage for all 5 parameters. The description compensates fully by providing clear definitions, default values, allowed values (for sort_by: cost, waste, efficiency; for kind: Deployment, StatefulSet, DaemonSet, Job), and usage context (e.g., namespace as filter, context as kubeconfig). This adds significant meaning beyond the raw schema.

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?

The description clearly states the tool provides a detailed Kubernetes workload cost breakdown with efficiency grades. It specifies filtering by namespace and kind, sorting options, and the data included (cost, waste, CPU/memory, efficiency grade). This distinguishes it from sibling tools like get_kubernetes_costs, which likely give aggregate cluster costs.

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?

The description explains when to use the tool via examples like 'Show me all workload costs in the production namespace' and which workloads to filter by. It does not explicitly state when not to use it or list alternatives, but the context of sibling names (e.g., get_kubernetes_costs) implies this is for granular workload detail. A clear usage guidance is provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chaandannn/finopsmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server