Skip to main content
Glama

ClinicalTrials.gov study search

clinical_trials_search
Read-onlyIdempotent

ClinicalTrials.gov study search (official v2 API) by condition, intervention/drug, sponsor, location, keyword, recruitment status and phase. Useful for trial finding, pipeline and competitive research. Returns total count, NCT IDs, titles, status, phases, conditions, interventions, sponsor, enrollment, key dates, has-results flag and study links, with paging token, source URL and retrievedAt. Errors: 400 invalid input. PAID: $0.001 USDC per call on Base via x402 (MCP transport: retry with params._meta["x402/payment"]). Same tool over plain HTTP: GET /v1/clinical-trials/search.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "clinical_trials_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoany-field keywords
sortNo
limitNo
phaseNocomma-separated: early1, 1, 2, 3, 4, na
statusNocomma-separated: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, ...
sponsorNo
locationNocity, state or country
conditionNo
page_tokenNonextPageToken from a previous call
interventionNodrug, device or procedure

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, it discloses the paid cost model ($0.001 USDC per call on Base via x402), the exact retry mechanism with params._meta["x402/payment"], the 400 error case, and paging via nextPageToken. These are precisely the operational facts an agent needs that annotations cannot express.

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?

Front-loaded with purpose and filters, then returns, then errors and payment — a sensible ordering. The long enumeration of return fields is dense but compensates for the absent output schema; only slight tightening would be possible.

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?

For a 10-parameter, zero-required, open-world search with no output schema, the description covers purpose, filter surface, return shape, pagination, errors and payment. Missing pieces are minor: defaults for limit/sort and filter combination semantics.

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 60% schema description coverage, the description usefully maps friendly concepts to parameters (intervention/drug, sponsor, location, phase, status) and mentions the paging token, but adds nothing about sort ordering, the limit default/cap, or whether multiple filters are ANDed. Baseline 3 is right given the schema does most of the work.

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

Purpose4/5

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

States a specific verb+resource (search ClinicalTrials.gov studies) and enumerates the filterable dimensions — condition, intervention/drug, sponsor, location, keyword, status, phase — which clearly separates it from the sibling clinical_trial_study (single-study retrieval). It never explicitly names that sibling as the alternative, so it stops short of a 5.

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

Usage Guidelines3/5

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

'Useful for trial finding, pipeline and competitive research' gives implied usage context, but there is no explicit when-not guidance or routing rule such as 'use clinical_trial_study once you have an NCT ID'. Prerequisites (e.g., at least one filter to avoid a broad scan) are also unstated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources