search_patents
Find chemical patents and intellectual property details using a CID or custom query. Access comprehensive patent data for millions of compounds through PubChem's chemical database.
Instructions
Search for chemical patents and intellectual property information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | No | PubChem Compound ID (CID) | |
| query | No | Patent search query (alternative to CID) |
Implementation Reference
- src/index.ts:1199-1201 (handler)The handler function that executes the 'search_patents' tool logic. Currently a placeholder implementation returning a not-implemented message.private async handleSearchPatents(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'Patent search not yet implemented', args }, null, 2) }] }; }
- src/index.ts:699-706 (schema)Input schema definition for the 'search_patents' tool, specifying optional cid or query parameters.inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, query: { type: 'string', description: 'Patent search query (alternative to CID)' }, }, required: [], },
- src/index.ts:696-707 (registration)Registration of the 'search_patents' tool in the ListTools response, including name, description, and schema.{ name: 'search_patents', description: 'Search for chemical patents and intellectual property information', inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, query: { type: 'string', description: 'Patent search query (alternative to CID)' }, }, required: [], }, },
- src/index.ts:804-805 (registration)Dispatch/registration case in the CallToolRequestSchema handler that routes to the search_patents handler method.case 'search_patents': return await this.handleSearchPatents(args);