Skip to main content
Glama

Fetch Pdb

fetch_pdb

Fetches and loads an RCSB PDB structure by 4-character accession code into PyMOL, with an optional object name.

Instructions

Fetch a structure from the RCSB PDB (requires network) and load it.

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": {
      "code": "<code>"
    },
    "name": "fetch_pdb"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes4-character PDB accession code, e.g. '1UBQ'.
object_nameNoOptional object name.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 disclosure burden; it does add real value by flagging the network dependency, which affects offline or sandboxed use. It does not say whether the loaded structure replaces existing content, how name collisions with the object_name parameter are resolved, or what an error looks like.

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 the verb, resource, prerequisite and effect, with no wasted wording.

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

Completeness3/5

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

Adequate for a two-parameter tool with a full output schema, so return values need no description. However, for a tool that mutates session state by loading an object, the absence of any note on overwrite behavior or sibling selection leaves a gap.

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%, so both the accession code format and the optional object_name are already documented in the schema. The description adds no additional semantics such as what object_name defaults to when omitted. 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?

Names a specific verb (fetch) and resource (a structure from the RCSB PDB), plus the side effect of loading it. The 'from the RCSB PDB' qualifier implicitly separates it from the local-file sibling load_structure, though it never names that sibling.

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 by the network prerequisite and the 4-character accession code: use this when you want a public PDB entry by ID. There is no explicit statement of when to prefer this over load_structure or load_trajectory, and no note about what happens if the code is invalid or the network is unavailable.

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