Skip to main content
Glama

Esearch

esearch
Read-onlyIdempotent

Search an Entrez database (e.g. pubmed, gene, nucleotide) by query term and return a list of matching UIDs (up to 10,000) with hit count. Supports pagination via retstart and sort (e.g. pub_date).

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",
      "term": "BRCA1 mutations"
    },
    "name": "esearch"
  }
}

Input Schema

NameRequiredDescriptionDefault
dbYes
sortNoe.g. "pub_date" (PubMed), "relevance"
termYes
retmaxNo1-10000 (default 20)
retstartNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "db": "pubmed",
      +    "term": "BRCA1 mutations"
      +  },
      +  {
      +    "db": "nucleotide",
      +    "retmax": 100,
      +    "sort": "pub_date",
      +    "term": "human insulin"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "NCBI esearch response - search results with UIDs",
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), so the bar is lower. The description adds real value with the 10,000 UID cap, hit-count return, and pagination/sort behavior, but says nothing about NCBI rate limits, API-key requirements, or the total-count/pagination loop an agent must run.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler, with the core operation and return type front-loaded before the pagination details. Every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, but with 5 parameters at 40% schema coverage the definition should fully close the gap on retstart/retmax and on the db enumeration it currently hedges with 'e.g.'. Operational constraints like rate limits are also absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 40%, so the description must compensate; it partially does by illustrating db values, sort values (pub_date), and framing retstart as pagination, which the schema leaves entirely undocumented. It still never defines retstart as an offset or explains retmax's interaction with the 10,000 cap beyond the schema's own '1-10000 (default 20)'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

It names a specific verb+resource ('Search an Entrez database') and pins down the return contract: matching UIDs, up to 10,000, plus a hit count. That implicitly separates it from retrieval-style siblings (efetch/esummary), though no sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer this is the search/discovery step before fetching records, but the description never states when to prefer it over efetch, esummary, elink, or egquery, nor any when-not conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.