Pubmed Lookup Mesh
pubmed_lookup_meshRetrieve MeSH descriptor records with tree numbers, scope notes, and entry terms. Supports pagination for large result sets.
Instructions
Search and explore the MeSH (Medical Subject Headings) controlled vocabulary. Returns descriptor records with tree numbers, scope notes, and entry terms, plus pagination via offset for paging past the maxResults cap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | MeSH descriptor name or free-text term to look up | |
| offset | No | Result offset for pagination (0-based). Pass the `nextOffset` from the previous response to get the following page; the exact-descriptor match is pinned to the first page only. | |
| maxResults | No | Maximum results | |
| includeDetails | No | Fetch full MeSH records (scope notes, tree numbers, entry terms) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Original search query | |
| notice | No | Optional guidance when no descriptors matched or the offset overshot the result set — suggests spell-check, free-text search, or resetting the offset. Absent on successful result pages. | |
| offset | Yes | Result offset this page was read from | |
| results | Yes | Matching MeSH records | |
| nextOffset | No | Offset to request for the next page. Omitted when this is the last page, so its absence is the end-of-results signal. | |
| totalCount | Yes | Total MeSH descriptors matching the query upstream, before the maxResults cap |