Skip to main content
Glama
Aki894
by Aki894

get_study_details

Retrieve comprehensive clinical trial information using the NCT ID to access study details, safety profiles, and adverse event data for drug assessment.

Instructions

Get detailed information about a specific clinical trial by NCT ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nct_idYesNCT ID of the study. Example: 'NCT04267848'

Implementation Reference

  • The actual implementation of the get_study_details tool.
    private async getStudyDetails(nctId: string) {
      const data = await this.getStudyByNCT(nctId);
      
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify({
              nct_id: nctId,
              study_details: data
            }, null, 2)
          }
        ]
      };
    }
  • src/index.ts:152-164 (registration)
    Tool registration for get_study_details in MCP.
    {
      name: "get_study_details",
      description: "Get detailed information about a specific clinical trial by NCT ID",
      inputSchema: {
        type: "object",
        properties: {
          nct_id: {
            type: "string",
            description: "NCT ID of the study. Example: 'NCT04267848'"
          }
        },
        required: ["nct_id"]
      }
  • The switch case handling the execution of the get_study_details tool.
    case "get_study_details":
      if (!args.nct_id) {
        throw new McpError(ErrorCode.InvalidParams, "NCT ID is required");
      }
      return await this.getStudyDetails(args.nct_id);

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/Aki894/mcp-ClinicalTrial'

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