{"format":"xpay-agent-txt","format_version":"1.0","_comment":"Machine-readable service descriptor for AI agents","provider":{"name":"Clinical Trials","description":"Search and analyze clinical trials from ClinicalTrials.gov.","portal":"https://clinical-trials.on.xpay.sh","website":"https://clinicaltrials.gov"},"mcp_servers":[{"name":"Clinical Trials","slug":"clinical-trials","description":"Search and analyze clinical trials from ClinicalTrials.gov","url":"https://clinical-trials.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY","tool_count":12,"tools":[{"name":"search_trials_by_condition","description":"Search clinical trials by medical condition(s).\n\nThis tool allows you to search for clinical trials based on a list of medical conditions.\n\nInput:\n  - `conditions`: A list of strings, where each string is a medical condition to search for.\n                  The search will find trials related to any of the specified conditions.\n                  Example: `['cancer', 'diabetes']`\n  - `max_studies`: The maximum number of studies to return. Defaults to 50.\n  - `fields`: A list of specific fields to return in the results. If not provided, returns\n              SEARCH_TOOL_DEFAULTS (9 essential fields: NCTId, BriefTitle, Acronym, Condition,\n              Phase, InterventionName, LeadSponsorName, OverallStatus, HasResults).","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"search_trials_by_intervention","description":"Search clinical trials by intervention/treatment.\n\nThis tool allows you to search for clinical trials based on a list of interventions or treatments.\n\nInput:\n  - `interventions`: A list of strings, where each string is an intervention or treatment to search for.\n                     The search will find trials related to any of the specified interventions.\n                     Example: `['aspirin', 'chemotherapy']`\n  - `max_studies`: The maximum number of studies to return. Defaults to 50.\n  - `fields`: A list of specific fields to return in the results. If not provided, returns\n              SEARCH_TOOL_DEFAULTS (9 essential fields: NCTId, BriefTitle, Acronym, Condition,\n              Phase, InterventionName, LeadSponsorName, OverallStatus, HasResults).","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"search_trials_by_sponsor","description":"Search clinical trials by sponsor/organization.\n\nThis tool allows you to search for clinical trials based on a list of sponsor organizations.\n\nInput:\n  - `sponsors`: A list of strings, where each string is a sponsor organization to search for.\n                The search will find trials sponsored by any of the specified organizations.\n                Example: `['National Cancer Institute', 'Pfizer']`\n  - `max_studies`: The maximum number of studies to return. Defaults to 50.\n  - `fields`: A list of specific fields to return in the results. If not provided, returns\n              SEARCH_TOOL_DEFAULTS (9 essential fields: NCTId, BriefTitle, Acronym, Condition,\n              Phase, InterventionName, LeadSponsorName, OverallStatus, HasResults).","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"search_trials_by_acronym","description":"Search clinical trials by study acronym.\n\nUses the Acronym field (protocolSection.identificationModule.acronym) to find\ntrials by their public short name. Example: 'TETON'. The API search is seeded\nwith the provided acronyms to narrow results, then results are filtered locally\nto ensure the acronym field matches the requested value(s).\n\nInput:\n  - `acronyms`: One or more acronyms to search for (e.g., ['TETON']).\n  - `max_studies`: Maximum number of studies to request from the API.\n  - `exact_match`: When true (default), matches acronyms exactly (case-insensitive).\n                   When false, matches if any provided acronym is contained within\n                   the study acronym (case-insensitive partial match).\n  - `fields`: A list of specific fields to return in the results. If not provided, returns\n              ACRONYM_SEARCH_DEFAULTS (8 fields optimized for acronym discovery: NCTId,\n              BriefTitle, Acronym, Condition, InterventionName, Phase, LeadSponsorName, HasResults).","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"search_trials_by_nct_ids","description":"Retrieve specific clinical trials by NCT ID(s).\n\nThis tool allows you to retrieve the details of specific clinical trials by providing their NCT IDs.\n\nInput:\n  - `nct_ids`: A list of strings, where each string is an NCT ID to retrieve.\n               Example: `['NCT04280705', 'NCT04280718']`\n  - `fields`: A list of specific fields to return in the results. If not provided, returns\n              SEARCH_TOOL_DEFAULTS (9 essential fields: NCTId, BriefTitle, Acronym, Condition,\n              Phase, InterventionName, LeadSponsorName, OverallStatus, HasResults).","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"search_trials_combined","description":"Search clinical trials using multiple criteria.\n\nThis tool allows you to perform a combined search using multiple criteria such as conditions, interventions, sponsors, and general terms.\n\nInput:\n  - `conditions`: A list of medical conditions to search for.\n  - `interventions`: A list of interventions or treatments to search for.\n  - `sponsors`: A list of sponsor organizations to search for.\n  - `terms`: A list of general search terms.\n  - `nct_ids`: A list of specific NCT IDs to include in the search.\n  - `max_studies`: The maximum number of studies to return. Defaults to 50.\n  - `fields`: A list of specific fields to return in the results. If not provided, returns\n              SEARCH_TOOL_DEFAULTS (9 essential fields: NCTId, BriefTitle, Acronym, Condition,\n              Phase, InterventionName, LeadSponsorName, OverallStatus, HasResults).","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"get_trial_details","description":"Get comprehensive details for a single clinical trial.\n\nThis tool retrieves detailed information for a single clinical trial given its NCT ID.\n\nInput:\n  - `nct_id`: The NCT ID of the trial to retrieve.\n              Example: `'NCT04280705'`\n  - `fields`: A list of specific fields to return. If not provided, returns DETAIL_TOOL_DEFAULTS\n              (25 comprehensive fields covering: NCTId, BriefTitle, OfficialTitle, Acronym, Condition,\n              Keyword, Phase, OverallStatus, InterventionType, InterventionName, InterventionDescription,\n              ArmGroupLabel, ArmGroupType, ArmGroupDescription, EligibilityCriteria, MinimumAge, MaximumAge,\n              Sex, PrimaryOutcomeMeasure, SecondaryOutcomeMeasure, BriefSummary, LocationFacility,\n              LocationCountry, LeadSponsorName, CollaboratorName, HasResults).","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"get_trial_details_batched","description":"Retrieve detailed clinical trial records in batches to reduce payload during discovery.\n\nAccepts a list of NCT IDs and fetches details in batches (default 10).\nPreserves the order of input NCT IDs in the returned list.\nUse this after search tools which return a minimal field set.\n\nInput:\n  - `nct_ids`: List of NCT IDs to retrieve in batches.\n  - `fields`: Specific fields to return. If not provided, returns DETAIL_TOOL_DEFAULTS\n              (25 comprehensive fields covering: NCTId, BriefTitle, OfficialTitle, Acronym, Condition,\n              Keyword, Phase, OverallStatus, InterventionType, InterventionName, InterventionDescription,\n              ArmGroupLabel, ArmGroupType, ArmGroupDescription, EligibilityCriteria, MinimumAge, MaximumAge,\n              Sex, PrimaryOutcomeMeasure, SecondaryOutcomeMeasure, BriefSummary, LocationFacility,\n              LocationCountry, LeadSponsorName, CollaboratorName, HasResults).\n  - `batch_size`: Number of trials to fetch per API call (default 10).","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"analyze_trial_phases","description":"Analyze the distribution of trial phases for given search criteria.\n\nThis tool analyzes the distribution of clinical trial phases (e.g., Phase 1, Phase 2, Phase 3) \nfor a given set of search criteria.\n\nInput:\n  - `conditions`: A list of medical conditions to filter the analysis.\n  - `interventions`: A list of interventions to filter the analysis.\n  - `sponsors`: A list of sponsors to filter the analysis.\n  - `max_studies`: The maximum number of studies to include in the analysis. Defaults to 1000.","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"get_field_statistics","description":"Get statistical information about field values.\n\nThis tool retrieves statistical information about the values of specified fields in the ClinicalTrials.gov database.\n\nInput:\n  - `field_names`: A list of field names to get statistics for.\n  - `field_types`: A list of field types to filter by.\n                   Example: `['ENUM', 'STRING']`","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"get_available_fields","description":"Get organized list of available fields for customizing search results.\n\nThis tool provides a list of available fields that can be used to customize the results of other search tools.\nThe fields are organized into categories.\n\nInput:\n  - `category`: An optional string to specify a category of fields to return.\n                If not provided, all categories and default fields will be returned.\n                Example: `'conditions'`","price":0.01,"pricing_model":"flat","currency":"USDC"},{"name":"search_trials_nct_ids_only","description":"Lightweight search returning only NCT IDs and minimal metadata for discovery.\n\nThis tool performs a lightweight search that returns only the NCT IDs and minimal metadata \nfor the purpose of discovering relevant trials.\n\nInput:\n  - `conditions`: A list of medical conditions to search for.\n  - `interventions`: A list of interventions or treatments to search for.\n  - `sponsors`: A list of sponsor organizations to search for.\n  - `terms`: A list of general search terms.\n  - `max_studies`: The maximum number of studies to return. Defaults to 100.","price":0.01,"pricing_model":"flat","currency":"USDC"}]}],"config":{"mcpServers":{"clinical-trials":{"url":"https://clinical-trials.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"}}},"instructions":["1. Get an API key at https://clinical-trials.on.xpay.sh/account/keys","2. Replace YOUR_XPAY_KEY in the server URLs above","3. Add the config block to your MCP client (Claude, Cursor, Windsurf)","4. Each tool call is billed per-use from your XPay wallet (USDC)"]}