Skip to main content
Glama

gwas_associations

Fetch GWAS Catalog SNP-trait associations by rs ID, EFO/MONDO trait ID or name, or mapped gene symbol, returning p-values, mapped genes, effect alleles, PMIDs, and study accessions.

Instructions

Fetch GWAS Catalog SNP-trait associations.

query is an rs id ("rs7412"), an EFO/MONDO trait id ("MONDO_0005150"), an exact EFO trait name, or a mapped gene symbol. by="auto" treats rs... as rs_id, ontology ids as efo_id, and everything else as efo_trait (the trait name must match the catalog's EFO label). Returns association id, p-value, reported/EFO traits, mapped genes, effect allele, beta, PMID and study accession. Only upstream fields are returned; missing fields are omitted, nothing is inferred. Failures return an error dict (error, source).

Args: query: rs id, trait id/name, or gene symbol. by: "auto", "rs_id", "efo_trait", "efo_id" or "mapped_gene". limit: Associations per page, 1-100 (default 10). page: Zero-based page (default 0).

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": {
      "query": "<query>"
    },
    "name": "gwas_associations"
  }
}

Input Schema

NameRequiredDescriptionDefault
byNoauto
pageNo
limitNo
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and largely meets it: it enumerates the returned fields, states that only upstream fields are returned with missing fields omitted and nothing inferred, and documents the error-dict shape (`error`, `source`). It does not mention rate limits, authentication, or whether pagination beyond available results errors or returns empty.

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?

Purpose and identifier semantics are front-loaded, and the return/error contract follows logically. The `Args:` block restates the `by` values already enumerated in the prose, which is mild redundancy, but no sentence is filler.

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

Completeness5/5

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

For a 4-parameter fetch tool with no output schema and no annotations, the description covers everything an agent needs: identifier forms, dispatch logic, pagination defaults, the exact returned fields, the null-omission policy, and the error response shape.

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 description coverage is 0% and no parameter has an enum in the schema, so the description must supply everything - and it does: the four accepted `query` forms with concrete examples, the five valid `by` values, the `auto` dispatch rule per query shape, the limit range (1-100, default 10), and the zero-based page. Without this text the schema would be unusable.

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?

The description opens with a specific verb and resource - 'Fetch GWAS Catalog SNP-trait associations' - which unambiguously identifies the data domain versus generic siblings like monarch_associations or opentargets. It does not explicitly name a sibling it is not, so it stops short of 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?

It specifies what kinds of identifiers are accepted and how `by="auto"` dispatches, which implicitly tells the agent this tool is for identifier-based lookup rather than free-text browsing. However, there is no explicit when-to-use guidance, no exclusion of alternatives, and no prerequisites (auth, catalog coverage limits).

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