search_by_target
Identify compounds tested against a specific biological target (gene, protein, or pathway) and retrieve activity data (e.g., IC50, EC50, Ki) using the PubChem MCP Server.
Instructions
Find compounds tested against a specific biological target
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity_type | No | Type of activity (e.g., IC50, EC50, Ki) | |
| max_records | No | Maximum number of results (1-1000, default: 100) | |
| target | Yes | Target name (gene, protein, or pathway) |
Implementation Reference
- src/index.ts:1152-1154 (handler)The handler function that executes the logic for the 'search_by_target' tool. Currently implemented as a placeholder returning a not-yet-implemented message.private async handleSearchByTarget(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'Target search not yet implemented', args }, null, 2) }] }; }
- src/index.ts:615-623 (schema)Input schema definition for the 'search_by_target' tool, specifying parameters like target, activity_type, and max_records.inputSchema: { type: 'object', properties: { target: { type: 'string', description: 'Target name (gene, protein, or pathway)' }, activity_type: { type: 'string', description: 'Type of activity (e.g., IC50, EC50, Ki)' }, max_records: { type: 'number', description: 'Maximum number of results (1-1000, default: 100)', minimum: 1, maximum: 1000 }, }, required: ['target'], },
- src/index.ts:612-623 (registration)Tool registration in the list of available tools, including name, description, and input schema.{ name: 'search_by_target', description: 'Find compounds tested against a specific biological target', inputSchema: { type: 'object', properties: { target: { type: 'string', description: 'Target name (gene, protein, or pathway)' }, activity_type: { type: 'string', description: 'Type of activity (e.g., IC50, EC50, Ki)' }, max_records: { type: 'number', description: 'Maximum number of results (1-1000, default: 100)', minimum: 1, maximum: 1000 }, }, required: ['target'], },
- src/index.ts:786-787 (registration)Dispatch case in the CallToolRequestSchema handler that routes calls to the search_by_target handler function.case 'search_by_target': return await this.handleSearchByTarget(args);