Skip to main content
Glama

Render Image

render_image

Ray-trace the current PyMOL scene to a PNG and return the image inline, with optional selection zoom and configurable width, height, and ray style.

Instructions

Ray-trace the current scene to a PNG and return it inline.

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": "render_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
zoomNoZoom/orient onto the selection before rendering.
widthNoImage width in pixels.
heightNoImage height in pixels.
ray_styleNoRay profile. The default is the PyMOLWiki outline profile.pymolwiki_outline
selectionNoSelection to zoom before rendering ('all' = whole scene).all

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 it does add real value by saying the image is returned inline rather than written to disk. However, it omits a significant side effect implied by the schema: zoom/orienting onto the selection changes the camera/view state, and ray-tracing is computationally expensive — neither is disclosed.

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?

A single front-loaded sentence that states the operation and the delivery mechanism with zero wasted wording. Nothing is buried or redundant.

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 five-parameter, all-optional rendering tool with a fully described schema and no output schema, the description covers output delivery ('return it inline'), which is the main thing the schema cannot express. It falls short only on the camera-state side effect and cost expectations.

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 description coverage is 100%, so every parameter (zoom, width, height, ray_style, selection) is already documented with defaults, ranges, and enum meanings. The description adds no additional parameter meaning, 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?

States a specific verb (ray-trace) and resource (the current scene) plus the output form (PNG returned inline), which implicitly separates it from file-writing siblings like save_file. It does not name or contrast any sibling explicitly, so it stops 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 Guidelines2/5

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

There is no when-to-use guidance, no prerequisite (e.g., whether a structure must be loaded), and no statement of when to prefer this over save_file or a viewport snapshot. Usage is only inferable from the verb.

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