Skip to main content
Glama

Map Terms to Categories

get_condition_category
Read-onlyIdempotent

Look up the exact condition names that review_medication_evidence accepts for a disease, risk factor or population topic. Call it once for each topic the user mentioned, independently, before calling review_medication_evidence with conditions.

Pass the top-level category that best matches the topic (matched case-insensitively). The tool returns that category's sub-codes, each with an exact "name" and a reference icd10_code. A population label with no sub-codes (for example "Asian patients") returns an empty list: a normal result, not an error. A category that is not in the list below is not guessed or corrected: the call fails with an error that lists the valid categories.

Choosing the name: submit the most specific sub-code name that fits (hypertension -> "Essential (primary) hypertension", not "Cardiovascular disorders"). Use a category name as-is only for a general topic (such as "Hepatic impairment") or when no sub-code fits. Submit the name string, never the icd10_code.

Categories (complete list): Adolescent patients 12 to 17 years of age, Asian patients, BMI, Cardiac disorders, Cardiac patients, Cardiovascular disorders, Children 1 year through 16 years of age, Children under 6 months, Cirrhotics, Diabetes, Diabetes mellitus, Female patients, Females of reproductive potential, Females of reproductive potential contraception, Geriatric use, Heart failure, Hemodialysis, Hepatic disease, Hepatic impairment, Immunocompromised patients, Labor and delivery, Lactation / nursing mothers, Liver transplant recipients, Low body weight, Male patients, Males of reproductive potential, Males of reproductive potential contraception, Neonates to less than one year of age, Neuromuscular disease, Neurovascular disorders, Obese patients, Patients after organ transplantation, Patients with compromised respiratory function, Pediatric Patients 6 to 11 Years of Age, Pediatric Patients Younger than 4 Months of Age, Pediatric use, Percutaneous coronary intervention, Pregnancy, Pulmonary patients, Race or ethnicity, Renal impairment, Smoking, Special populations, Type 2 diabetes mellitus, Weight.

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": {
      "category": "<category>"
    },
    "name": "get_condition_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryYesExact top-level category name from this tool's own description, e.g. "Cardiac disorders" or "Diabetes"

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile needs no restating. The description still adds real value beyond them: case-insensitive matching, the empty-list-is-not-an-error edge case, and the failure mode for invalid categories. It stops short of describing the shape of the returned sub-codes beyond name plus icd10_code, leaving the output schema to carry that.

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, ordering, then selection rules, which is the right sequence for an agent. The long inline category list is bulky but functionally necessary as a substitute for an enum (0 enums in schema) and directly prevents failed calls; some overlap between the list and the 'Choosing the name' examples is minor redundancy.

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 a single-parameter lookup with an output schema, the definition supplies everything an agent needs: what to pass, how to derive it, what a legitimate empty result looks like, and how failure manifests. No gaps remain that would cause an incorrect invocation.

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

Parameters5/5

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

Schema coverage is 100%, but the description goes well past it by defining how to pick the value: submit the most specific sub-code name ('hypertension -> Essential (primary) hypertension'), use a bare category only for general topics, and never submit the icd10_code. That disambiguation prevents a class of wrong calls the schema alone cannot.

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 — 'look up the exact condition names that review_medication_evidence accepts' — and names the sibling it feeds, so the agent knows this is a pre-flight vocabulary resolver, not a search or evidence tool.

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?

Explicitly prescribes ordering and parallelism: call once per user-mentioned topic, independently, before calling review_medication_evidence with conditions. It also covers negative cases — unknown category errors out with the valid list, and empty sub-code lists are normal.

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.

Resources