Skip to main content
Glama

get_data

Get gene, protein, and region data by querying gene IDs, proteins, genomic coordinates, or keywords. Supports batch queries and species filtering.

Instructions

智能数据获取接口 - 统一处理所有查询类型

自动识别查询类型:

  • "TP53" → 基因信息查询

  • "P04637" → 蛋白质详细信息查询

  • "cancer" → 基因搜索

  • "protein kinase" → 蛋白质功能搜索

  • "chr17:7565097-7590856" → 区域搜索

  • "TP53, BRCA1" → 批量基因信息

  • "breast cancer genes" → 智能搜索

  • "TP53 homologs" → 同源基因查询

  • "evolutionary conservation" → 进化分析查询

Args: query: 查询内容(可以是基因ID、蛋白质ID、搜索词、区域、ID列表、进化相关查询) query_type: 查询类型(auto/info/search/region/protein/gene_protein/ortholog/evolution) data_type: 数据类型(gene/protein/gene_protein/ortholog/evolution) format: 返回格式(simple/detailed/raw) species: 物种(默认:human,支持9606/human/mouse/rat等) max_results: 最大结果数(默认:20)

Returns: 查询结果字典,包含基因和/或蛋白质信息

Examples: # 基因信息查询 get_data("TP53") get_data("TP53", format="detailed")

# 批量查询
get_data(["TP53", "BRCA1", "BRCA2"])

# 区域搜索
get_data("chr17:7565097-7590856")

# 蛋白质查询
get_data("P04637", data_type="protein")

# 基因-蛋白质整合查询
get_data("TP53", data_type="gene_protein")

# 蛋白质功能搜索
get_data("tumor suppressor", data_type="protein")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
query_typeNoauto
data_typeNogene
formatNosimple
speciesNohuman
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successYes
dataYes
errorYes
metadataYes
Behavior4/5

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

No annotations are provided, so the description fully explains the tool's behavior, including auto-detection of query types and parameter effects. It lacks information on authentication or rate limits, but for a read-only tool, the disclosure is adequate.

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?

The description is well-structured with clear sections and examples, though it is somewhat lengthy. The key purpose is front-loaded, and each example adds value, but some redundancy exists (e.g., repeated query_type explanations).

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

Completeness4/5

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

Given the tool's complexity (6 parameters, output schema exists), the description covers usage patterns comprehensively. It lacks details on error handling or performance, but for typical use cases it is sufficiently complete.

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

Parameters5/5

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

With 0% schema description coverage, the description compensates fully by listing all parameters, their defaults, and allowed values. It also provides context-specific examples (e.g., 'query' can be a string or array), adding substantial meaning beyond the raw schema.

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?

The description clearly identifies this as a unified data retrieval tool that handles various query types (gene, protein, region, etc.). It provides extensive examples and distinguishes itself from siblings by being a general-purpose query interface.

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

Usage Guidelines4/5

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

The description offers numerous examples showing when to use different query types and parameters, effectively guiding the agent. However, it does not explicitly contrast with sibling tools like advanced_query or smart_search, leaving some ambiguity about when to choose alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gqy20/genome-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server