search
Query PubMed with Boolean, MeSH, and field tags to get hit counts, PMIDs, dates, journals, titles, authors, DOIs, and PMC links, with sorting, paging, and date range filters.
Instructions
检索 PubMed,返回命中数及 PMID、日期、期刊、标题、作者、DOI、PMC、文献类型。
term 使用英文 PubMed 语法:resorption[Title]、"root resorption"[tiab]、AND/OR/NOT、截词 *。 布尔算子写大写,引号只包短语,括号须配对。MeSH 请核对实际执行式:写错的带引号词会报 quotedphrasesnotfound,不带引号可能改写成别的概念;有命中不证明原短语存在。 sort: pub_date / relevance / author;不能按期刊质量排序。 field 可用 Title、Title/Abstract、Journal、Author、Affiliation、Language、Grant、PMID 等; 未支持值会报错。MeSH/文献类型请写进 term 的 [MeSH Terms]/[Publication Type] 标签。 日期按发表日期;mindate/maxdate 接受 YYYY、YYYY-MM、YYYY-MM-DD 或斜杠写法。 单端日期自动补另一端并提示。reldate=0 不限,正数为最近天数;和显式日期同时给时做 AND。 retmax 默认 20,上限 1000;retstart 为零起始偏移,上限 9998,最多可翻前 9999 条。 只要计数用 count;需要题录直接 search,无需先 count。as_json=True 返回完整解析和结构化记录。 detail: full 默认完整题录;brief 仅 PMID/日期/标题/全部文献类型;ids 仅 PMID,不取元数据或检查撤稿类型。 各档保留查询警告;brief 省略字段不表示缺失,ids 的 returned 计 PMID 数、esummary_missing 为 null。 先读 ⚠️:改写后的命中数不等于原查询命中数;0 条不证明主题无文献。PMC 号不保证立即可下载。
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": {
"term": "<term>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | ||
| term | Yes | ||
| field | No | ||
| detail | No | full | |
| retmax | No | ||
| as_json | No | ||
| maxdate | No | ||
| mindate | No | ||
| reldate | No | ||
| retstart | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |