Get Bioactivity
pubchem_get_bioactivityGet a compound's bioactivity profile: which assays tested it, activity outcomes (Active/Inactive/Inconclusive), target identifiers (NCBI Gene ID, UniProt/GenBank accession), quantitative values (IC50, EC50, Ki, etc.), each assay's type (confirmatory, screening, summary, other), and the PubMed IDs it cites. Filter by outcome, a specific molecular target (NCBI Gene ID or protein accession), named AIDs, assay type, and/or activity name (e.g. IC50) to focus the profile, and rank by potency within the named measurements — e.g. "is this compound active against target T in confirmatory assays?", "what is its lowest IC50 against T?", or "what did it do in AID N?".
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": {
"cid": "<cid>"
},
"name": "pubchem_get_bioactivity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aid | No | Keep only these assays, by PubChem Assay ID (up to 1000; a repeated AID counts once) — e.g. the AIDs pubchem_search_assays found for a target, or the one pubchem_search_compounds listed this compound under. Combines with every other filter, before sort and offset, so filteredCount and paging count only the listed assays. A listed AID with no row in this compound's assay summary is returned in aidsNotInProfile. | |
| cid | Yes | PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds. | |
| sort | No | "table" (default) keeps PubChem's assay order (by AID). "potency" orders assays by their lowest matching activity value, ascending (most potent first), ties to the lower AID; every value in a compound's table shares one unit (uM), and a value carrying its own outcome never matches, so it never sets the order. "potency" requires activityName: the value column also holds non-potency measurements (Cmax, solubility, rate constants, unnamed values), so a name-blind order would rank them as potencies. | table |
| offset | No | Zero-based index of the first assay to return, applied after every filter and the sort order. Pass the nextOffset from a previous call to read the following page. Default: 0. | |
| assayType | No | Keep only assays of these types: "confirmatory" (dose-response and other follow-up assays), "screening" (primary high-throughput screens), "summary" (records summarizing a project's assays), "other". Matched against PubChem's Assay Type regardless of case; an assay with no recorded type matches none. Combines with outcomeFilter and the target filters — an assay must pass all of them. Omit to keep every type. | |
| maxResults | No | Max assay results to return per page. The per-call cap is 100: a larger value (up to 1000) returns a page of 100 and is reported in cappedInputs. Well-studied compounds have thousands of records; use offset to reach the ones past this page. Default: 20. | |
| activityName | No | Keep only assays whose reported target has an activity value with one of these measurement names (e.g. ["IC50"], ["Ki", "Kd"]), and narrow that target's activityValues to the matching values; otherTargets are left as they are. Names match whole and regardless of case ("ic50" matches "IC50", not "IC50 relative"); a value with no name, or one carrying its own outcome (from a row whose outcome differs from the target's), never matches; blank entries are ignored. Applied after the outcome, target, assay-type, and AID filters, so filteredCount and paging count only the assays it keeps. | |
| targetGeneId | No | Filter to assays against this NCBI Gene ID (1 to 2147483647), including assays recorded only under a protein accession this compound's assay table pairs with the Gene ID (e.g. 5742 also reaches rows carrying only P23219 when another row pairs the two). Obtain Gene IDs from the GeneID:N in a pubchem_get_compound_interactions target entry's partner (kinds: ["target"]) or the targetGeneId field of a result here without a target filter (rows from untargeted screens carry none). Combine with outcomeFilter="active" to answer "is this compound active against target T?". | |
| outcomeFilter | No | Filter by activity outcome against each assay's reported target: the target a target filter matched, else the first target the assay lists. That outcome reads over every row the assay holds for the compound against the target (one per substance tested): Active when any row is Active, as PubChem lists a compound's active assays; otherwise the first of Probe, Inconclusive, Inactive, Unspecified that a row records. For a multi-target assay, outcomes against its other targets (in otherTargets) do not count. "active" keeps assays where that outcome is Active — most useful for understanding biological profile. Default: "all". | all |
| targetAccession | No | Filter to assays against this target protein accession (UniProt/RefSeq/GenBank/PDB chain), e.g. "P35354", including assays recorded only under a Gene ID or another accession this compound's assay table pairs with it. Uppercased before matching; a PDB chain ID (the "A" in "1ZHH_A") is kept as given. With targetGeneId, both must name the same target — when the table ties them to different targets, nothing matches. Obtain accessions from an assay's targets in pubchem_get_summary (entityType "assay"), the accession:X in a pubchem_get_compound_interactions target entry's partner, or the targetAccession field of a result here without a target filter. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The page size applied: maxResults, or the per-call cap when maxResults exceeds it. | |
| cid | No | PubChem Compound ID. | |
| sort | No | "potency" when assays are ordered by potency; omitted for table order. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Assays returned on this page. | |
| notice | No | Recovery guidance when the filter yields no results or the compound has no bioactivity data. | |
| offset | No | Zero-based index of the first assay returned. | |
| results | No | Assay results matching the filter. | |
| aidFilter | No | AIDs the aid filter applied, when aid is set: each once, in input order. | |
| truncated | No | True when matching assays remain past this page. | |
| nextOffset | No | Offset to pass on the next call to continue past this page. Omitted when no further assays match. | |
| activeCount | No | Assays whose outcome against their first listed target is "Active", across all assays and before any filter: Active when any of the compound's rows for it is Active, as PubChem lists a compound's active assays. A multi-target assay counts by its first target only. | |
| totalAssays | No | Total unique assays for this compound. | |
| cappedInputs | No | Inputs that asked for more than their per-call cap, with the value requested and the value served. An ID batch lists the IDs past the cap in unprocessed. Omitted when every input was within its cap. | |
| targetFilter | No | Target identifiers matched, when a target filter is set: those passed plus every Gene ID and accession the compound's assay table pairs with them. When the two inputs name different targets, only the two inputs. | |
| filteredCount | No | Exact number of assays matching the outcome, target, AID, assay-type, and activity-name filters, across all pages. | |
| inactiveCount | No | Assays whose outcome against their first listed target is "Inactive", across all assays and before any filter. An outcome reads Active when any of the compound's rows for it is Active, so an Inactive assay has no Active, Probe, or Inconclusive row for that target. A multi-target assay counts by its first target only. | |
| outcomeFilter | No | Outcome filter applied: active, inactive, or all. | |
| returnedCount | No | Assays returned on this page. | |
| assayTypeFilter | No | Assay types kept, comma-separated (e.g. "confirmatory, summary"), when assayType is set. | |
| aidsNotInProfile | No | Listed AIDs with no row in this compound's assay summary, in input order: PubChem records no result for the compound under them, apart from an AID the other filters removed. Omitted when every listed AID has one. | |
| activityNameFilter | No | Activity names applied, when activityName is set: each as passed, trimmed, with a repeat in another case dropped. |