Skip to main content
Glama

Efetch

efetch
Read-onlyIdempotent

Full 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

NameRequiredDescriptionDefault
dbYes
idsYes
retmodeNotext (default) | xml | json
rettypeNoe.g. "abstract", "fasta", "gb", "xml"

Output Schema

NameRequiredDescriptionDefault
bodyNoResponse body as text (XML/GenBank/FASTA/etc); absent when retmode=json
content_typeNoHTTP Content-Type header value

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "db": "pubmed",
      +    "ids": [
      +      "35897812"
      +    ],
      +    "rettype": "abstract"
      +  },
      +  {
      +    "db": "nucleotide",
      +    "ids": [
      +      "NC_000001.11"
      +    ],
      +    "retmode": "text",
      +    "rettype": "fasta"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "body": {
      +      "description": "Response body as text (XML/GenBank/FASTA/etc); absent when retmode=json",
      +      "type": "string"
      +    },
      +    "content_type": {
      +      "description": "HTTP Content-Type header value",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive behavior. The description adds useful context that output is text in formats like XML/GenBank/FASTA driven by rettype, but it omits batch limits, error behavior, and authentication or rate-limit context.

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

Conciseness4/5

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

Two short sentences with no filler, and the return-format point is front-loaded. The terseness becomes under-specification rather than a structural flaw.

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

Completeness2/5

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

Although an output schema and annotations are present, the description still does not explain the required db and ids inputs or when this tool is the right choice. For a four-parameter retrieval tool with 50% schema coverage, it is not complete enough to guide correct invocation confidently.

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

Parameters2/5

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

Schema coverage is 50%; db and ids are undocumented in both schema and description, while the description only mentions rettype, which the schema already explains. It adds no clarity on ID formats, multi-ID behavior, or retmode.

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

Purpose3/5

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

The description identifies the operation as returning 'Full records' and specifies that output format follows rettype, broadly distinguishing it from summary-style retrieval. However, it never states the verb 'fetch/retrieve', does not mention the database/ID inputs, and does not explicitly contrast it with siblings like esummary or esearch.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no alternatives named. 'Full records' implies a retrieval use case but does not tell an agent when to choose efetch over esummary or esearch.

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.