Skip to main content
Glama

RxNorm MCP by usefulapi

Get drug classes for a drug

rxnorm_get_drug_classes
Read-only

Get the drug classes that contain a drug, by drug name (RxClass API). RxNav REST: GET /rxclass/class/byDrugName.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
relasNoSpace-separated relationships, e.g. 'may_treat has_ingredient'.
drugNameYesDrug name, e.g. 'metformin'.
relaSourceNoClass source, e.g. 'MEDRT', 'ATC', 'VA', 'DAILYMED'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

readOnlyHint=true already declares the safe read profile, so the description only needs to add context. It identifies the backing service (RxClass API / RxNav REST endpoint), but says nothing about rate limits, auth needs, or response shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core verb and resource, with no filler. The endpoint reference is terse and skimmable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 should ideally hint at what is returned (class ids, class names, relationship types) and whether results are grouped by relaSource. Full schema coverage and the readOnly annotation cover the invocation basics, but the return side is unaddressed.

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 drugName, relas, and relaSource are already documented with examples in the schema. The description adds no parameter semantics beyond that, which is the expected baseline.

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 ('Get the drug classes that contain a drug, by drug name'), which is materially different from siblings like get_class_members or get_drugs. It does not explicitly name an alternative sibling, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no reference to alternatives such as rxnorm_get_class_members (the inverse direction). The only implicit signal is the tool name and the 'by drug name' qualifier.

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.