list_spells

Pack: dnd5e · Endpoint: https://gateway.pipeworx.io/dnd5e/mcp

Search D&D 5e spells by name or level. Returns spell indices, names, and levels for use with get_spell to fetch full details.

Example call

Arguments

{}

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":"list_spells","arguments":{}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('list_spells', {});

Response shape

Always returns: count, spells

FieldTypeDescription
countintegerTotal number of spells available
spellsarrayList of available spells
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "integer",
      "description": "Total number of spells available"
    },
    "spells": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "string",
            "description": "Spell index identifier"
          },
          "name": {
            "type": "string",
            "description": "Spell name"
          }
        },
        "required": [
          "index",
          "name"
        ]
      },
      "description": "List of available spells"
    }
  },
  "required": [
    "count",
    "spells"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "dnd5e": {
      "url": "https://gateway.pipeworx.io/dnd5e/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026