Skip to main content
Glama

Run Pml

run_pml

Execute raw PyMOL command-language statements for molecular visualization and analysis. Enabled only when PYMOL_MCP_ALLOW_CODE_EXEC=1 is set.

Instructions

[opt-in] Execute raw PyMOL command-language statements. Requires PYMOL_MCP_ALLOW_CODE_EXEC=1.

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": {
      "command": "<command>"
    },
    "name": "run_pml"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesPyMOL command-language (.pml) statement(s), newline-separated.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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. It does disclose a genuinely important behavior: execution is gated behind PYMOL_MCP_ALLOW_CODE_EXEC=1, implying arbitrary code execution. It does not state that commands mutate the session (or how errors are surfaced), which matters for a raw-execution tool.

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 short sentences with zero waste; the opt-in flag and the env-var gate are both front-loaded where an agent will see them before deciding to call.

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?

An output schema exists, so return values need no explanation, and the single parameter is fully described. For a code-execution tool the only real gap is the absence of any statement about session mutation or failure behavior.

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 100% and the single `command` parameter is fully documented as newline-separated PyMOL statements. The description's "statements" phrasing reinforces the multi-line batching behavior, so meaning is consistent but adds little beyond the schema; baseline-plus.

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 gives a specific verb+resource: "Execute raw PyMOL command-language statements." That cleanly separates it from sibling tools like show/hide/color (which wrap individual command types) and run_python (a different language surface), though it never names run_python explicitly.

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?

Usage is implied via the "[opt-in]" tag and the prerequisite "Requires PYMOL_MCP_ALLOW_CODE_EXEC=1," which tells an agent it may be unavailable. It never says when to prefer this over the dedicated command tools or run_python, and offers no exclusions for what should not be run.

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