$ man spell-lookup
/spell-lookup
PRICE / CALL
$0.003
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
rollforgeCATEGORY
uncategorized
STATUS
● live
NAME
spell-lookup — looks up a d&d 5e spell by name and returns full srd details
SYNOPSIS
POST https://x402.agentutility.ai/spell-lookup
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Looks up a D&D 5e spell by name and returns full SRD details. Includes level, school, casting time, range, components, duration, concentration, ritual, classes, description, and higher-level scaling; or list spells filtered by level and/or school. SRD content only (OGL 1.0a / CC-BY-4.0). Use it as a spell lookup API, SRD spell search, or spell card details source.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| name | string | Spell name for full details, e.g. 'Fireball'. | optional |
| level | number | Filter list by spell level 0-9 (0 = cantrip). | optional |
| school | string | Filter list by school, e.g. evocation, abjuration. | optional |
| limit | number | Max results when listing, 1-50. Default 20. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| spell | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/spell-lookup \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the spell-lookup tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- rollforgespelllookupspell-lookup
- methods
- POST
- cluster
- rollforge
- price
- $0.003 USDC per call
ADJACENT — other endpoints in rollforge
| endpoint | description | price |
|---|---|---|
| class-lookup | Looks up a D&D 5e class by name for its SRD reference details. | $0.003 |
| condition-lookup | D&D 5e condition lookup API / SRD conditions reference (blinded, grappled, prone, stunned, etc.). | $0.003 |
| equipment-lookup | Looks up D&D 5e weapons and armor from the SRD by name. | $0.003 |
| magic-item-lookup | Looks up a D&D 5e magic item by name from the SRD. | $0.003 |
| monster-lookup | Looks up a D&D 5e monster by name and returns a compact SRD stat block. | $0.003 |
| race-lookup | Looks up a D&D 5e race by name for its SRD racial traits. | $0.003 |
| ability-check | Resolves a d20 ability check, skill check, attack roll, or saving throw for tabletop RPGs. | $0.005 |
| background-gen | Character background generator API / personality trait, ideal, bond, flaw generator for tabletop RPGs. | $0.005 |
SEE ALSO