Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man spell-lookup

/spell-lookup

agentutility / rollforge / spell-lookup
PRICE / CALL
$0.003
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
rollforge
CATEGORY
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.

INPUTrequest schema
propertytypedescriptionreq?
namestringSpell name for full details, e.g. 'Fireball'.optional
levelnumberFilter list by spell level 0-9 (0 = cantrip).optional
schoolstringFilter list by school, e.g. evocation, abjuration.optional
limitnumberMax results when listing, 1-50. Default 20.optional
OUTPUTresponse shape
fieldtypedescription
spellstring
EXAMPLEStwo 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
ADJACENTother endpoints in rollforge
endpointdescriptionprice
class-lookupLooks up a D&D 5e class by name for its SRD reference details.$0.003
condition-lookupD&D 5e condition lookup API / SRD conditions reference (blinded, grappled, prone, stunned, etc.).$0.003
equipment-lookupLooks up D&D 5e weapons and armor from the SRD by name.$0.003
magic-item-lookupLooks up a D&D 5e magic item by name from the SRD.$0.003
monster-lookupLooks up a D&D 5e monster by name and returns a compact SRD stat block.$0.003
race-lookupLooks up a D&D 5e race by name for its SRD racial traits.$0.003
ability-checkResolves a d20 ability check, skill check, attack roll, or saving throw for tabletop RPGs.$0.005
background-genCharacter background generator API / personality trait, ideal, bond, flaw generator for tabletop RPGs.$0.005
SEE ALSO
agentutility · rollforge · x402 · mcp · llms.txt · registry.json · bazaar.x402.org