Skip to main content
Glama

watch

Read-only

Samples variables over time while the chip runs to collect statistics and detect rule violations; stops when a specified condition becomes true.

Instructions

Lấy mẫu biến theo thời gian khi chip chạy: thống kê, vi phạm luật; until dừng khi điều kiện đúng.

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

Input Schema

NameRequiredDescriptionDefault
exprsNo
groupNo
untilNo
duration_msNo
interval_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds real context beyond that: sampling happens continuously over time during execution, yields statistics/violation info, and can terminate early via `until`. It does not mention overhead, blocking, or output shape, so it stays at a 3.

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?

A single compact, front-loaded sentence with no filler. The semicolon-joined clauses are dense but readable; the terseness is bought at the cost of parameter detail rather than wasted words.

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

Completeness2/5

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

For a 5-parameter tool with no output schema and zero schema coverage, the description covers one parameter and one behavioral trait. An agent still cannot confidently supply expressions, grouping, sampling interval, or duration.

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

Parameters2/5

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

Schema description coverage is 0% across 5 parameters, so the description must compensate, and it explains only `until`. The core inputs (exprs, group, duration_ms, interval_ms) get no meaning, units, or defaults from the text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific action and resource: sampling variables over time while the chip runs, producing statistics and rule-violation data. That distinguishes it from static reads like read_vars, though it does not name any sibling explicitly.

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 `until` clause's stop condition gives implicit guidance on one usage mode (run until a condition holds), and 'khi chip chạy' implies the target must be running. But there is no explicit when-to-use vs. alternatives such as read_vars, recorder, or snapshot.

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