get_compound_bioactivities
Retrieve detailed bioassay results and activities for a chemical compound by its PubChem CID, with options to filter by activity outcome (active, inactive, inconclusive, or all).
Instructions
Get all bioassay results and activities for a compound
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity_outcome | No | Filter by activity outcome (default: all) | |
| cid | Yes | PubChem Compound ID (CID) |
Implementation Reference
- src/index.ts:1148-1150 (handler)The handler function that implements the core logic of the 'get_compound_bioactivities' tool. It currently serves as a placeholder, returning a message indicating that bioactivity search functionality is not yet implemented.private async handleGetCompoundBioactivities(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'Bioactivity search not yet implemented', args }, null, 2) }] }; }
- src/index.ts:603-610 (schema)The input schema defining the expected arguments for the tool: a required 'cid' (PubChem Compound ID) and an optional 'activity_outcome' filter.inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, activity_outcome: { type: 'string', enum: ['active', 'inactive', 'inconclusive', 'all'], description: 'Filter by activity outcome (default: all)' }, }, required: ['cid'], },
- src/index.ts:600-611 (registration)The tool registration entry in the ListToolsRequestSchema response, providing the tool's name, description, and input schema.{ name: 'get_compound_bioactivities', description: 'Get all bioassay results and activities for a compound', inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, activity_outcome: { type: 'string', enum: ['active', 'inactive', 'inconclusive', 'all'], description: 'Filter by activity outcome (default: all)' }, }, required: ['cid'], }, },
- src/index.ts:784-785 (registration)The dispatch case in the CallToolRequestSchema handler that routes tool calls named 'get_compound_bioactivities' to the specific handler function.case 'get_compound_bioactivities': return await this.handleGetCompoundBioactivities(args);