Skip to main content
Glama
Augmented-Nature

Unofficial PubChem MCP Server

get_compound_bioactivities

Retrieve bioassay results and activity data for chemical compounds from PubChem to analyze compound effects in biological tests.

Instructions

Get all bioassay results and activities for a compound

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cidYesPubChem Compound ID (CID)
activity_outcomeNoFilter by activity outcome (default: all)

Implementation Reference

  • The handler function that executes the 'get_compound_bioactivities' tool logic. Currently implemented as a placeholder indicating that full bioactivity search is not yet implemented.
    private async handleGetCompoundBioactivities(args: any) {
      return { content: [{ type: 'text', text: JSON.stringify({ message: 'Bioactivity search not yet implemented', args }, null, 2) }] };
    }
  • Input schema definition for the 'get_compound_bioactivities' tool, specifying parameters like CID and optional activity outcome filter.
    inputSchema: {
      type: 'object',
      properties: {
        cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' },
        activity_outcome: { type: 'string', enum: ['active', 'inactive', 'inconclusive', 'all'], description: 'Filter by activity outcome (default: all)' },
      },
      required: ['cid'],
    },
  • src/index.ts:784-785 (registration)
    Registration and dispatch case in the main CallToolRequestSchema switch statement that routes calls to the handler.
    case 'get_compound_bioactivities':
      return await this.handleGetCompoundBioactivities(args);
  • src/index.ts:600-610 (registration)
    Tool registration entry in the ListToolsRequestSchema response, including name, description, and schema.
    {
      name: 'get_compound_bioactivities',
      description: 'Get all bioassay results and activities for a compound',
      inputSchema: {
        type: 'object',
        properties: {
          cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' },
          activity_outcome: { type: 'string', enum: ['active', 'inactive', 'inconclusive', 'all'], description: 'Filter by activity outcome (default: all)' },
        },
        required: ['cid'],
      },

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/Augmented-Nature-PubChem-MCP-Server'

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