Skip to main content
Glama

sensor.motion

Simulate device motion events with acceleration and rotation rate values to trigger shake detection, step counters, and accelerometer or gyroscope handlers in a page.

Instructions

Feed devicemotion: acceleration (m/s^2, gravity removed), acceleration_including_gravity (m/s^2) and rotation_rate (rad/s), each as {x,y,z}. For shake detection, step counters and anything reading the accelerometer or gyroscope rate.

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.motion"
  }
}

Input Schema

NameRequiredDescriptionDefault
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
accelerationNo
rotation_rateNo
acceleration_including_gravityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already disclose readOnlyHint=false and openWorldHint=true, so the agent knows this injects data rather than reading it. The description usefully adds that acceleration has gravity removed and that rotation_rate is in rad/s, but it never says whether the values dispatch a single event or persist as sensor state, nor whether repeated calls overwrite prior values.

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 dense sentences, front-loaded with the resource and the payload shape before the use cases. Every clause contributes: units, object shape, and application scenarios with no 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 nested-object sensor-injection tool with no output schema, the description covers the payload well enough to invoke it correctly. The remaining gaps - handle semantics and persistence/overwrite behavior - are modest but real for a stateful open-world mutation.

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 40%, below the point where the schema alone carries the load, and the description partially compensates by giving units and the gravity-removal semantics for the three motion objects. It still says nothing about target_id/browser_id handles, and it never notes that all five properties are actually optional, which the agent must learn from the schema.

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 opens with a specific verb+resource ("Feed devicemotion") and enumerates the exact channels and units supplied, so an agent knows precisely what is being submitted. It does not name the closest sibling (sensor.orientation) to draw the orientation-vs-motion boundary, which keeps it from a 5.

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?

It gives positive use cases ("shake detection, step counters and anything reading the accelerometer or gyroscope rate") that clarify the intended context. However, it offers no when-not guidance and no direction toward alternatives such as sensor.orientation for deviceorientation events, leaving the choice between sensor tools implicit.

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