Skip to main content
Glama

conditions

Checks current memory pressure, leftover agent processes, and human-raised issues before builds, tests, or parallel work; use it to confirm whether a memory alert still applies.

Instructions

What is currently true about this machine: memory pressure, processes left behind by agents that ended, anything the human raised by hand.

You are told about these automatically when they change, so call this only when you want the current state on purpose — before starting a build, a test suite, or a batch of parallel work, or after being told memory is tight and wanting to know whether it still is. mine is your own share: if it is large, the memory the alert is about is yours to release.

Read-only. Conditions are raised by the daemon, which measures, and by the human, who knows things it cannot — not by agents. Anything you want to tell the fleet yourself is a send.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so this is the description's full burden, and it does substantial work: declares 'Read-only', explains that conditions are produced by the daemon and the human rather than agents, and discloses push-on-change semantics. What it leaves thin is the returned shape — only the `mine` field is characterized, and no ordering or volume expectations are given.

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-loaded with the definition, then usage, then provenance — a sensible order, and the deferral to `send` is placed exactly where a confused agent would look. The third paragraph on who raises conditions is the weakest earner, adding provenance detail that is useful but slightly long-winded.

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

Completeness4/5

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

With zero parameters and no output schema, the description must carry the return-value burden, and it largely does by enumerating the three condition categories and the `mine` field. It stops short of describing how conditions are identified or ordered, which an agent reconciling repeated reads would benefit from.

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 zero parameters, which is the baseline-4 case. The description uses its space instead to explain the one meaningful field an agent will see, `mine`, including the actionable interpretation that a large value means the flagged memory is yours to release.

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?

It names the exact resource — 'what is currently true about this machine' — and enumerates its contents (memory pressure, orphaned agent processes, human-raised items). It also draws the line against the nearest sibling: 'Anything you want to tell the fleet yourself is a `send`', and points at `release` for the memory case.

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?

Explicit when-not-to-use ('You are told about these automatically when they change, so call this only when you want the current state on purpose') plus concrete triggering situations: before a build, test suite, or parallel batch, or to re-check a memory alert. It also redirects write-intent users to `send`.

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