Skip to main content
Glama

get_sequence

Retrieve the amino-acid sequence of a loaded PyMOL structure in FASTA format. See how sequence positions correspond to residue numbers and identify chain breaks.

Instructions

Returns the amino-acid sequence of a loaded structure, in FASTA.

Also reports how the sequence positions line up with the residue numbers in the file, and where the chain is broken. Both matter: PDB numbering rarely starts at 1, so "residue 50" in a paper and position 50 in the sequence are usually different residues — and unmodelled loops leave gaps in the structure that the sequence alone does not reveal.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoChain to extract. Omit for every chain in the object.
obj_nameYesPyMOL object (e.g. "1hsg").

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It goes beyond the basic return value by explaining that it reports sequence-to-residue-number alignment and chain breaks, with reasoning about PDB numbering and unmodelled loops. This adds meaningful behavioral context. It does not discuss failure modes or side effects, but for a simple read-only retrieval, it is quite transparent.

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

Conciseness4/5

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

The description is concise, consisting of three sentences. The first sentence is direct and operational. The second sentence adds key behavioral details, and the third provides explanatory context. While the third sentence could be shorter, it earns its place by clarifying the significance of the alignment and gaps. No redundancy or fluff.

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?

Given an output schema exists and the parameter schema is rich, the description doesn't need to explain return types. It adequately covers purpose, prerequisites, and key behavioral nuances. However, it does not explicitly address edge cases like invalid chain names or multiple chains, though these may be handled by the output schema. Overall, it is complete for a straightforward retrieval tool.

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 both parameters (obj_name and chain) already have descriptions in the schema. The tool description does not add parameter-level detail beyond the schema; it only mentions 'loaded structure' and 'residue numbers' in general terms. Since the schema does the heavy lifting, a baseline score of 3 is appropriate.

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 clearly states the tool returns the amino-acid sequence in FASTA format with a specific verb and resource ('Returns the amino-acid sequence of a loaded structure'). It also mentions additional reporting of sequence alignment and chain breaks, making the purpose specific. However, it does not explicitly distinguish itself from sibling tools, though its function is unique among them.

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?

The description implies when to use the tool (when you need the sequence of a loaded structure) and mentions a prerequisite ('loaded structure'), but it does not explicitly state alternatives or contrast with other tools. The 'Both matter' paragraph explains why the alignment and gaps are important, which helps contextualize usage, but there is no direct guidance on when to choose this over a sibling.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chemrich/MCPymol'

If you have feedback or need assistance with the MCP directory API, please join our Discord server