Skip to main content
Glama
cyanheads

clinicaltrialsgov-mcp-server

Clinicaltrials Find Eligible

clinicaltrials_find_eligible
Read-onlyIdempotent

Find eligible clinical trials for a patient by matching age, sex, conditions, and location to recruiting studies, with results re-ranked by condition relevance.

Instructions

Match patient demographics and conditions to eligible recruiting clinical trials. Provide age, sex, conditions, and location to find studies with matching eligibility criteria, contact information, and recruiting locations. Results are re-ranked so studies whose own condition matches a requested condition surface above tangential matches from ClinicalTrials.gov's fuzzy condition search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ageYesPatient age in years.
sexYesPatient's biological sex. Use 'ALL' to include studies regardless of sex restrictions.
conditionsYesMedical conditions or diagnoses, e.g. ["Type 2 Diabetes", "Hypertension"]. Each entry is matched as a condition (multi-word entries match as a phrase); multiple entries are combined with OR, so studies for any listed condition qualify. Returned studies are re-ranked so those whose own condition list names a requested condition rank above tangential matches the upstream fuzzy search pulls in via the MeSH umbrella.
locationYesPatient location as `{ country (required), state?, city? }`. Country is required; state/city narrow the match. For radius-based geographic search, use clinicaltrials_search_studies with geoFilter.
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.
searchCriteriaYesNormalized search criteria applied to this eligibility query.
funnelYesMatch counts at each filter stage. Shows where the funnel collapsed — e.g., conditionMatched=298 but demographicsMatched=2 means age/sex/status are the constraint.
noticeNoRecovery guidance when no studies matched — identifies which filter stage collapsed and suggests how to broaden. Absent when results are returned.
Behavior5/5

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

The description adds significant behavioral context beyond the annotations (readOnlyHint, idempotentHint, openWorldHint). It explains the re-ranking logic, the fuzzy condition search behavior from ClinicalTrials.gov, and how multiple conditions are combined (OR logic). There is no contradiction 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.

Conciseness4/5

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

The description is well-structured and informative, but slightly verbose. The first sentence is clear, and subsequent sentences add necessary details. However, it could be slightly more concise without losing meaning. For example, 'Provide age, sex, conditions, and location to find studies...' is a bit redundant with the main purpose. Still, it's efficient overall.

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

Completeness5/5

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

Given the tool's complexity (7 parameters, nested objects, output schema exists), the description is complete. It covers the matching logic, re-ranking, alternative tool for radius search, and parameter behavior. The output schema is present, so return values need not be detailed. All necessary context for effective use is provided.

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

Parameters5/5

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

With 100% schema coverage, the description still adds substantial value: it explains how the 'conditions' parameter works (phrase matching, OR combination, re-ranking), clarifies the 'sex' parameter ('ALL' meaning), details location as narrowing match but not radius-based, and explains defaults for 'healthyVolunteer' and 'recruitingOnly'. The schema itself has descriptions, but the tool description enhances understanding.

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 clearly states the specific purpose: matching patient demographics and conditions to eligible recruiting clinical trials. It uses a specific verb ('Match') and identifies the resource (clinical trials with eligibility criteria). It distinguishes itself from sibling tools by mentioning both the matching functionality and the re-ranking behavior, and later explicitly contrasts with clinicaltrials_search_studies for radius-based search.

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

Usage Guidelines5/5

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

The description explicitly tells the agent when to use this tool ('Provide age, sex, conditions, and location to find studies') and provides an alternative ('For radius-based geographic search, use clinicaltrials_search_studies with geoFilter'). It also implies that this tool is for patient-specific matching, not general search.

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