Skip to main content
Glama

get_assay_info

Retrieve detailed bioassay information from PubChem using the Assay ID (AID) to access experimental protocols, results, and chemical activity data for research and analysis.

Instructions

Get detailed information for a specific bioassay by AID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aidYesPubChem Assay ID (AID)

Implementation Reference

  • Handler function that fetches detailed bioassay information from PubChem API using the provided Assay ID (AID).
    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'}` ); } }
  • Tool schema definition including name, description, and input schema requiring 'aid' as a number.
    { 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 CallToolRequestSchema handler that routes 'get_assay_info' calls to the handleGetAssayInfo method.
    case 'get_assay_info': return await this.handleGetAssayInfo(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/k-lordbodin7/PubChem-MCP-Server'

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