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

dots · Health

How to Use PubChem similar compounds in dots

Finds compounds with similar structural features or a specified structural containment relationship. Use it to assemble an analogue shortlist; PubChem's 2D fingerprint similarity ignores stereochemical and isotopic differences.

Prompts to try with PubChem similar compounds in dots

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

Every Monday at 9am: use PubChem similar compounds to look this up and give me the result as a table.

PubChem similar compoundsdots
Try asking
  • Pull the latest numbers from PubChem similar compounds and tell me what changed since last week.

  • Check PubChem similar compounds and summarize what you find in three bullet points.

  • Pull the newest data from PubChem similar compounds and give me the result as a table.

  • Check PubChem similar compounds every morning and tell me only when something changed.

How to set up PubChem similar compounds in dots

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

Use the Spiral skill

  1. Send dots 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 Spiral's MCP server

  1. Create an API key

    In the console, open API keys and create a key for your dot. Copy it.

  2. Send your dot this message

    Your dot reads Spiral's skill and asks for your API key.

    set up https://spiral.ai/SKILL.md
  3. Give your dot the key

    When your dot asks for the key, add it where your dot keeps secrets, never in the chat itself.

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 PubChem similar compounds

    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": "pubchem-ncbi-nlm-nih-gov/compounds/similar",
        "input": {
          "compound": "<compound>"
        }
      }'

Then paste one of the prompts above: dots finds PubChem similar compounds on Spiral, shows the price and runs it.

PubChem similar compounds providers and prices

Spiral runs PubChem similar compounds through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth

Settings you can ask for

Ask dots for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Cida number from 1

A PubChem CID, instead of compound. Pass exactly one of compound or cid.

Kindauto, cid, name, smiles, inchikey, or inchiauto

How to read compound; auto guesses from its shape. Set smiles for short SMILES that read as formulas or names ("CO").

Modesimilarity, substructure, or superstructuresimilarity

similarity: Tanimoto at or above threshold; substructure: compounds containing the query; superstructure: compounds contained in the query.

Limit1 to 10020

Hits to return.

Threshold70 to 10090

Minimum Tanimoto similarity in percent, similarity mode only.

Every API field of PubChem: chemical compounds, bioassays, targets and patents · Similar is on its tool page: open its card above.

What can you do with PubChem similar compounds in dots?

Keep a weekly review of changes in PubChem results for a fixed compound watchlist. Compare repeated queries to identify changed properties, structural matches, biological evidence, or patent links for a researcher to inspect.

Triage structural analogues

Find structures resembling a seed compound, confirm their identities, and compare available properties, assay evidence, targets, and patent links before selecting candidates for closer study.

Compare compound target profiles

Start from imatinib and structurally related compounds. Match identities and properties, organize their reported targets, and inspect the assay results behind shared or differing associations.

Build a patent reading list around a structure

Confirm a seed compound, find related structures, and collect their linked patent publication identifiers. Organize documents for reading without treating chemical mentions as proof of claim coverage.

Review a research watchlist each week

Repeat identity, property, structural-neighbor, assay, target, and patent queries for a fixed compound watchlist. Compare retrieved results with earlier snapshots to flag changes for a researcher.

Teach chemical identity and structural similarity

Use aspirin and caffeine to demonstrate name resolution, computed properties, and structural searches. Show students why a molecular formula or fingerprint match does not establish complete structural identity.

Investigate a reported screening hit

Confirm the hit's chemical identity, inspect its deposited activity outcomes and associated targets, and find related structures to include in a follow-up evidence review.

Questions about PubChem similar compounds in dots

Can dots use PubChem similar compounds?

Yes. Add Spiral to dots as an MCP server, and dots can find and run PubChem similar compounds like any built-in tool.

How much does PubChem similar compounds cost in dots?

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

Do I need an Alexandria account to use PubChem similar compounds in dots?

You need no Alexandria account. dots uses one Spiral API key for every tool, and Spiral runs PubChem similar compounds on its own Alexandria account.

How long does it take to set up PubChem similar compounds in dots?

About two minutes: create an API key, then send your dot this message, then give your dot the key.

Does dots wait while PubChem similar compounds runs?

PubChem similar compounds runs in the background. dots starts the run, checks on it and gives you the json when it's ready.

Does PubChem cover only small molecules?

Small molecules make up most of PubChem, but it also includes nucleotides, carbohydrates, lipids, peptides, and chemically modified macromolecules.

Why can several submitted records lead to one CID?

PubChem combines submitted Substance records that standardize to the same chemical structure into one Compound record. The CID identifies that structure, while the original submissions retain their Substance identifiers.

Are PubChem CAS-number matches authoritative?

PubChem does not verify or manually curate CAS numbers supplied by third parties. Its documentation explicitly warns that CAS-to-CID assignments can contain errors or inconsistencies.

Does PubChem publish new data on a guaranteed daily schedule?

PubChem says a daily processing cycle is not a publication guarantee. Submission size, processing, reviews, revision requests, and service workload affect when contributed data becomes public.

Can a PubChem structure search miss matching compounds?

Yes. A formula or structure search can stop at an operational time or result limit before examining every candidate, leaving a valid but incomplete result list whose count is a lower bound.

Get started

Start using PubChem similar compounds in dots

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

Paste this into dots:

Set up dots

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