search_by_inchi
Find chemical compounds in PubChem using InChI strings or InChI keys to identify and retrieve detailed information about specific molecules.
Instructions
Search for compounds by InChI or InChI key
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inchi | Yes | InChI string or InChI key |
Implementation Reference
- src/index.ts:950-952 (handler)The handler function that executes the search_by_inchi tool. Currently a placeholder implementation returning a not-implemented message.private async handleSearchByInchi(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'InChI search not yet implemented', args }, null, 2) }] }; }
- src/index.ts:406-416 (schema)Input schema and metadata definition for the search_by_inchi tool, registered in the ListToolsRequestSchema handler.{ name: 'search_by_inchi', description: 'Search for compounds by InChI or InChI key', inputSchema: { type: 'object', properties: { inchi: { type: 'string', description: 'InChI string or InChI key' }, }, required: ['inchi'], }, },
- src/index.ts:746-747 (registration)Dispatch logic in the CallToolRequestSchema handler that routes search_by_inchi calls to the specific handler method.case 'search_by_inchi': return await this.handleSearchByInchi(args);