Skip to main content
Glama

search_drug_indications

Search for therapeutic indications and disease areas by drug type and specified condition using a structured query on the ChEMBL MCP Server.

Instructions

Search for therapeutic indications and disease areas

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
drug_typeNoDrug type filter (e.g., Small molecule, Antibody)
indicationYesDisease or indication search term
limitNoNumber of results to return (1-1000, default: 25)

Implementation Reference

  • The main handler function implementing the tool logic. It validates input, queries the ChEMBL /drug_indication.json API endpoint with the indication as 'q' parameter, and returns the JSON response.
    private async handleSearchDrugIndications(args: any) { if (!args || typeof args.indication !== 'string') { throw new McpError(ErrorCode.InvalidParams, 'Invalid drug indications arguments'); } try { const response = await this.apiClient.get('/drug_indication.json', { params: { q: args.indication, limit: args.limit || 25, }, }); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], }; } catch (error) { throw new McpError( ErrorCode.InternalError, `Failed to search drug indications: ${error instanceof Error ? error.message : 'Unknown error'}` ); } }
  • Tool schema definition including input schema for validation, provided in the list of tools.
    description: 'Search for therapeutic indications and disease areas', inputSchema: { type: 'object', properties: { indication: { type: 'string', description: 'Disease or indication search term' }, drug_type: { type: 'string', description: 'Drug type filter (e.g., Small molecule, Antibody)' }, limit: { type: 'number', description: 'Number of results to return (1-1000, default: 25)', minimum: 1, maximum: 1000 }, }, required: ['indication'], }, }, {
  • src/index.ts:782-783 (registration)
    Registration of the tool handler in the switch statement for CallToolRequestSchema.
    case 'search_drug_indications': return await this.handleSearchDrugIndications(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/Augmented-Nature/ChEMBL-MCP-Server'

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