Skip to main content
Glama

clinpgx

Fetch PharmGKB pharmacogenomic summary annotations by gene and optional drug, returning evidence levels, phenotypes, guidelines, diseases, labels, and scores.

Instructions

Fetch ClinPGx (PharmGKB) pharmacogenomic summary annotations.

gene is a gene symbol ("CYP2C19"); drug is optional ("clopidogrel"). Returns the annotation accession, level of evidence, gene, drug, allele phenotypes, related guidelines/diseases/labels and score. ClinPGx is public read-only and asks for at most 2 requests/second. An annotation is not an individualized dosing recommendation; only upstream fields are returned, missing fields omitted. Failures return an error dict (error, source).

Args: gene: Gene symbol. drug: Optional drug/chemical name. limit: Annotations to return, 1-50 (default 10).

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": "<gene>"
    },
    "name": "clinpgx"
  }
}

Input Schema

NameRequiredDescriptionDefault
drugNo
geneYes
limitNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.18.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it declares the source read-only and public, discloses a rate limit of at most 2 requests/second, and specifies that failures return an error dict with `error` and `source`. It also warns that only upstream fields are returned and missing fields are omitted, which prevents the agent from over-reading absent data; pagination behavior beyond `limit` is the main omission.

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?

Front-loads the purpose, then the parameters, then return shape, then constraints and caveats, with an explicit Args block - no wasted sentences. A few clauses (the dosing-recommendation disclaimer, the upstream-fields note) are dense but each adds distinct information, so length is justified.

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 3-parameter tool with no output schema, the definition covers the return fields (accession, evidence level, gene, drug, allele phenotypes, related guidelines/diseases/labels, score) and the error shape, which is enough to interpret responses. It stops short of describing ordering or how many annotations typically exist per gene, but nothing critical to correct invocation is missing.

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?

Schema description coverage is 0%, so the description must compensate, and it does: `gene` is given as a gene symbol with an example ("CYP2C19"), `drug` is marked optional with an example ("clopidogrel"), and `limit` gains the range 1-50 in addition to the default. Only minor gaps remain, such as whether an out-of-range limit raises an error or is clamped.

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 specific verb and resource ("Fetch ClinPGx (PharmGKB) pharmacogenomic summary annotations") and identifies the required gene plus optional drug, which cleanly separates it from generic gene or compound lookups. It does not explicitly contrast itself with близ siblings like openfda or gwas_associations, so differentiation is implied rather than stated.

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?

Explains the calling shape (gene required, drug optional) and adds a interpretive caveat that an annotation is not an individualized dosing recommendation, which implies when the output is appropriate. It never states when to prefer a sibling tool instead, nor any exclusion conditions, leaving the agent to infer usage 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.