Skip to main content
Glama

viewport

Idempotent

Sets the PyMOL rendering area to a specified width and height in pixels, enabling precise control over image framing and output dimensions for structural views.

Instructions

Sets the viewport size

Input Schema

NameRequiredDescriptionDefault
widthYesViewport width in pixels.
heightYesViewport height in pixels.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.5.1
    • addedInput schema / properties / height / description
      Added value: +"Viewport height in pixels."
    • addedInput schema / properties / width / description
      Added value: +"Viewport width in pixels."
  2. First observedv1.2.1

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety/idempotency profile is covered. The description adds nothing beyond that: it does not say what gets destroyed (current aspect ratio, camera framing, selection state) or whether the change persists across renders or sessions. With annotations present the bar is lower, but the description contributes essentially no behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short, front-loaded sentence with no wasted words, which is structurally fine. However, it is under-specified rather than genuinely concise, leaving nothing for the agent to rely on beyond the title-like phrase.

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

Completeness2/5

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

The tool is simple (two required params, output schema present, annotations present), so the description needn't explain return values. Even so, for a mutation of view state in a 120+ tool PyMOL server, it should at minimum say whether the change is transient and how it relates to sibling camera tools; neither is present.

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 both parameters carry their own descriptions ("Viewport width in pixels", "Viewport height in pixels"), so the baseline of 3 applies. The description does not clarify the notable oddity that width/height are typed as strings, nor any constraints such as minimum values or aspect-ratio handling.

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 specific verb plus resource ("Sets the viewport size"), so an agent knows it mutates the camera/viewport dimensions rather than content. It does not distinguish itself from adjacent camera tools like zoom, full_screen, or orient, which also affect the viewport.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to call this instead of the many sibling camera tools (zoom, zoom, zoom, full_screen, zoom-to-fit behaviors). No prerequisites, no exclusions, no note about whether this replaces or composes with existing camera state.

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