get_spell
Pack: dnd5e · Endpoint: https://gateway.pipeworx.io/dnd5e/mcp
Get spell details including damage, range, duration, components, and effects. Provide spell index (e.g., “fireball”, “magic-missile”, “cure-wounds”). Returns damage dice, range, casting time, and effect descriptions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
index | string | yes | Spell index name in kebab-case (e.g. “fireball”, “magic-missile”). |
Example call
Arguments
{
"index": "fireball"
}
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_spell","arguments":{"index":"fireball"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_spell', {
"index": "fireball"
});
More examples
{
"index": "magic-missile"
}
Response shape
Always returns: index, name, level, school, casting_time, range, duration, concentration, ritual, components, description, classes
| Field | Type | Description |
|---|---|---|
index | string | Spell index identifier |
name | string | Spell name |
level | integer | Spell level (0-9) |
school | string | School of magic |
casting_time | string | Time required to cast spell |
range | string | Spell range |
duration | string | Spell duration |
concentration | boolean | Whether spell requires concentration |
ritual | boolean | Whether spell can be cast as ritual |
components | array | Spell components (V, S, M) |
material | string | Material components required |
description | array | Spell effect descriptions |
higher_level | array | Effects at higher spell levels |
classes | array | Classes that can cast this spell |
Full JSON Schema
{
"type": "object",
"properties": {
"index": {
"type": "string",
"description": "Spell index identifier"
},
"name": {
"type": "string",
"description": "Spell name"
},
"level": {
"type": "integer",
"description": "Spell level (0-9)"
},
"school": {
"type": "string",
"description": "School of magic"
},
"casting_time": {
"type": "string",
"description": "Time required to cast spell"
},
"range": {
"type": "string",
"description": "Spell range"
},
"duration": {
"type": "string",
"description": "Spell duration"
},
"concentration": {
"type": "boolean",
"description": "Whether spell requires concentration"
},
"ritual": {
"type": "boolean",
"description": "Whether spell can be cast as ritual"
},
"components": {
"type": "array",
"items": {
"type": "string"
},
"description": "Spell components (V, S, M)"
},
"material": {
"type": "string",
"description": "Material components required"
},
"description": {
"type": "array",
"items": {
"type": "string"
},
"description": "Spell effect descriptions"
},
"higher_level": {
"type": "array",
"items": {
"type": "string"
},
"description": "Effects at higher spell levels"
},
"classes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Classes that can cast this spell"
}
},
"required": [
"index",
"name",
"level",
"school",
"casting_time",
"range",
"duration",
"concentration",
"ritual",
"components",
"description",
"classes"
]
}
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.