Skip to main content
Glama

monitor_events

Poll for queued system events by draining critical/error/warning logs from watched hosts or one host; clears the queue for the next call.

Instructions

Drain and clear queued system events (critical/error/warning) from all watched hosts or one host; returns immediately, possibly empty -- call it on your own cadence to poll. This is how monitored log events reach the caller: no push exists over stdio MCP.

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

Input Schema

NameRequiredDescriptionDefault
hostNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses that the call is destructive to the queue ("drain and clear"), that it is non-blocking ("returns immediately"), that an empty result is normal, and that no push channel exists. It omits prerequisites such as whether monitoring must first be started via monitor_start, and whether drained events are lost to other consumers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly packed sentences with no filler: the operation and scope come first, then the polling semantics and the rationale. Every clause carries distinct information.

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?

For a one-parameter tool with no annotations and no output schema, the description covers invocation semantics, blocking behavior, and empty-result handling. The main remaining gap is the shape of the returned event records, which the agent must discover at runtime.

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 coverage is 0% for the single optional `host` parameter, so the description must compensate — and it does, stating that events come from "all watched hosts or one host," which implies omitting `host` drains every host. It does not state the expected host identifier format, leaving a small gap.

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?

Specific verb pair ("Drain and clear") plus the exact resource ("queued system events") and scope ("from all watched hosts or one host"). The parenthetical severity levels (critical/error/warning) further pin down what kind of events, so an agent can distinguish this from monitor_list/monitor_status siblings without opening a schema.

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?

Explicitly tells the agent to "call it on your own cadence to poll" and explains why ("no push exists over stdio MCP"), which is the key when-to-use signal. It does not name an alternative tool or state when not to call it, so it falls short of full routing guidance.

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