Skip to main content
Glama

biobtree_search

Search 70+ biological databases.

SYNTAX: biobtree_search(terms="entity")

BEFORE SEARCHING - Use your training knowledge to plan:

  1. What type of entity is this? (disease, process, drug, gene, protein)

  2. What is the query asking for? (drugs, genes, function, etc.)

  3. What equivalent terms might give better results? (e.g., "temperature homeostasis" is a process → related condition is "fever")

  4. Choose best entry point for query type (disease terms for drug queries)

WORKFLOW:

  1. Search WITHOUT dataset filter first (discover where entity exists)

  2. Use IDs from results with biobtree_map

QUERY PATTERNS (choose based on question):

"DRUG FOR DISEASE/CONDITION X":

  • Prefer disease terms (mesh/mondo/efo) over GO terms for drug queries

  • If search only returns GO term, search for the related CONDITION instead (e.g., "temperature homeostasis" → search "fever" instead)

  • Search disease → mondo → clinical_trials → chembl_molecule

  • OR search drug class directly (e.g., "antipyretic", "NSAID", "antibiotic")

  • Verify mechanism for top 2-3 drugs only (don't enumerate all proteins!)

"DRUG TARGETS" (use BOTH paths for complete picture):

  • chembl: >>chembl_molecule>>chembl_target>>uniprot (mechanism-level)

  • pubchem: >>pubchem>>pubchem_activity>>uniprot (protein-level, often 50+ targets)

  • Filter approved: >>chembl_molecule[highestDevelopmentPhase==4]

"DISEASE GENES":

  • Search disease → mondo/hpo → gencc/clinvar/orphanet → hgnc

"PROTEIN FUNCTION":

  • Search protein → uniprot → go/reactome

"MECHANISM QUERIES" (drug-disease):

  • Use biobtree_entry to see what's connected (xrefs)

  • Check EDGES to see where each xref leads

  • Follow connections relevant to your question

  • Build chain: Drug → Target → [connections] → Disease

PAGINATION: if pagination.has_next is true there are more hits — call again with page=<pagination.next_token>. stats.total is the number of hits in THIS response, not the total number of matches. IDENTIFIER-SHAPED QUERIES: matched_namespace names the dataset of the best hit. If peripheral_match is true, only peripheral namespaces (e.g. vega transcripts, interaction rows) matched and no core gene/protein/disease/drug entity did — do not retry the same term; filter by dataset if you need the remaining rows. more_results counts rows omitted by the relevance cap. TRUNCATION: if truncated is true, data holds returned of total rows (cut at a whole-element boundary). The continuation token is invalidated because it refers to the untruncated page; narrow the query instead of paginating.

NOT_FOUND: for identifier-shaped terms (e.g. CTB-180A7.6, RP11-476M19.1) the response may carry not_found plus a hint when no gene/protein/disease/drug entry matched. The rows are interaction/annotation records; do not retry the same term. If you expected a gene, it may be absent from this database version.

RETURNS: id | dataset | name | xref_count

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": {
      "terms": "<terms>"
    },
    "name": "biobtree_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPagination token
termsYesComma-separated identifiers to search
datasetNoFilter to specific dataset (omit for discovery)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so in unusual depth: it explains pagination termination via pagination.has_next, that stats.total is per-response not total matches, what peripheral_match and more_results mean, and that truncation invalidates the continuation token. It also documents not_found/hint behavior and the return shape (id | dataset | name | xref_count).

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

Conciseness3/5

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

It is well-segmented with headers and front-loads the core purpose, but the longer half is query-strategy coaching ("What type of entity is this?", "temperature homeostasis" → "fever") rather than tool contract, and the result-disposition semantics near the end are dense. Useful, but noticeably over-long for a three-parameter search tool.

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?

There is no output schema, yet the description spells out the returned fields, the pagination and truncation contract, and the not-found path. For a discovery search over 70+ datasets with three parameters, nothing an agent needs in order to call it and interpret the response is missing.

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

Parameters4/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, but the description adds real meaning: dataset should be omitted for initial discovery, page takes pagination.next_token, and terms are queried as entity names that can be replaced with equivalent terms. Minor confusion comes from the SYNTAX line, which presents an example as if it were the calling convention.

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?

"Search 70+ biological databases" gives a specific verb (search) and resource (biological databases), and the WORKFLOW section explicitly routes results onward to biobtree_map, while biobtree_entry is named for mechanism exploration. An agent can distinguish this from siblings like biobtree_map or biobtree_atlas without opening any schema.

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?

The description gives explicit when-to-use guidance per question type ("DRUG FOR DISEASE/CONDITION X", "DISEASE GENES", "PROTEIN FUNCTION"), a recommended ordering ("Search WITHOUT dataset filter first"), and names alternatives to prefer, such as disease terms over GO terms and searching the related condition when only a GO term is returned.

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.

Resources