Skip to main content
Glama

get_leaks

Read-onlyIdempotent

Identifies processes whose memory, handles, or threads grow steadily over time, reporting rate per hour and start/current values. Use it when resource use creeps upward to spot leaks.

Instructions

Processes whose handles (open files on Linux), private memory or threads keep growing in a straight line: Anabolic samples every process each minute over the last two hours and lists one after ten minutes or more of steady growth, with the rate per hour, where it started and where it is, and a sentence saying so. The usual sign of a leak. Empty until Anabolic has run for ten minutes. Use it when memory or handles creep up over time; get_memory shows who holds the most memory now, get_process one process' counters.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial behavior beyond the read-only annotations: the sampling cadence (every minute), the lookback window (two hours), the detection threshold (ten minutes of steady growth), and the crucial warm-up caveat that results are empty until Anabolic has run ten minutes. It also describes what each result entry contains (rate per hour, start and current value, a sentence).

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?

Front-loads the definition before the mechanics, and every clause (threshold, window, rate, warm-up) carries information. It is slightly dense and runs long for a no-argument tool, with the warm-up caveat buried mid-paragraph rather than surfaced early.

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?

With no output schema and no parameters, the description still tells the agent what each returned row contains and the empty-result condition, plus the ten-minute latency before it becomes useful. Nothing needed to invoke or interpret this tool correctly is missing.

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?

The tool takes no parameters, so there is nothing for the description to disambiguate beyond confirming the call is argument-free; the 100% schema coverage provides no additional burden. Baseline for a zero-parameter tool.

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 resource (processes with monotonically growing handles, private memory, or threads) and a specific operation (sample every minute over two hours, list after ten minutes of steady growth). A single sentence also flags the usual interpretation ('the usual sign of a leak'), so an agent knows exactly what class of answer to expect 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 Guidelines5/5

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

Explicitly states the triggering condition ('when memory or handles creep up over time') and contrasts with two named siblings: get_memory for current top holders and get_process for one process' counters. This is exactly the when-to-use/when-to-use-something-else routing an agent needs.

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