Skip to content
Eden Engine

D&D 5e Spell Search (dnd5eapi)

dnd5eapi/spell-search

Searches the SRD spell list of Dungeons & Dragons 5th edition (2014 rules, 319 spells) by any combination of name text, level 0 to 9 (0 is a cantrip) and school of magic (abjuration, conjuration, divination, enchantment, evocation, illusion, necromancy, transmutation). At least one filter is required. Returns count and, for each spell, its index, name, level and URL; use srd-lookup with category spells for the full text. The name filter matches anywhere in the name, ignoring case. A combination with no match returns count 0. Typically 0.1 to 6 KB. SRD 5.1 content (c) Wizards of the Coast, Open Game License v1.0a. Served by Eden Engine; not an official Wizards of the Coast product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.

Data source

D&D 5e SRD API

SRD 5.1 content (c) Wizards of the Coast, Open Game License v1.0a, served by the 5e-bits D&D 5e SRD API (dnd5eapi.co). Served by Eden Engine; not an official Wizards of the Coast or 5e-bits product.

Use it

Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.

Connect once and your AI can find and run this tool, and any other it needs.

For developers: the calls your assistant makes
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "dnd5eapi/spell-search" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "dnd5eapi/spell-search" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "dnd5eapi/spell-search", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "dnd5eapi/spell-search", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "description": "Spell names containing this text (case-insensitive), for example 'fire'."
    },
    "level": {
      "type": "integer",
      "maximum": 9,
      "minimum": 0,
      "description": "Spell level, 0 for cantrips up to 9."
    },
    "school": {
      "enum": [
        "abjuration",
        "conjuration",
        "divination",
        "enchantment",
        "evocation",
        "illusion",
        "necromancy",
        "transmutation"
      ],
      "type": "string",
      "description": "School of magic."
    }
  },
  "minProperties": 1,
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer",
      "description": "Number of entries returned."
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "index",
          "name",
          "url"
        ],
        "properties": {
          "url": {
            "type": "string",
            "description": "Absolute URL of the entry."
          },
          "name": {
            "type": "string"
          },
          "index": {
            "type": "string"
          },
          "level": {
            "type": "integer",
            "description": "Spell level, 0 for a cantrip."
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}