Count research papers
count_papersCount papers matching filters, including linkedTrialRegistrationNumbers for curated relatedTrials links and accessTypes with canonical values 'open' or 'paywall'. With orderBy:'relevantInfluential', both count and sample use the same primary title-or-summary subject cohort before citation ranking. Returns { count: , sample: <top 5 representative papers for citation> }. Use for 'how many papers...?' / 'how often...?' questions. For 'top journals', 'papers per year', or 'study-design distribution' use aggregate_papers instead.
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": "count_papers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| dateTo | No | ||
| topics | No | Topic slugs (e.g. "depressive-disorders", "ocd"). Common abbreviations like "PTSD", "TRD", "OCD" and short names like "depression", "anxiety" are auto-mapped to canonical slugs. | |
| orderBy | No | Sort order. "relevance" = best text match (default), "date" = newest first; use date for "latest"/"recent"/"new" questions. "citations" = most-cited first. "relevantInfluential" = citation-ranked papers that first qualify by the primary title-or-summary subject pattern; use only after the user confirms a subject axis for influential-literature discovery. | relevance |
| dateFrom | No | ||
| compounds | No | Compound slugs (e.g. "psilocybin", "mdma"). Street names ("shrooms", "ecstasy") and brand/program names ("COMP360", "MM-120") are auto-mapped. | |
| accessTypes | No | Canonical paper access status. Use ["open"] for open-access papers or ["paywall"] for paywalled / subscription-only papers. | |
| authorSlugs | No | ||
| journalSlug | No | ||
| studyDesign | No | "meta" = meta-analyses/reviews; "individual" = primary studies | |
| linkedTrialSlugs | No | Slugs of trials this paper is linked to (relatedTrials[]). Use to find papers from a specific trial. | |
| outcomeMeasureSlugs | No | Slugs of clinical / mental-health rating scales used as outcome measures (e.g. "beck-depression-inventory", "madrs", "y-bocs"). Common abbreviations like "BDI", "MADRS", "PHQ-9", "GAD-7", "Y-BOCS", "PCL-5", "MEQ-30" are auto-mapped. | |
| linkedTrialRegistrationNumbers | No | Exact ClinicalTrials.gov IDs of trials linked through curated relatedTrials references (for example NCT03537014). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |