Skip to main content
Glama
AIops-tools

container-host-aiops

by AIops-tools

resource_pressure_analysis

Analyze container CPU and memory pressure against limits. Identify containers near or over thresholds and get recommendations to raise limits or scale out.

Instructions

[READ] Rank containers by CPU/memory pressure vs their limits + recommend.

Pulls a one-shot CPU%/mem% sample for each running container (or uses injected 'samples'), flags each 'near' (>= 80% of a threshold) or 'over' (>= threshold), and attaches a recommendation (raise a limit, set a missing memory limit, scale out). Ranks worst-first by the higher of CPU%/mem%. Every row carries its numbers.

Args: cpu_threshold: CPU% at/above which a container is over pressure (default 80). mem_threshold: Memory% at/above which a container is over pressure (default 80). samples: Injected rows {id, name, cpuPercent, memPercent, memUsageBytes, memLimitBytes}; skips live collection. target: Target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
samplesNo
cpu_thresholdNo
mem_thresholdNo
Behavior4/5

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

The description discloses the read-only nature with '[READ]' and details the process: one-shot sample, flagging thresholds, and attaching recommendations. With no annotations provided, the description carries full burden and meets it well, though it could mention whether it modifies state (it doesn't).

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 a summary line, a detailed behavior paragraph, and a clear Args list. It is concise but not overly terse, though the second paragraph could be slightly tighter.

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?

Given no output schema, the description only vaguely mentions 'Every row carries its numbers' and recommendations. It lacks explicit output fields or format, which is a gap for a tool that produces ranked, structured results.

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%, but the description's Args section explains all four parameters (cpu_threshold, mem_threshold, samples, target) with defaults and usage, adding 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 ranks containers by CPU and memory pressure against thresholds and provides recommendations. It specifies the verb (rank, recommend) and resource (containers), and distinguishes itself from sibling tools like container_stats by focusing on pressure analysis with recommendations.

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 implies usage for one-shot pressure analysis but does not explicitly contrast with alternatives (e.g., container_stats for live stats, container_logs for history). It provides no when-not-to-use guidance, so the agent must infer usage context.

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/AIops-tools/Container-Host-AIops'

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