Skip to main content
Glama

sensor.path

Simulate a head-movement path in a browser page to test interpolation, recentring and gaze-dwell logic that a single static reading cannot exercise.

Instructions

Play a head movement in real time, interpolated smoothly at up to 120 Hz, and return when it finishes: a preset (look-around, nod, spin, hold) relative to a base pose, or keyframes (head yaw/pitch/roll from the pose, or absolute angles). The only way to test smoothing, recentring and gaze-dwell logic, which a single static reading cannot exercise. For a realistic phone add jitter_deg / drift_deg_per_min (Chrome drops deviceorientation changes under 0.1 deg, so a perfectly still virtual phone looks dead) and motion:true to stream matching devicemotion. At most 60 seconds.

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": "sensor.path"
  }
}

Input Schema

NameRequiredDescriptionDefault
hzNoSamples per second, 1-120. Default 60.
poseNoBase pose. Default landscape-left, a phone in a headset.
seedNoNoise seed, so a noisy run replays identically. Default 1.
motionNoAlso stream devicemotion consistent with the path: gravity in device axes and the rotation rate. Default false.
presetNolook-around (yaw sweep), nod (pitch), spin (full turn), or hold (stay on the pose; pair with jitter/drift).
absoluteNo
amplitudeNoDegrees of swing for a preset. Default 45.
keyframesNoPoses at times from the start: a head turn (yaw/pitch/roll, degrees from the base pose; pitch -30 looks down) or absolute angles (a missing one keeps the base pose value). Not both in one frame. Repeat a pose at two times to hold it, e.g. to dwell on a gaze target.
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
jitter_degNoRMS sensor shake added to every sample, 0-5 degrees. Real phones: about 0.02-0.3.
duration_msNoLength of a preset. Default 4000.
drift_deg_per_minNoSlow yaw creep, as an uncorrected gyro has. Real phones: about 0.1-10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only supply readOnlyHint=false and openWorldHint=true; the description adds substantial behavior beyond them: it returns when the movement finishes (blocking semantics), caps runs at 60 seconds, streams at up to 120 Hz, and explains the Chrome <0.1 deg deviceorientation quirk that motivates jitter. That is exactly the kind of operational context an agent cannot get elsewhere.

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?

Front-loaded with the core action and return behavior, then caveats. It is dense but every clause carries information (rate, duration cap, jitter rationale). It is on the long side for a single description, though nothing is filler.

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 13-parameter, no-output-schema tool, the description covers the hard parts: modes (preset/keyframes/absolute), duration limits, realism knobs, and completion semantics. Handle parameters (browser_id, target_id) are left entirely to the schema, which is acceptable given its 92% coverage, but the description does not mention them at all.

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 92%, so the baseline is 3, and the prose genuinely adds meaning: real-phone magnitudes for jitter_deg (0.02-0.3) and drift_deg_per_min (0.1-10), the purpose of motion:true (stream matching devicemotion), and the keyframe idiom 'repeat a pose at two times to hold it'. Minor parameters like hz/pose/seed are left to the schema, which is fine given the coverage.

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?

States a specific verb and resource ('Play a head movement') plus the mechanism ('interpolated smoothly at up to 120 Hz') and the input modes (preset vs keyframes). The line 'which a single static reading cannot exercise' implicitly separates it from the static-reading siblings without needing to open their schemas.

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?

Gives clear context for when to use it: to test smoothing, recentring and gaze-dwell logic, which a static reading cannot exercise, and adds conditional advice (add jitter/drift 'for a realistic phone', motion:true to stream devicemotion). It never names the alternative tool (e.g. sensor.orientation) explicitly or gives an explicit when-not condition.

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

Deploy Server

Other Tools