# lookupMeshTerms

**Identifier:** `pubmed_lookupMeshTerms`

**Provider:** [PubMed](https://kirha.com/providers/pubmed.md)

Resolve natural language medical/scientific terms to their canonical MeSH (Medical Subject Headings) descriptors, for MeSH-based PubMed searches (searchPubmed meshTerms). For example, 'statins' resolves to 'Hydroxymethylglutaryl-CoA Reductase Inhibitors', 'chronic kidney disease' resolves to 'Renal Insufficiency, Chronic'. Returns the canonical heading, scope note, and synonyms for each term.

## Run it with the CLI

```bash
kirha tools run pubmed_lookupMeshTerms \
  --input '{
    "terms": [
      "statins"
    ]
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "pubmed_lookupMeshTerms",
  "input": {
    "terms": [
      "statins"
    ]
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "terms": {
      "description": "Natural language medical/scientific terms to resolve to MeSH headings. Use common names, abbreviations, or synonyms (e.g. 'statins', 'COPD', 'high blood pressure')",
      "items": {
        "type": "string"
      },
      "maxItems": 10,
      "minItems": 1,
      "type": "array"
    }
  },
  "required": [
    "terms"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "results": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "entryTerms": {
            "description": "Synonyms and alternative names recognized by PubMed",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "found": {
            "type": "boolean"
          },
          "inputTerm": {
            "type": "string"
          },
          "meshHeading": {
            "description": "Canonical MeSH descriptor name to use in PubMed searches",
            "type": "string"
          },
          "meshUI": {
            "description": "MeSH unique identifier (e.g. D019161)",
            "type": "string"
          },
          "scopeNote": {
            "description": "Definition/scope of the MeSH term",
            "type": "string"
          }
        },
        "required": [
          "inputTerm",
          "found",
          "meshHeading",
          "meshUI",
          "scopeNote",
          "entryTerms"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "results"
  ],
  "type": "object"
}
```

## Related tools

Other PubMed tools that this tool refers to, or that refer to it.

- [`searchPubmed`](https://kirha.com/providers/pubmed/searchPubmed.md)

-----

[All PubMed tools](https://kirha.com/providers/pubmed.md) · [< Back to tools list](https://kirha.com/tools.md)