Skip to main content
Glama

pharmacogenomics-guidelines-mcp-server

Search alleles

pgx_search_alleles
Read-onlyIdempotent

Inspect CPIC allele function, evidence and definition metadata for geneSymbol. Set includePopulationFrequencies=true to join complete source frequencies. Name matches literally first, then a matching gene prefix before a star allele may be removed; clinicalFunctionalStatus matches literal text case-insensitively. Discover genes with pgx_list_reference. Definitions are metadata, not variant interpretation. Frequencies are source fractions; inferred frequencies are not observations and do not establish individual risk. Continue with page.nextOffset.

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": {
      "geneSymbol": "<geneSymbol>"
    },
    "name": "pgx_search_alleles"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoExact source allele name; blank means unset.
limitNoPositive safe-integer row limit; values above 100 are clamped to 100 with a notice (default 25).
offsetNoZero-based offset; use nextOffset to continue (default 0).
geneSymbolYesGene symbol, such as CYP2C19 or HLA-B; outer whitespace is ignored.
clinicalFunctionalStatusNoCase-insensitive literal source clinical functional status; blank means unset.
includePopulationFrequenciesNoJoin complete population-frequency evidence for the returned alleles.

Output Schema

NameRequiredDescriptionDefault
capNoEffective public page limit.
pageNoSource pagination metadata.
errorNoPresent when the call failed. Absent on success.
itemsNoComplete source allele rows, embedded definitions and requested population frequencies.
shownNoNumber of returned rows, equal to page.returned.
noticesNoNotices about this result; empty when none apply.
truncatedNoWhether more matching rows remain after this page.
provenanceNoLive source attribution and retrieval details.
effectiveQueryNoEffective allele selectors and page bounds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / includePopulationFrequencies
      Added value: +{
      +  "default": false,
      +  "description": "Join complete population-frequency evidence for the returned alleles.",
      +  "type": "boolean"
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "oversizedRow",
      -      "items",
      -      "page",
      -      "provenance",
      -      "effectiveQuery",
      -      "notices",
      -      "truncated",
      -      "shown",
      -      "cap"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "items",
      +      "page",
      +      "provenance",
      +      "effectiveQuery",
      +      "notices",
      +      "truncated",
      +      "shown",
      +      "cap"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / effectiveQuery / properties / includePopulationFrequencies
      Added value: +{
      +  "description": "Whether complete population-frequency evidence was requested.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / effectiveQuery / required
      Previous value: -[
      -  "geneSymbol",
      -  "limit",
      -  "offset"
      -]New value: +[
      +  "geneSymbol",
      +  "includePopulationFrequencies",
      +  "limit",
      +  "offset"
      +]
    • changedOutput schema / properties / items / description
      Previous value: -"Source alleles, embedded definitions and population frequencies."New value: +"Complete source allele rows, embedded definitions and requested population frequencies."
    • changedOutput schema / properties / items / items / description
      Previous value: -"Source allele with population-frequency evidence."New value: +"Source allele with optional population-frequency evidence."
    • changedOutput schema / properties / items / items / properties / populationFrequencies / description
      Previous value: -"Complete matching population-frequency rows; empty when unavailable."New value: +"Complete matching population-frequency rows when requested; empty when unavailable."
    • changedOutput schema / properties / items / items / required
      Previous value: -[
      -  "id",
      -  "genesymbol",
      -  "name",
      -  "definitionid",
      -  "populationFrequencies"
      -]New value: +[
      +  "id",
      +  "genesymbol",
      +  "name",
      +  "definitionid"
      +]
    • removedOutput schema / properties / oversizedRow
      Removed value: -{
      -  "description": "Whether one complete indivisible row exceeds the soft byte budget.",
      -  "type": "boolean"
      -}
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds genuinely useful behavior: name matching is literal-first with gene-prefix stripping, clinicalFunctionalStatus is case-insensitive literal, and pagination continues via page.nextOffset. It also warns that definitions are metadata rather than variant interpretation and that inferred frequencies are not observations, which is valuable framing beyond the annotations.

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-loaded with the core purpose, then matching rules, then caveats, then pagination — a sensible order with no filler. It is written in dense sentence fragments, which is efficient but slightly telegraphic in places.

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?

An output schema exists, so return values need not be described, and the description still covers the non-obvious pieces: matching semantics, frequency caveats, and how to page. For a read-only, six-parameter search tool this is complete enough to invoke correctly.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning the schema lacks: the two-stage name matching rule (literal match first, then gene prefix before a star allele removed) and the join semantics of includePopulationFrequencies. The clinicalFunctionalStatus note largely restates the schema's own 'case-insensitive literal' wording.

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: 'Inspect CPIC allele function, evidence and definition metadata for geneSymbol.' It also names pgx_list_reference as the way to discover genes, which separates it from that sibling. It does not distinguish itself from pgx_search_pairs or pgx_lookup_diplotype, so an agent must infer the boundary from names alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context for use (allele-level CPIC metadata for a gene) and routes gene discovery to pgx_list_reference, plus tells the agent to set includePopulationFrequencies=true when frequencies are wanted. It stops short of explicit when-not guidance or naming the other allele-adjacent siblings as alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.