Skip to main content
Glama

Get Variant

get_variant
Read-only

Fetch a CIViC variant by ID to retrieve its genomic coordinates, HGVS annotations, ClinGen/ClinVar identifiers, sequence ontology types, and linked molecular profile for cancer variant research.

Instructions

Return one CIViC variant: coordinates with their assembly (CIViC's primary build is GRCh37), genomic HGVS labelled GRCh37/GRCh38, transcript HGVS, MANE Select HGVS, ClinGen CAID, ClinVar IDs, variant types (SO) and its single-variant molecular profile. Signature: get_variant(variant_id).

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": {
      "variant_id": "<variant_id>"
    },
    "name": "get_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
variant_idYesCIViC variant ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description contributes the returned field inventory, which is genuinely useful given there is no output schema, but it says nothing about behavior on a missing/invalid ID or about reference-build caveats beyond noting GRCh37 is primary. That is additive context worth a 4 only on the return-value front.

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?

A single dense sentence front-loads the field inventory, which is the right structure for a fetch tool. The parenthetical about GRCh37 and the trailing signature line are slightly redundant against the schema, but there is no filler.

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?

Because no output schema exists, the description must convey what comes back, and it does so thoroughly across coordinates, HGVS variants, IDs, and linked molecular profile. Gaps are minor: error/not-found behavior and whether the embedded molecular profile is a full object or a reference.

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?

With one parameter at 100% schema coverage (integer, min 1, documented as "CIViC variant ID"), the schema fully carries semantic load. The description's signature line merely restates the parameter and adds no new constraints, so this sits at the high-coverage baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource ("Return one CIViC variant") and then enumerates the exact payload — coordinates, HGVS at genome/transcript/MANE levels, CAID, ClinVar IDs, SO variant types, molecular profile — so the agent knows precisely what a variant record contains. It does not explicitly contrast itself with siblings like get_molecular_profile, which keeps it from a 5.

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?

The "Signature: get_variant(variant_id)" line implies a direct lookup by known ID, which is the natural usage. However, there is no explicit when-to-use statement, no guidance on what to do when the variant ID is unknown (e.g., search first), and no exclusions relative to the search_* siblings.

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