search_by_inchi
Find chemical compounds in PubChem using InChI or InChI key identifiers to retrieve detailed compound information.
Instructions
Search for compounds by InChI or InChI key
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": {
"inchi": "<inchi>"
},
"name": "search_by_inchi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inchi | Yes | InChI string or InChI key |
Implementation Reference
- src/index.ts:950-952 (handler)The core handler function that executes the logic for the 'search_by_inchi' tool. Currently implemented as a placeholder 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:409-415 (schema)Input schema defining the expected arguments for the search_by_inchi tool: an object with a required 'inchi' string.
inputSchema: { type: 'object', properties: { inchi: { type: 'string', description: 'InChI string or InChI key' }, }, required: ['inchi'], }, - src/index.ts:406-416 (registration)Registration of the search_by_inchi tool in the ListTools response, including name, description, and input schema.
{ 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)Registration in the central tool dispatcher switch statement that routes calls to the specific handler.
case 'search_by_inchi': return await this.handleSearchByInchi(args);