list_classes

Pack: dailymed · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/list_classes for the schema, then POST the same URL with its arguments for the data.

List pharmacologic drug-class reference entries from DailyMed, optionally filtered by class_code or class type (EPC = established pharmacologic class, MoA = mechanism of action, PE = physiologic effect, CS = chemical structure). Returns class codes and display names. ~1,210 classes total, 100 per page.

Parameters

NameTypeRequiredDescription
class_codestringnoRestrict to a specific class code. NLM RxClass format, e.g. “N0000175809” — not a UMLS CUI.
typestringnoEPC | MoA | PE | CS
pagenumberno1-based page (100 per page, ~13 pages). Ignored when class_code is given.

Example call

Arguments

{
  "type": "MoA"
}

curl

curl -X POST https://gateway.pipeworx.io/dailymed/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_classes","arguments":{"type":"MoA"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('list_classes', {
  "type": "MoA"
});

More examples

{
  "class_code": "C0001",
  "type": "EPC"
}

Response shape

FieldTypeDescription
dataarray
metadataobject
Full JSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": [
          "object",
          null
        ],
        "properties": {
          "code": {
            "type": "string"
          },
          "codingSystem": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      }
    },
    "metadata": {
      "type": "object",
      "properties": {
        "db_published_date": {
          "type": "string"
        },
        "elements_per_page": {
          "type": "number"
        },
        "current_url": {
          "type": "string"
        },
        "next_page_url": {
          "type": "string"
        },
        "total_elements": {
          "type": "number"
        },
        "total_pages": {
          "type": "number"
        },
        "current_page": {
          "type": "number"
        },
        "previous_page": {
          "type": "string"
        },
        "previous_page_url": {
          "type": "string"
        },
        "next_page": {
          "type": "number"
        },
        "matched_by": {
          "type": "string"
        },
        "note": {
          "type": "string"
        }
      }
    }
  },
  "description": "Pharmacologic or drug-class reference"
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the dailymed pack
{
  "mcpServers": {
    "dailymed": {
      "url": "https://gateway.pipeworx.io/dailymed/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026