Skip to main content
Glama

EBI Search

EBI Search: get entries from chosen domains

ebi_ebisearch_get_matching_entries
Read-onlyIdempotent

Get entries from chosen EMBL-EBI databases ("domains"), in parallel.

Use ebi_ebisearch_get_matching_domains first to see which domains have results, then choose the domains relevant to the question by what they contain, not by how many hits they have. Entries are returned best match first, each with an ID, the domain's own fields and a link for citing. What each field means is in that domain's field_descriptions. Long text is shortened; fields_shortened lists which fields, and ebi_ebisearch_get_entries_by_id returns the full text.

Results are partial: total_hits is how many entries match and returned how many are included. If the answer is not in the returned entries, narrow the search, ask for more with next_start, or try another domain; do not conclude that nothing exists. Domains that could not be searched are listed in failures with the reason.

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

Limits: up to 10 domains; 10 entries per domain by default, at most 50 (and at most 200 in all, shared between the domains); long text cut to 300 characters; answers up to 30,000 characters: when more entries would not fit, the rest are left out and next_start continues from them; start up to 100,000; search text up to 500 characters; 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": {
      "query": "<query>",
      "domains": "<domains>"
    },
    "name": "ebi_ebisearch_get_matching_entries"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch text as typed into EBI Search, e.g. 'brca1'. Field searches narrow results, e.g. 'hemoglobin AND TAXONOMY:9606' (human) in pdbe. Field names differ between domains and are case-sensitive; a domain without a field the search names is listed in `failures`.
startNoPosition of the first entry, for getting more entries: use a domain's `next_start`, with only that domain.
domainsYesIDs of the domains to search, as listed by ebi_ebisearch_get_matching_domains, e.g. ['uniprot', 'ensembl_gene']. Choose the few most relevant to the question, usually 1-5 (at most 10).
entries_per_domainNoEntries to return from each domain (default 10, at most 50). Ask for more only when the question needs it.

Output Schema

NameRequiredDescriptionDefault
citeNoHow to cite the entries in this answer, with an example. Null when there are no entries.
notesYesAnything adjusted in the request, or else worth knowing.
queryYesThe search text that was used.
sourceNoWhere this answer came from, and when.
statusNo'ok' when everything asked for is answered; 'partial' when part is missing from this answer: domains in `failures`. Read those before answering.ok
resultsYesOne result per domain searched, in the order requested.
failuresYesDomains that could not be searched. Other results are still complete.
entries_per_domainYesMaximum number of entries returned per domain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond readOnlyHint/openWorldHint/idempotentHint: it discloses best-match ordering, 300-character truncation with a `fields_shortened` marker, partial-result semantics (`total_hits` vs `returned`), a `failures` list for unsearchable domains, and a full limits block (10 domains, 50/domain, 200 total, 30,000-char answer cap, start ceiling, 500-char query, 30 calls/minute with retry-after behavior). The rate limit and degraded-domain behavior are exactly the kind of context annotations cannot convey.

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 purpose, then workflow, then result semantics, then limits — a sensible order with no filler sentences. It is on the long side and the limits block is dense, but nearly every clause carries operationally useful content.

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 multi-domain, paginated, rate-limited search tool it covers everything an agent needs to call it correctly and interpret partial results, even though the output schema already exists. Domain selection, pagination continuation, truncation, failures, and citation requirements are all addressed.

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 100%, so the baseline is 3; the schema already documents `query` field syntax, `start`'s next_start usage, domain selection, and entries_per_domain defaults. The description adds little parameter-level detail beyond limits not encoded in the schema (start up to 100,000, query up to 500 characters), and in fact repeats the schema's 'ask for more only when needed' guidance.

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 ('Get entries') plus the resource ('chosen EMBL-EBI databases ("domains")') and the parallel execution model. It clearly separates itself from ebi_ebisearch_get_matching_domains (domain discovery) and ebi_ebisearch_get_entries_by_id (full text of known entries).

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?

Explicitly prescribes the workflow: call ebi_ebisearch_get_matching_domains first, then pick domains 'by what they contain, not by how many hits they have.' It also names the alternative for full text (ebi_ebisearch_get_entries_by_id) and gives a fallback sequence when results are incomplete (narrow, use next_start, or try another domain).

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.