Skip to main content
Glama
shukwong
by shukwong

get_transcript

Retrieve detailed genetic information for a specific Ensembl transcript ID from the gnomAD database, including variant data and population genetics insights.

Instructions

Get information about a specific transcript

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
transcript_idYesEnsembl transcript ID (e.g., ENST00000269305)
reference_genomeNoReference genomeGRCh38

Implementation Reference

  • The main handler function for the 'get_transcript' tool. It parses the input arguments, makes a GraphQL request using the predefined query, and formats the response.
    case "get_transcript": result = await makeGraphQLRequest(QUERIES.getTranscript, { transcriptId: args.transcript_id as string, referenceGenome: parseReferenceGenome((args.reference_genome as string) || "GRCh38"), }); formattedResult = result.data?.transcript || null; break;
  • GraphQL query schema definition for fetching transcript details including location, gene info, and gnomAD constraint metrics.
    getTranscript: ` query GetTranscript($transcriptId: String!, $referenceGenome: ReferenceGenomeId!) { transcript(transcript_id: $transcriptId, reference_genome: $referenceGenome) { transcript_id transcript_version reference_genome chrom start stop strand gene_id gene_symbol gene_version gnomad_constraint { exp_lof exp_mis exp_syn obs_lof obs_mis obs_syn oe_lof oe_lof_lower oe_lof_upper oe_mis oe_mis_lower oe_mis_upper oe_syn oe_syn_lower oe_syn_upper lof_z mis_z syn_z pLI } } } `,
  • src/index.ts:507-525 (registration)
    Tool registration in the ListTools handler, defining name, description, and input schema for validation.
    { name: "get_transcript", description: "Get information about a specific transcript", inputSchema: { type: "object", properties: { transcript_id: { type: "string", description: "Ensembl transcript ID (e.g., ENST00000269305)", }, reference_genome: { type: "string", description: "Reference genome", default: "GRCh38", }, }, required: ["transcript_id"], }, },
  • Input schema for the get_transcript tool, specifying required transcript_id and optional reference_genome.
    inputSchema: { type: "object", properties: { transcript_id: { type: "string", description: "Ensembl transcript ID (e.g., ENST00000269305)", }, reference_genome: { type: "string", description: "Reference genome", default: "GRCh38", }, }, required: ["transcript_id"], },

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/shukwong/gnomad-mcp-server'

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