Skip to main content
Glama

Search Scores

search_scores
Read-only

Find polygenic scores matching all selected trait, publication, PubMed ID, or PGS ID filters; returns trait, method, variant count, build, ancestry, and source publication.

Instructions

List polygenic scores matching ALL given selectors: trait_id (+include_children), publication_id or pmid, pgs_ids; none lists the whole catalog. Rows are in PGS ID order (pgs_ids alone keeps your order). Each row: trait, method, variant count, genome build, ancestry % per stage (gwas/dev/eval; codes in get_server_capabilities.ancestry_legend; no dev = no separate development sample reported) and source publication. Rows under the catalog's standard terms omit license (stated once as license_default); any other licence is shown on its row verbatim. total is exact; page with offset. Signature: search_scores(trait_id=, include_children=, publication_id=, pmid=, pgs_ids=, response_mode=, limit=, offset=).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_scores"
  }
}

Input Schema

NameRequiredDescriptionDefault
pmidNoScores developed or evaluated in this PubMed paper.
limitNoMax rows (default 10, max 50).
offsetNoRows to skip; use the previous `next_offset`.
pgs_idsNoExplicit PGS IDs to summarise (1-50).
trait_idNoScores mapped to this trait (from resolve_trait).
response_modeNominimal: id and name | compact (default): + trait_reported, method, variant count, build, ancestry %, publication | standard/full: + mapped traits, weight type, release date, URL and ancestry sample counts.
publication_idNoScores developed or evaluated in this PGP publication.
include_childrenNoWith trait_id: also scores of descendant traits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.4/5.0
Behavior4/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 adds real behavioral detail beyond that: exact `total`, ordering guarantees, page size ceiling implied by paging, and the license-elision rule where standard-terms rows omit `license` and reference `license_default`. It does not discuss rate limits or error behavior, which keeps it from a 5.

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 core listing behavior and filtering semantics, then return-row shape, then pagination. It is dense but every sentence carries information about scope, ordering, licensing, or row contents. The trailing 'Signature: search_scores(...)' line largely repeats the input schema and is the one expendable element.

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?

Although there is no output schema, the description enumerates the returned row fields (trait, method, variant count, genome build, ancestry percentages, publication) and explains the `license` omission case, so an agent knows what to expect. Combined with annotations covering safety and the fully described schema, nothing material is missing for correct invocation.

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 schema already documents each parameter. The description still adds meaning the schema does not: the selectors combine with AND, include_children only applies with trait_id, pgs_ids alone preserves supplied order, and rows include the ancestry percentage breakdown. This is genuine semantic enrichment beyond structured fields.

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

Purpose5/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: 'List polygenic scores matching ALL given selectors', then enumerates the selectors. It also states the no-selector case ('none lists the whole catalog'), so an agent can immediately tell this apart from single-record siblings like get_score. The row contents are summarized, making the tool's scope unmistakable.

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?

It clearly defines the filtering contract: selectors are ANDed, an empty selector list returns the whole catalog, and pgs_ids preserves caller order while other combinations return PGS ID order. Pagination guidance is explicit ('page with offset', 'use the previous next_offset'). It stops short of naming sibling alternatives such as get_score for a single record, so it earns a 4 rather than a 5.

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