search_by_cas_number
Find chemical compounds using their CAS Registry Number to access molecular properties and bioassay data from PubChem.
Instructions
Search for compounds by CAS Registry Number
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": {
"cas_number": "<cas_number>"
},
"name": "search_by_cas_number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cas_number | Yes | CAS Registry Number (e.g., 50-78-2) |
Implementation Reference
- src/index.ts:954-956 (handler)The main handler function that executes the logic for the 'search_by_cas_number' tool. Currently implemented as a placeholder.
private async handleSearchByCasNumber(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'CAS search not yet implemented', args }, null, 2) }] }; } - src/index.ts:420-426 (schema)The input schema definition for the tool, specifying the expected parameters.
inputSchema: { type: 'object', properties: { cas_number: { type: 'string', description: 'CAS Registry Number (e.g., 50-78-2)' }, }, required: ['cas_number'], }, - src/index.ts:417-427 (registration)The tool registration in the ListTools response, including name, description, and schema.
{ name: 'search_by_cas_number', description: 'Search for compounds by CAS Registry Number', inputSchema: { type: 'object', properties: { cas_number: { type: 'string', description: 'CAS Registry Number (e.g., 50-78-2)' }, }, required: ['cas_number'], }, }, - src/index.ts:748-749 (registration)The switch case in the CallToolRequestSchema handler that dispatches to the tool handler.
case 'search_by_cas_number': return await this.handleSearchByCasNumber(args);