Skip to main content
Glama

Drugs

drugs
Read-onlyIdempotent

"Drug name lookup" / "find prescription [X]" / "medication autocomplete" / "RxCUI for [drug]" / "what does [pill] treat" / "available strengths for [drug]", search RxTerms (NLM prescribing-vocabulary derived from RxNorm, ~22k drug names with route/strength). Returns names like "Aspirin (Chewable)", "Lisinopril (Oral Pill)". Use for prescription entry, drug name autocomplete, or as a stepping-stone to RxNorm RxCUI lookups. Pass ef="STRENGTHS_AND_FORMS,RXCUIS" to include dosage strengths and RxNorm IDs.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "count": 3,
      "terms": "aspirin"
    },
    "name": "drugs"
  }
}

Input Schema

NameRequiredDescriptionDefault
dfNoComma-separated display fields to use in the `displays` array. Default varies per table; usually the canonical name.
efNoComma-separated extra fields to include per match. Known fields: STRENGTHS_AND_FORMS,RXCUIS,DISPLAY_NAME_SYNONYM,IS_RETIRED.
countNoMaximum matches to return. Default 7, max 500. Use 1-3 for typeahead UX, 20-50 for browsing.
termsYesSearch query, prefix/contains match against canonical names. Whitespace-split into AND tokens. Example: "aspirin".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / count / description
      Previous value: -"Maximum matches to return. Default 7, max 500. Use 1–3 for typeahead UX, 20–50 for browsing."New value: +"Maximum matches to return. Default 7, max 500. Use 1-3 for typeahead UX, 20-50 for browsing."
    • changedInput schema / properties / terms / description
      Previous value: -"Search query — prefix/contains match against canonical names. Whitespace-split into AND tokens. Example: \"aspirin\"."New value: +"Search query, prefix/contains match against canonical names. Whitespace-split into AND tokens. Example: \"aspirin\"."
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "count": 3,
      +    "terms": "aspirin"
      +  }
      +]
  3. Changed7 schema fields changed
    • addedInput schema / properties / count / default
      Added value: +7
    • addedInput schema / properties / count / description
      Added value: +"Maximum matches to return. Default 7, max 500. Use 1–3 for typeahead UX, 20–50 for browsing."
    • addedInput schema / properties / count / maximum
      Added value: +500
    • addedInput schema / properties / count / minimum
      Added value: +1
    • addedInput schema / properties / df / description
      Added value: +"Comma-separated display fields to use in the `displays` array. Default varies per table; usually the canonical name."
    • addedInput schema / properties / ef / description
      Added value: +"Comma-separated extra fields to include per match. Known fields: STRENGTHS_AND_FORMS,RXCUIS,DISPLAY_NAME_SYNONYM,IS_RETIRED."
    • addedInput schema / properties / terms / description
      Added value: +"Search query — prefix/contains match against canonical names. Whitespace-split into AND tokens. Example: \"aspirin\"."
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile needs no restating. The description adds genuinely new behavioral context: the backing corpus, its size, the display-name format with route/strength, and the ef flag that surfaces strengths and RxNorm IDs. Missing only operational notes such as pagination behavior or retirement/IS_RETIRED effects, which is minor for an idempotent read.

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?

Purpose and source are front-loaded in a compact paragraph, with return examples and the ef hint following logically. The leading slash-quoted list of phrasings is redundant with the later "Use for prescription entry, drug name autocomplete" sentence and adds length without new information.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only four params, full schema coverage, no output schema and annotations covering safety, the description supplies what an agent still needs: what the corpus is, what a match looks like, and how to get strengths/RxCUIs. Only edge behaviors (result ordering, retired drugs) are left unaddressed.

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 baseline is 3, but the description earns an increment by showing the concrete ef combination "STRENGTHS_AND_FORMS,RXCUIS" and what it yields for the RxCUI workflow. It adds no coverage for df or count beyond what the schema already documents.

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 names a specific verb and resource ("search RxTerms"), states the source provenance (NLM prescribing vocabulary derived from RxNorm), the corpus size (~22k drug names with route/strength), and gives concrete return examples like "Aspirin (Chewable)". The drug-name domain also implicitly separates it from the vocabulary siblings (disease_names, icd10cm, loinc, icd9cm).

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 states concrete use cases: prescription entry, drug name autocomplete, and as a stepping-stone to RxNorm RxCUI lookups via ef=RXCUIS. That is clear when-to-use guidance and points at the follow-on action, but it never states when not to use it or names a sibling to prefer for a competing need.

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.