Skip to main content
Glama

search_by_cas_number

Find chemical compounds in the PubChem database using their unique CAS Registry Number for accurate identification and detailed information retrieval.

Instructions

Search for compounds by CAS Registry Number

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cas_numberYesCAS Registry Number (e.g., 50-78-2)

Implementation Reference

  • The handler function that implements the core logic of the 'search_by_cas_number' tool. Currently a placeholder that returns a 'not yet implemented' message with input args.
    private async handleSearchByCasNumber(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'CAS search not yet implemented', args }, null, 2) }] }; }
  • Input schema defining the expected parameters for the 'search_by_cas_number' tool: a required 'cas_number' string.
    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)
    Registration of the 'search_by_cas_number' tool 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)
    Dispatch case in the CallToolRequest handler that routes calls to the search_by_cas_number handler function.
    case 'search_by_cas_number': return await this.handleSearchByCasNumber(args);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Augmented-Nature/PubChem-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server