Skip to main content
Glama

gene_expression

Fetch GTEx median gene expression across tissues for an Ensembl gene ID, returning tissue site, ontology ID, median TPM, and gene symbol; choose gtex_v8, gtex_v10, or snRNA-seq pilot.

Instructions

Fetch GTEx median gene expression across tissues.

gene_id is an Ensembl gene id ("ENSG00000141510"); a versioned id is accepted. dataset is one of "gtex_v8" (default), "gtex_snrnaseq_pilot" or "gtex_v10". Returns tissue site, ontology id, median expression and unit (TPM), plus gene symbol/gencode id. Empty tissue lists are true upstream answers; only upstream fields are returned, missing fields are omitted, nothing is inferred or completed. Failures return an error dict (error, source).

Args: gene_id: Ensembl gene id. dataset: GTEx dataset id (default "gtex_v8"). limit: Tissue rows to return, 1-100 (default 20).

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": {
      "gene_id": "<gene_id>"
    },
    "name": "gene_expression"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
datasetNogtex_v8
gene_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it declares the returned fields (tissue site, ontology id, median expression, TPM unit, gene symbol/gencode id), states that missing fields are omitted rather than inferred, and documents the failure shape as an error dict with `error` and `source`. It does not mention auth, rate limits, result ordering, or latency, keeping it short of a 5.

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 opening sentence front-loads the purpose and the return/edge-case notes follow logically. Some redundancy exists between the prose paragraph and the trailing Args block, which repeats gene_id and dataset descriptions almost verbatim, costing a little length without adding meaning.

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?

For a three-parameter read tool with no annotations and no output schema, the description covers return fields, empty-result semantics, and error format. Gaps are minor: no note on result ordering, how limit interacts with multi-tissue output, or pagination.

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?

Schema coverage is 0%, so the description must compensate, and it does: it gives the Ensembl id format with an example and notes versioned ids are accepted, enumerates the three valid `dataset` values including the default, and supplies the 1-100 range for `limit`. This is information entirely absent from the schema (which has no enum and no bounds).

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: fetch GTEx median gene expression across tissues. The scope (median, per-tissue, GTEx only) immediately distinguishes it from siblings like gene_record or protein_annotations without needing a schema read.

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

Usage Guidelines3/5

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

Usage is implied by the resource description (use this to get expression values for a gene), and the 'empty tissue lists are true upstream answers' note warns against retry loops. However, it never names an alternative tool or states exclusions, so an agent must infer routing from the name alone.

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