Count records
library_countCounts the records a find in one library database lists, by the values of one field, largest count first. Its databases, by the name the database input takes:
trials: by status, phase, size, year, condition, sponsor: The field to count: status, phase, participants (size), year, condition or lead sponsor. A count by year reads the year of the date asked, while the year input still keeps the trials first posted in its year. q: Words from a trial's title, conditions, interventions, sponsor or registered outcomes, its NCT number, or another registry's ID, as Find trials reads them. kind with-results: Only the trials that posted results to ClinicalTrials.gov. date first-posted, start, primary-completion, completion, results-first-posted, last-updated: The date that from, to and a count by year read: the day a trial was first posted, first posted results or was last updated, or the start, primary completion or completion it states as a year, month or day, which from and to compare by year. First posted when not given. from: Only the trials whose date is this day or later: a year from 1900 to 2099, which starts on 1 January, or a day as YYYY-MM-DD, such as 2020 or 2020-06-30. A trial with no date of that kind is left out. to: Only the trials whose date is this day or earlier: a year from 1900 to 2099, which ends on 31 December, or a day as YYYY-MM-DD, such as 2024 or 2024-12-31. A trial with no date of that kind is left out.
patent-sequences: by applicant, office, kind_code, molecule, year: The field to count. A count by year reads the year of the date asked. q: A publication's number, a reviewed UniProt accession, or words from titles and applicants, as Find patent publications reads them. kind uniprot: Only the publications with a sequence identical to a reviewed UniProt protein. date published, filed, priority: The date that from, to and a count by year read: the day a publication was published, the day its application was filed, or its earliest priority date. Published when not given. from: Only the publications whose date is this day or later: a year from 1900 to 2099, which starts on 1 January, or a day as YYYY-MM-DD, such as 2020 or 2020-06-30. A publication with no date of that kind is left out. to: Only the publications whose date is this day or earlier: a year from 1900 to 2099, which ends on 31 December, or a day as YYYY-MM-DD, such as 2024 or 2024-12-31. A publication with no date of that kind is left out.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database": "<database>",
"by": "<by>"
},
"name": "library_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Its form for each database is in that database's line of this tool's description. | |
| by | Yes | Its form for each database is in that database's line of this tool's description. | |
| to | No | Its form for each database is in that database's line of this tool's description. | |
| top | No | How many values to list, largest count first: 10 when not given. A count by year lists every year and does not read it. | |
| date | No | Its form for each database is in that database's line of this tool's description. | |
| from | No | Its form for each database is in that database's line of this tool's description. | |
| kind | No | Its form for each database is in that database's line of this tool's description. | |
| size | No | Trials only. Only the trials whose participants, actual or estimated, are in this range. | |
| test | No | Trials only. A ConductCognition test's ID, such as stroop: only the trials whose registered outcomes name that test. | |
| year | No | Trials only. Only the trials first posted in this year. | |
| phase | No | Trials only. Only the trials of this phase. A trial of phase 1 and 2 is in both. | |
| office | No | Patent sequences only. Only the publications of this office, such as US, EP or JP, or WO for an international application. | |
| status | No | Trials only. Only the trials with this status, ClinicalTrials.gov's in lower case with dashes, such as recruiting or not-yet-recruiting. | |
| sponsor | No | Trials only. Only the trials with this lead sponsor, as the trials write it. | |
| database | Yes | The database, by the name this tool's description lists it under. | |
| molecule | No | Patent sequences only. Only the publications that list a nucleotide sequence, or a protein sequence. A publication that lists both is in both. | |
| applicant | No | Patent sequences only. Only the publications of this applicant, as the publications name it, such as Genentech, Inc. | |
| condition | No | Trials only. Only the trials that name this condition, as the trials write it, such as Stress. | |
| kind_code | No | Patent sequences only. Only the publications of this kind code, as a publication prints it, such as B2 or A1. |