Spiral gives your agent every tool with one account. Browse the tools →

opencode · Health

How to Use RCSB PDB ligand details in opencode

Fetch a chemical component's identity, formula, molecular weight, chemical descriptors, and available database references from RCSB PDB. Use it to decode a ligand code or prepare compound metadata before investigating structures that contain it.

Prompts to try with RCSB PDB ligand details in opencode

Copy an example into opencode, or ask in your own words.

Use RCSB PDB ligand details for STI and compare its returned name, synonyms, and formula with the STI row in our compound table. Propose corrections for any mismatch.

RCSB PDB ligand detailsopencode
Try asking
  • Use RCSB PDB ligand details for HEM and ATP, then add their returned formulas and molecular weights to the project's ligand reference table.

  • Use RCSB PDB ligand details for CFF and build a JSON fixture from its returned name, formula, molecular weight, and available chemical descriptors.

  • Use RCSB PDB ligand details for STI and add its available external database references to our compound detail view, preserving the source labels.

  • Use RCSB PDB ligand details for ATP and compare every returned SMILES description with the ATP descriptors in our dataset. Report the differences before editing anything.

How to set up RCSB PDB ligand details in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run RCSB PDB ligand details

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "rcsb-org/ligands/ligand",
        "input": {
          "url": "<url>"
        }
      }'

Then paste one of the prompts above: opencode finds RCSB PDB ligand details on Spiral, shows the price and runs it.

RCSB PDB ligand details providers and prices

Spiral runs RCSB PDB ligand details through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
RCSB Protein Data Bank · Ligand
rcsb-org/ligands/ligand

What can you do with RCSB PDB ligand details in opencode?

Build a checked compound reference table from the ligand codes in your project. A coding agent can compare RCSB names, formulas, and descriptors with existing records and prepare a reviewable correction.

Decode ligand codes in a structure report

Turn codes such as STI, HEM, and ATP into a readable glossary with chemical names, synonyms, and formulas.

Prepare a compound comparison table

Collect names, formulas, and molecular weights for a specified list of PDB ligand codes before reviewing their chemistry.

Connect compound records across databases

Extract available external references from RCSB ligand records to support matching against resources such as PubChem and DrugBank.

Prepare chemical descriptors for analysis

Retrieve available SMILES and InChI descriptions for known ligand codes as inputs to a separate chemistry analysis workflow.

Review changes to a ligand reference table

Recheck selected ligand records weekly and flag changes in names, formulas, descriptors, or external references for a curator.

Build a structural biology lesson

Create comparison notes for ATP, HEM, and CFF using their returned names, formulas, molecular weights, and chemical descriptors.

Check compound labels in research files

Compare ligand codes and compound names in a project table against RCSB chemical component records, then report mismatches for review.

Questions about RCSB PDB ligand details in opencode

Can opencode use RCSB PDB ligand details?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run RCSB PDB ligand details like any built-in tool.

How much does RCSB PDB ligand details cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use RCSB PDB ligand details in opencode?

No. Spiral runs RCSB PDB ligand details on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up RCSB PDB ligand details in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while RCSB PDB ligand details runs?

RCSB PDB ligand details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Which compounds do RCSB ligand pages cover?

They cover entries in the wwPDB Chemical Component Dictionary. This is a dictionary of PDB chemical components, so its coverage should not be treated as a catalog of every known compound.

How often does the underlying dictionary change?

The Chemical Component Dictionary is updated with each weekly PDB release. A weekly check is useful for maintaining a local collection of ligand metadata.

Are obsolete ligand records removed?

Obsoleted components remain in the dictionary and are marked OBS. Finding an existing record therefore does not establish that its definition is current.

What chemical identifiers and descriptors are available?

RCSB summaries include names, identifiers, synonyms, SMILES, and InChI information. These help reconcile a short PDB ligand code with a compound name or chemical representation.

Does a ligand summary provide a complete search of structures containing it?

RCSB provides a separate search for all PDB entries containing a ligand. Use the chemical component summary to establish identity, then search the structure archive for occurrences.

Get started

Start using RCSB PDB ligand details in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options