get_transcript
Retrieve detailed information about a specific transcript using its Ensembl ID. Query genetic data such as variant details, constraint scores, and population frequencies from the gnomAD database.
Instructions
Get information about a specific transcript
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reference_genome | No | Reference genome | GRCh38 |
| transcript_id | Yes | Ensembl transcript ID (e.g., ENST00000269305) |
Implementation Reference
- src/index.ts:689-695 (handler)The handler logic for the 'get_transcript' tool. It executes a GraphQL query using makeGraphQLRequest with the provided transcriptId and referenceGenome, then extracts the transcript data from 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;
- src/index.ts:216-252 (schema)GraphQL query schema/definition for fetching detailed transcript information, referenced as QUERIES.getTranscript in the handler.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)Registration of the 'get_transcript' tool in the ListTools response, including 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"], }, },
- src/index.ts:510-524 (schema)Input schema for the 'get_transcript' tool, defining parameters transcript_id (required) and 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"], },