get_class

Pack: dnd5e · 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/get_class for the schema, then POST the same URL with its arguments for the data.

Get class features, hit dice, proficiencies, and advancement tables. Provide class index (e.g., “barbarian”, “wizard”, “rogue”). Returns feature progression, proficiency gains, and subclass options.

Parameters

NameTypeRequiredDescription
indexstringyesClass index name in lowercase (e.g. “wizard”, “fighter”, “cleric”).

Example call

Arguments

{
  "index": "wizard"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_class', {
  "index": "wizard"
});

More examples

{
  "index": "barbarian"
}

Response shape

Always returns: index, name, hit_die, saving_throws, proficiencies, subclasses

FieldTypeDescription
indexstringClass index identifier
namestringClass name
hit_dieintegerHit die value (d6, d8, d10, d12)
saving_throwsarrayAbility scores for saving throws
proficienciesarrayProficiencies granted by class
subclassesarrayAvailable subclass options
Full JSON Schema
{
  "type": "object",
  "properties": {
    "index": {
      "type": "string",
      "description": "Class index identifier"
    },
    "name": {
      "type": "string",
      "description": "Class name"
    },
    "hit_die": {
      "type": "integer",
      "description": "Hit die value (d6, d8, d10, d12)"
    },
    "saving_throws": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Ability scores for saving throws"
    },
    "proficiencies": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Proficiencies granted by class"
    },
    "subclasses": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Available subclass options"
    }
  },
  "required": [
    "index",
    "name",
    "hit_die",
    "saving_throws",
    "proficiencies",
    "subclasses"
  ]
}

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 dnd5e pack
{
  "mcpServers": {
    "dnd5e": {
      "url": "https://gateway.pipeworx.io/dnd5e/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 30, 2026