Efetch
efetchFull records. Returns text (XML/GenBank/FASTA/...) per rettype.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"db": "pubmed",
"ids": [
"35897812"
],
"rettype": "abstract"
},
"name": "efetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | ||
| ids | Yes | ||
| retmode | No | text (default) | xml | json | |
| rettype | No | e.g. "abstract", "fasta", "gb", "xml" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body as text (XML/GenBank/FASTA/etc); absent when retmode=json | |
| content_type | No | HTTP Content-Type header value |