Skip to main content
Glama

cw_latency

Measures per-operation latency for Cakewalk SONAR control, including bridge round trips, menu commands, MIDI sends, and plugin reads; skips slow plugin-read stage by default to avoid timeouts.

Instructions

Per-operation latency profile: bridge round trips, menu commands, MIDI sends, plugin reads. The plugin-read stage is the slow one, so it is skipped by default for the same reason cw_benchmark is — a bare call must return, not time out.

Input Schema

NameRequiredDescriptionDefault
includePluginReadsNoInclude the plugin-inventory stage. Adds 10s+; skipped by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose default behavior and the timeout rationale for skipping the plugin-read stage. However, it never states whether profiling 'MIDI sends' actually transmits MIDI (a side-effect question for a diagnostic tool) or whether the operation is safe and non-destructive.

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 sentences, front-loaded with what is profiled and immediately followed by the one decision an agent must make. No filler and no repetition of the parameter name.

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 single-optional-parameter diagnostic with no output schema, the description covers purpose and the one behavioral trap (timeout). It is slightly short on what the returned latency figures look like, but an agent can call it correctly from what is here.

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 coverage is 100% and the parameter already documents 'Adds 10s+; skipped by default.' The description reinforces which stage is slow and why it is off, but adds no syntax or interaction detail beyond the schema, so the baseline 3 applies.

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?

Names the resource precisely — a per-operation latency profile covering bridge round trips, menu commands, MIDI sends, and plugin reads — so the agent knows this measures timing, not state. It only indirectly differentiates itself from cw_benchmark by referencing it as an analogy rather than stating how the two split the workload.

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 default decision is well covered: plugin reads are off unless explicitly requested, with the reason given. But there is no explicit guidance on when to reach for cw_latency versus the many sibling diagnostics (cw_benchmark, cw_timing, cw_status, cw_doctor), leaving the choice to inference.

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