Skip to main content
Glama

superstructure_search

Search PubChem for compounds containing a specific chemical structure by providing its SMILES string. Returns larger molecules that include the query structure as a substructure.

Instructions

Find larger compounds that contain the query structure

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
smilesYesSMILES string of the query structure
max_recordsNoMaximum number of results (1-10000, default: 100)

Implementation Reference

  • The handler function for the 'superstructure_search' tool. It currently returns a placeholder response indicating the feature is not yet implemented.
    private async handleSuperstructureSearch(args: any) { return { content: [{ type: 'text', text: JSON.stringify({ message: 'Superstructure search not yet implemented', args }, null, 2) }] }; }
  • src/index.ts:466-477 (registration)
    Tool registration in the ListToolsRequestSchema handler, including name, description, and input schema definition.
    { name: 'superstructure_search', description: 'Find larger compounds that contain the query structure', inputSchema: { type: 'object', properties: { smiles: { type: 'string', description: 'SMILES string of the query structure' }, max_records: { type: 'number', description: 'Maximum number of results (1-10000, default: 100)', minimum: 1, maximum: 10000 }, }, required: ['smiles'], }, },
  • src/index.ts:758-759 (registration)
    Dispatcher case in the CallToolRequestSchema handler that routes calls to the superstructure_search handler.
    case 'superstructure_search': return await this.handleSuperstructureSearch(args);
  • Input schema definition for the superstructure_search tool, specifying parameters like smiles and max_records.
    inputSchema: { type: 'object', properties: { smiles: { type: 'string', description: 'SMILES string of the query structure' }, max_records: { type: 'number', description: 'Maximum number of results (1-10000, default: 100)', minimum: 1, maximum: 10000 }, }, required: ['smiles'], },

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