get_assay_info
Retrieve detailed bioassay information for a specific PubChem Assay ID (AID) using the Unofficial PubChem MCP Server. Extract assay data, properties, and related insights for research and analysis.
Instructions
Get detailed information for a specific bioassay by AID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aid | Yes | PubChem Assay ID (AID) |
Implementation Reference
- src/index.ts:1129-1146 (handler)The handler function that executes the tool by fetching bioassay information from the PubChem API using the provided AID and returning the JSON response.private async handleGetAssayInfo(args: any) { try { const response = await this.apiClient.get(`/assay/aid/${args.aid}/JSON`); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], }; } catch (error) { throw new McpError( ErrorCode.InternalError, `Failed to get assay info: ${error instanceof Error ? error.message : 'Unknown error'}` ); } }
- src/index.ts:592-598 (schema)Input schema for the get_assay_info tool, defining the required 'aid' parameter as a number.inputSchema: { type: 'object', properties: { aid: { type: 'number', description: 'PubChem Assay ID (AID)' }, }, required: ['aid'], },
- src/index.ts:589-599 (registration)Registration of the get_assay_info tool in the list of available tools, including name, description, and input schema.{ name: 'get_assay_info', description: 'Get detailed information for a specific bioassay by AID', inputSchema: { type: 'object', properties: { aid: { type: 'number', description: 'PubChem Assay ID (AID)' }, }, required: ['aid'], }, },
- src/index.ts:782-783 (registration)Dispatch case in the central CallToolRequest handler that routes calls to the specific get_assay_info handler.case 'get_assay_info': return await this.handleGetAssayInfo(args);