Skip to main content
Glama

camera_pan

Idempotent

Pans the document to center a selected element without zooming, so you can follow action across the page. Call camera_reset to restore normal view.

Instructions

[Cinematic Engine] Pan the camera to center on an element.

Translates the document to center the target element without zooming, useful for following action across the page.

Args: selector: CSS selector for the element to center on duration_ms: Animation duration in milliseconds

Returns: {"success": True, "data": {"target": "selector"}}

Note: Call camera_reset() to return to normal view.

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": {
      "selector": "<selector>"
    },
    "name": "camera_pan"
  }
}

Input Schema

NameRequiredDescriptionDefault
selectorYes
duration_msNo

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare idempotent=true, destructive=false, and readOnlyHint=false, so the safety profile is covered; the description adds the key behavioral facts that the viewport is translated (not zoomed) and that camera_reset() is required to undo it. Missing is whether the call resolves after the animation completes, which matters for a duration_ms-driven action.

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?

Purpose is front-loaded in the first line, followed by one clarifying sentence, compact arg docs, a return line, and a trailing note. Nothing is padded, and the reset note is placed where an agent will see it last before acting.

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 simple two-parameter viewport tool with an output schema supplied and annotations covering safety, the description covers what an agent needs to call it correctly. The only real gap is timing/synchronization behavior around duration_ms, which is minor at this complexity.

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 description coverage is 0%, so the description carries the full burden, and it does document both parameters meaningfully: selector as the CSS selector for the element to center on, and duration_ms as animation duration in milliseconds. It does not clarify whether duration_ms=0 disables animation or whether the tool blocks until the pan finishes.

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 verb and resource ('Pan the camera to center on an element') and then clarifies the mechanism: it translates the document rather than zooming. That clause implicitly separates it from camera_zoom, though it never names the sibling directly, so it falls just short of 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a use context ('useful for following action across the page') and an explicit cleanup path ('Call camera_reset() to return to normal view'), which covers the follow-up an agent needs. It stops short of stating when-not to use it or naming camera_zoom as the alternative for magnification.

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