Skip to main content
Glama

Create monitor

monitor_create

Create a monitor that watches command, file, or log conditions and returns an ID to wait on until true. Ideal for long-running tasks like builds, deploys, or downloads.

Instructions

Create a background monitor that watches for a condition and settles when it becomes true. Evaluation happens inside the plugin, so never write your own sleep/poll loop. Returns a monitor id; pass it to monitor_wait to pause until the condition holds. Use this for anything long-running: cluster jobs, builds, deploys, downloads, servers coming up. Installed condition types: command, file, log.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoHuman-readable label, e.g. 'slurm job 12345'.
pollNoOverride the probe schedule. Event-driven conditions (file, log) still react immediately via filesystem events; this tunes the periodic safety check behind them.
conditionYes
timeout_secondsNoMonitor moves to state 'timeout' if unresolved after this long. Default 24h.
Behavior4/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It reveals key traits: evaluation happens inside the plugin, it returns a monitor id, and it is a background operation. It warns against manual polling and points to a companion tool. However, it does not describe lifecycle aspects like timeout behavior, failure states, or how to cancel, which would add further transparency.

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?

The description is four sentences, front-loaded with the core purpose, and every sentence earns its place. It avoids fluff and clearly communicates the primary behavior, the return value, the companion tool, and the intended use cases.

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 create tool with nested condition objects and no output schema, the description adequately covers the return value (monitor id) and links to the next step (monitor_wait). It mentions the supported condition types and long-running scenarios. It could mention status/cancel tools or lifecycle states, but the core usage is well covered.

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

Parameters3/5

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

Schema description coverage is 75%, and the schema already provides detailed descriptions for condition variants and timeout_seconds. The description only adds 'Installed condition types: command, file, log,' which is already present in the schema. Thus the description adds minimal value beyond the structured schema, so a baseline 3 is appropriate.

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's function: 'Create a background monitor that watches for a condition and settles when it becomes true.' It specifies the resource (monitor), the action (create), and scopes it to long-running tasks. It also distinguishes from siblings by explicitly mentioning monitor_wait and listing supported condition types (command, file, log).

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 gives concrete usage context: 'Use this for anything long-running: cluster jobs, builds, deploys, downloads, servers coming up.' It also provides an explicit workflow ('pass it to monitor_wait') and a strong directive ('never write your own sleep/poll loop'). It doesn't explicitly name alternatives like monitor_run or exclude cases, but the guidance is clear and actionable.

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/naowalrahman/codex-monitor'

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