# PubMed article search

Searches 38M+ PubMed biomedical citations with full PubMed syntax (MeSH terms, [tiab], [pt] publication types, authors, journals) and optional publication date. Needs term.

Searches 38M+ PubMed biomedical citations with full PubMed syntax (MeSH terms, [tiab], [pt] publication types, authors, journals) and optional publication date range. Returns the hit count, PMIDs and the query translation; read them with pubmed/summaries or pubmed/abstracts.

- Tool ID: `pubmed/search`
- Provider: [PubMed](/providers/pubmed.md)
- Capability: [Scientific papers](/tools/knowledge/papers.md)
- Price: no charge per call
- Authentication: an authorised Agentik workspace is required for execution, including zero-price tools.

## Pricing contract

No charge per call. A workspace is still needed so your agent can call it.


```json
{
  "model": "per_call",
  "amountUsd": 0
}
```

## Complete input schema


```json
{
  "type": "object",
  "properties": {
    "term": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "PubMed query, e.g. 'semaglutide[tiab] AND randomized controlled trial[pt]'"
    },
    "retmax": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 20,
      "description": "PMIDs to return, e.g. 20"
    },
    "retstart": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9999,
      "description": "Index of the first PMID for paging, e.g. 20"
    },
    "sort": {
      "type": "string",
      "enum": [
        "relevance",
        "pub_date",
        "Author",
        "JournalName"
      ],
      "default": "relevance",
      "description": "Sort order, e.g. 'pub_date'"
    },
    "mindate": {
      "type": "string",
      "pattern": "^[0-9]{4}(/[0-9]{2}(/[0-9]{2})?)?$",
      "description": "Publication date from (YYYY, YYYY/MM or YYYY/MM/DD), e.g. '2020/01/01'"
    },
    "maxdate": {
      "type": "string",
      "pattern": "^[0-9]{4}(/[0-9]{2}(/[0-9]{2})?)?$",
      "description": "Publication date to, e.g. '2023/12/31'"
    }
  },
  "required": [
    "term"
  ],
  "additionalProperties": false,
  "dependencies": {
    "mindate": [
      "maxdate"
    ],
    "maxdate": [
      "mindate"
    ]
  }
}
```

## Published example

This is the provider tool’s published example. Replace example values with the user’s requested inputs, respecting the schema; do not execute an example merely to test a connection.


```json
{
  "tool_id": "pubmed/search",
  "input": {
    "term": "semaglutide AND cardiovascular",
    "retmax": 3,
    "mindate": "2020/01/01",
    "maxdate": "2023/12/31"
  }
}
```

## Execute and retrieve

Inspect again before execution, explain the price and obtain the required authority. Use MCP run_tool or POST /v1/run with this tool ID, valid input and an idempotency key. Save the returned run ID and follow the actual state. If Agentik answers that the tool is temporarily unavailable, do not retry it blindly; use discovery to propose an alternative.

A partial or uncertain result can still have consumed provider resources. Consult [billing](/docs/billing.md), [idempotency](/docs/idempotency.md) and [asynchronous results](/docs/async.md).

Licence: NLM PubMed data terms (free use; some abstracts are copyrighted by their publishers).

Attribution: Citations from PubMed, U.S. National Library of Medicine (NCBI E-utilities).

[Provider documentation](https://www.ncbi.nlm.nih.gov/books/NBK25499/)

[REST inspection](https://api.agentik.cc/v1/tools/pubmed/search) · [OpenAPI](/openapi.json) · [Connection guide](/connect.md)

---

[HTML page](/providers/pubmed/search) · [Agent index](/llms.txt)
