Skip to main content
Glama

calculate_descriptors

Calculate molecular descriptors and fingerprints for PubChem compounds to analyze chemical properties, structural features, and molecular characteristics for research applications.

Instructions

Calculate comprehensive molecular descriptors and fingerprints

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cidYesPubChem Compound ID (CID)
descriptor_typeNoType of descriptors (default: all)

Implementation Reference

  • The main handler function that executes the calculate_descriptors tool logic. Currently implemented as a placeholder that returns a 'not yet implemented' message.
    private async handleCalculateDescriptors(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'Descriptor calculation not yet implemented', args }, null, 2) }] }; }
  • Input schema defining the parameters for the calculate_descriptors tool, including CID (required) and optional descriptor_type.
    inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, descriptor_type: { type: 'string', enum: ['all', 'basic', 'topological', '3d'], description: 'Type of descriptors (default: all)' }, }, required: ['cid'], },
  • src/index.ts:516-526 (registration)
    Registration of the calculate_descriptors tool in the list of available tools returned by ListToolsRequest, including name, description, and schema.
    name: 'calculate_descriptors', description: 'Calculate comprehensive molecular descriptors and fingerprints', inputSchema: { type: 'object', properties: { cid: { type: ['number', 'string'], description: 'PubChem Compound ID (CID)' }, descriptor_type: { type: 'string', enum: ['all', 'basic', 'topological', '3d'], description: 'Type of descriptors (default: all)' }, }, required: ['cid'], }, },
  • src/index.ts:768-769 (registration)
    Switch case in the CallToolRequest handler that dispatches execution to the specific handleCalculateDescriptors method.
    case 'calculate_descriptors': return await this.handleCalculateDescriptors(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