Skip to main content
Glama

Resolve Trait

resolve_trait
Read-only

Find PGS Catalog traits by name, synonym, or EFO/MONDO/HP ID and get the catalog trait_id, match type, and score counts that other tools require.

Instructions

Find PGS Catalog traits by name, synonym or current ontology ID (EFO/MONDO/HP) and return each trait's id (the trait_id other tools take) with its categories, match (label, synonym or partial; a hint flags several exact matches), score_count (scores mapped directly) and score_count_with_descendants (direct + descendant traits; what search_scores(include_children=true) returns). Start here: other tools need the catalog's trait_id. Retired IDs are not mapped: search by name. No label or synonym match is not_found, with partial hits as candidates (match: weak). Signature: resolve_trait(query, limit=, offset=).

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": "resolve_trait"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows (default 10, max 50).
queryYesTrait name, synonym or ontology ID, e.g. 'type 2 diabetes'.
offsetNoRows to skip; use the previous `next_offset`.

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 only say readOnlyHint and openWorldHint, so the description carries most of the behavioral load and does it well: it explains not_found vs weak partial candidates, the hint flag for multiple exact matches, and the retired-ID failure mode. It stops short of describing result ordering or pagination metadata (next_offset is only implied via the offset parameter).

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 purpose and the 'start here' routing, and the return-field enumeration is compact. The trailing signature line is redundant with the input schema and could be dropped, but the rest is dense with substance rather than 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?

With no output schema, the description takes on the burden of explaining return values and does so completely: id, categories, match semantics, and both score counts with their distinction. Combined with the not_found and retired-ID behavior, an agent has everything needed to call it and interpret the response.

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 coverage is 100%, so the schema already documents query, limit (default 10, max 50) and offset. The description's 'Signature: resolve_trait(query, limit=, offset=)' merely restates the schema and adds no new parameter meaning, making the baseline 3 correct.

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?

States a specific verb and resource ('Find PGS Catalog traits by name, synonym or current ontology ID (EFO/MONDO/HP)') and defines the return payload, including the trait_id that other tools consume. That return-shape framing distinguishes it from get_trait, which clearly takes an id rather than resolving one.

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

Usage Guidelines5/5

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

'Start here: other tools need the catalog's trait_id' explicitly positions it as the entry point, and 'Retired IDs are not mapped: search by name' gives a concrete fallback rule. It also ties score_count_with_descendants to search_scores(include_children=true), telling the agent which downstream tool the counts correspond to.

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