Skip to main content
Glama
cyanheads

clinicaltrialsgov-mcp-server

Clinicaltrials Find Eligible

clinicaltrials_find_eligible
Read-onlyIdempotent

Match patients to recruiting clinical trials using age, sex, conditions, and location. Queries ClinicalTrials.gov to find eligible studies for enrollment evaluation.

Instructions

Match patient demographics and conditions to eligible recruiting clinical trials. Builds an optimized ClinicalTrials.gov query from a patient profile (age, sex, conditions, location) and returns studies with eligibility and location fields for the caller to evaluate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ageYesPatient age in years.
sexYesBiological sex.
conditionsYesMedical conditions or diagnoses. E.g., ["Type 2 Diabetes", "Hypertension"].
locationYesPatient location.
healthyVolunteerNoWhether the patient is a healthy volunteer. When true, only studies accepting healthy volunteers are queried.
recruitingOnlyNoOnly include actively recruiting studies.
maxResultsNoMaximum results to return.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
studiesYesMatching studies with eligibility and location fields.
totalCountNoTotal matching studies from the API.
searchCriteriaYesSearch criteria used.
noMatchHintsNoHints when no studies match, with suggestions to broaden the search.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

While annotations declare readOnlyHint and openWorldHint, the description adds valuable behavioral context by explicitly naming ClinicalTrials.gov as the external dependency, noting that it 'builds an optimized query' (explaining the processing logic), and clarifying that results are 'for the caller to evaluate' (setting expectations that the tool performs matching but not medical eligibility determination). No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description consists of two highly efficient sentences. The first front-loads the core action and resource, while the second explains the mechanism (optimized query building) and output scope (eligibility and location fields). Every phrase serves a purpose, including 'for the caller to evaluate,' which critically delineates the tool's responsibility boundary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (medical domain, external API dependency, 7 parameters, nested objects) and the presence of a complete input schema and output schema, the description provides sufficient context by identifying the external data source, the optimization behavior, and the evaluation limitation. It appropriately avoids duplicating parameter-level details already covered by the 100% schema coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the schema fully documents all 7 parameters including nested location fields and boolean flags. The description references the parameters conceptually as a 'patient profile (age, sex, conditions, location),' which provides semantic grouping but does not add syntax or format details beyond what the schema already provides. Baseline score of 3 is appropriate given the schema carries the full documentation burden.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool matches patient profiles to eligible clinical trials, specifies the target resource (ClinicalTrials.gov), and lists the key input components (age, sex, conditions, location). It clearly distinguishes itself from sibling tools by emphasizing 'eligible recruiting' trials and patient-specific matching rather than general study retrieval or metadata lookups.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear contextual signals for when to use the tool (when you have a patient profile and need to find eligible trials) by specifying 'patient profile' and 'eligible recruiting.' However, it does not explicitly name alternative tools like 'clinicaltrials_search_studies' for broader queries or state when NOT to use this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/cyanheads/clinicaltrialsgov-mcp-server'

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