Skip to main content
Glama
verdi-bridge
by Yin-yao

measure_clock

Measure rising-edge intervals and phase within a specified time window around a target time; requires three observed edges for local clock timing.

Instructions

Measure rising-edge intervals and phase locally, within around_time +/- window. window uses unit; None defaults to 100 ns in any unit. Needs three observed rising edges. Does not establish that a clock is ungated.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "signal": "<signal>",
      "around_time": "<around_time>"
    },
    "name": "measure_clock"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxNo
unitNons
signalYes
windowNo
around_timeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the full behavioral burden. It does disclose two useful traits beyond the name: a hard precondition (three observed rising edges) and an explicit limitation (cannot prove a clock is ungated), but it says nothing about what the measurement returns or how a failed precondition surfaces.

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?

Four short sentences, front-loaded with the core action and scope before defaults and caveats. Slightly telegraphic phrasing ('window uses unit') costs a little readability, but there is no wasted text.

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

Completeness3/5

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

For a five-parameter tool with no annotations, no output schema, and zero schema descriptions, the definition covers the timing semantics well but stops short of describing the signal operand or the max parameter. An agent could call it, but would be guessing on two inputs.

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% for five parameters, so the description has to compensate. It adds real meaning for window (defaults to 100 ns in whatever unit is given), unit, and around_time, but leaves signal and max entirely unexplained in both the schema and the prose.

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?

The description names a concrete verb and resource: 'Measure rising-edge intervals and phase'. It also bounds the operation ('locally, within around_time +/- window'), which separates it from trace-wide tools like count_changes or sample_on_clock without naming a 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?

Usage is only implied by the scoping language ('locals', 'within around_time +/- window') and the precondition that three rising edges must be observed. The closing caveat ('Does not establish that a clock is ungated') tells the agent a limit but not when to pick an alternative tool instead.

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