Skip to main content
Glama

Select

select

Create a named atom subset from a PyMOL expression and return the count of matching atoms.

Instructions

Create a named selection and return how many atoms it matched.

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": {
      "name": "<name>",
      "selection": "<selection>"
    },
    "name": "select"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName for the new named selection.
selectionYesPyMOL selection-algebra expression, e.g. 'chain A and resn ALA'.

Output Schema

NameRequiredDescriptionDefault

No arguments

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 present, the description carries the full burden, and it does disclose the two key behaviors: a named selection is persisted and an atom count is returned. It omits important operational behavior such as what happens if the name already exists (overwrite vs error), and how invalid PyMOL selection syntax is reported.

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 with zero filler; the creation action and the return value are both stated immediately.

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?

Both parameters are documented in the schema and an output schema exists, so the description does not need to explain return values. For a two-parameter tool this is nearly complete; only collision/overwrite semantics and error behavior are left unaddressed.

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 includes an example expression for 'selection', so the schema already does the heavy lifting. The description adds no extra meaning about naming constraints or expression syntax beyond what the schema provides, which is the baseline 3 case.

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 pairs a specific verb (create) with a specific resource (named selection) and even states the return value (match count). It is clear on its own, though it never distinguishes itself from siblings like get_selection_info that also operate on selections.

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 mention of prerequisites (e.g. that a molecular object must be loaded first), and no named alternative for inspecting an existing selection versus creating one. The agent must infer from the sibling list that get_selection_info is the read-only counterpart.

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