Skip to main content
Glama

pharmacogenomics-guidelines-mcp-server

Get guideline coverage

pgx_get_guideline
Read-onlyIdempotent

Retrieve guideline coverage by source ID, exact gene symbol or exact drug name/ID. Default summary pages complete guideline records with exact drugCount/pairCount. view=drugs or pairs requires by=id and pages only that related collection, retaining its guideline descriptor. Ambiguous drug names page candidates for retry with drugId. Follow page.nextOffset for the selected collection. Missing coverage is found=false. Consult linked guidelines before clinical use.

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": {
      "by": "<by>"
    },
    "name": "pgx_get_guideline"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYesid requires guidelineId; gene requires geneSymbol; drug requires exactly one exact drugName or drugId. Other selectors must be omitted.
viewNoSummary pages guideline descriptors; drugs or pairs requires by=id and pages only that related collection.summary
limitNoPositive safe-integer row limit; values above 100 are clamped to 100 with a notice (default 25).
drugIdNoExact drugId returned by pgx_search_pairs; blank means unset.
offsetNoZero-based offset; use nextOffset to continue (default 0).
drugNameNoExact case-insensitive source drug name for by=drug; blank means unset.
geneSymbolNoGene symbol for by=gene; blank means unset.
guidelineIdNoPositive source guideline ID from pgx_get_guideline by=gene or by=drug results; no valid ID range is inferred.

Output Schema

NameRequiredDescriptionDefault
capNoEffective public page limit.
pageNoSource pagination metadata.
viewNoSelected guideline view.
drugsNoSelected drugs page; omitted in other views.
errorNoPresent when the call failed. Absent on success.
foundNoWhether guideline coverage was found.
pairsNoSelected pairs page; omitted in other views.
shownNoNumber of returned rows, equal to page.returned.
noticesNoNotices about this result; empty when none apply.
guidanceNoNext lookup step when missing or ambiguous; empty when found.
truncatedNoWhether more matching rows remain after this page.
candidatesNoPaged exact drug-name candidates when resolution is ambiguous; page and shown then refer to candidates.
guidelinesNoPaged complete guideline descriptors, or the retained descriptor for a related view.
provenanceNoLive source attribution and retrieval details.
clinicalCaveatNoClinical qualification for source guidance.
effectiveQueryNoNormalized guideline selectors and effective page bounds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "view",
      -      "oversizedRow",
      -      "page",
      -      "found",
      -      "guidelines",
      -      "candidates",
      -      "guidance",
      -      "clinicalCaveat",
      -      "provenance",
      -      "effectiveQuery",
      -      "notices",
      -      "truncated",
      -      "shown",
      -      "cap"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "view",
      +      "page",
      +      "found",
      +      "guidelines",
      +      "candidates",
      +      "guidance",
      +      "clinicalCaveat",
      +      "provenance",
      +      "effectiveQuery",
      +      "notices",
      +      "truncated",
      +      "shown",
      +      "cap"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • removedOutput schema / properties / oversizedRow
      Removed value: -{
      -  "description": "Whether one complete indivisible row exceeds the soft byte budget.",
      -  "type": "boolean"
      -}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent, so safety is covered; the description adds real behavior beyond that: the default summary view pages complete guideline records with exact drugCount/pairCount, the drugs/pairs views page only that related collection while retaining the guideline descriptor, and missing coverage yields found=false. It does not mention auth or rate-limit constraints, but for a read-only reference tool the disclosure is solid.

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?

The description is front-loaded with the primary retrieval modes followed by view/pagination/error behavior, and each sentence carries operational content. Some sentences are compressed nearly to telegraphic form (e.g. the ambiguous-drug-name sentence), which costs a little readability but not much space.

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 an 8-parameter read tool with an output schema and full annotations, the description covers the view matrix, the cross-parameter constraints, pagination continuation, and the empty-result sentinel. An agent has everything needed to call it correctly without reading further documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3 and the description mostly restates schema-stated rules (by=id needs guidelineId, view=drugs requires by=id). It adds only modest extra meaning, such as the retry-with-drugId recovery path for ambiguous drug names and the pointer that drugId comes from pgx_search_pairs.

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 opening sentence gives a specific verb ('Retrieve') plus resource ('guideline coverage') and enumerates the three selector modes (source ID, exact gene symbol, exact drug name/ID). It is clear what the tool returns, though it never explicitly contrasts itself with siblings such as pgx_get_recommendations or pgx_search_pairs.

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?

Concrete conditional guidance is provided: view=drugs or pairs requires by=id, ambiguous drug names should be retried with drugId from the paged candidates, and page.nextOffset should be followed. It also warns to consult linked guidelines before clinical use. What is missing is an explicit statement of when to prefer a sibling tool instead.

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.