Skip to main content
Glama
ebi-search

ebi-search

Official
by ebi-wp

EBI Search: get whole entries by ID

ebi_ebisearch_get_entries_by_id
Read-onlyIdempotent

Retrieve full entries from one EMBL-EBI database by ID when you need complete, unshortened text, with follow-up calls for omitted entries or continued fields.

Instructions

Get whole entries from one EMBL-EBI database ("domain") by their IDs.

Use this for the few entries needed to answer the question: when ebi_ebisearch_get_matching_entries shortened their text (fields_shortened), or when the question gives an entry ID. Text is never shortened.

Very long answers come in parts. Entries that did not fit are listed in not_included: ask for them in another call. A field whose text continues is listed in the entry's fields_continued: to read on, call again with that entry's ID only, field and start. IDs that do not exist in the domain are listed in not_found. Cross-references to other databases are not included: ebi_ebisearch_get_cross_references follows them.

When answering from these entries, name the domain and entry IDs used (e.g. UniProt P42212), with their links.

Limits: up to 20 IDs; at most 25,000 characters of text in one answer; the rest is listed in not_included or fields_continued; at most 30 tool calls a minute from one caller; above that, wait the seconds the error gives.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "<domain>",
      "ids": "<ids>"
    },
    "name": "ebi_ebisearch_get_entries_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesEntry IDs (accessions) from that domain, e.g. ['P38398', 'P04637'], at most 20. Prefixed IDs for the domain work too, e.g. 'uniprot:P38398'.
fieldNoOnly to read on in a long field: the field ID from an entry's `fields_continued`, with that entry's ID as the only ID.
startNoOnly with `field`: the position to read on from, as given in `fields_continued`.
domainYesID of the domain the entries are in, e.g. 'uniprot'.

Output Schema

NameRequiredDescriptionDefault
citeNoHow to cite the entries in this answer, with an example. Null when there are no entries.
notesYesAnything else to know about this answer.
domainYesDomain ID, e.g. 'uniprot'.
sourceNoWhere this answer came from, and when.
statusNo'ok' when everything asked for is answered; 'partial' when part is missing from this answer: IDs in `not_found`, entries in `not_included`. Read those before answering.ok
entriesYesThe entries, in the order requested.
releaseNoWhich release of this domain's data was searched, its date, and the database's home page (for its licence and citation); null when EBI Search gives none.
not_foundYesRequested IDs that do not exist in this domain. They may exist in another domain.
domain_nameYesReadable name, e.g. 'UniProtKB'.
not_includedYesRequested IDs that exist but did not fit in this answer. Ask for them in another call.
field_descriptionsYesWhat each field in these entries means, as described by EBI Search.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well past the readOnly/idempotent annotations: it discloses that text is never shortened here, that oversized answers are split with leftovers named in `not_included`, that truncated fields appear in `fields_continued` and are resumable, that missing IDs surface in `not_found`, and it states concrete limits (20 IDs, 25,000 characters, 30 calls/minute). That is exceptional disclosure; the only small gap is no statement about ordering or error behavior beyond rate limiting.

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?

Front-loaded with the purpose and the disambiguating trigger, then organized into response-behavior and limits paragraphs. It is somewhat long and repeats the not_included/fields_continued mechanism twice, but every section is scannable and mostly earns its place.

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

Completeness5/5

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

For a four-parameter read tool with an output schema, this covers everything an agent needs: when to call it, how to handle partial results, how to resume a long field, what happens to unknown IDs, rate limits, and a citation convention for the answer. No obvious operational question is left open.

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 description coverage is 100%, so parameter meaning is already carried structurally, warranting the baseline. The description reinforces the `field`/`start` continuation protocol and the ID/25,000-character caps, but these largely restate what the schema's own descriptions and maxItems/minItems constraints already declare.

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

Purpose5/5

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

States a specific verb and resource ("Get whole entries from one EMBL-EBI database") and immediately contrasts with the sibling that returns shortened text (ebi_ebisearch_get_matching_entries). The parenthetical gloss on "domain" removes ambiguity about the scope of the lookup.

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

Usage Guidelines5/5

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

Gives explicit selection criteria: use this when the matching-entries tool shortened text via `fields_shortened`, or when the question supplies an entry ID. It also names the alternative for a related need (ebi_ebisearch_get_cross_references for cross-database links), so the agent can route without guessing.

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