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

/class-lookup

agentutility / rollforge / class-lookup
PRICE / CALL
$0.003
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
rollforge
CATEGORY
uncategorized
STATUS
live
NAME
class-lookup looks up a d&d 5e class by name for its srd reference details
SYNOPSIS
POST https://x402.agentutility.ai/class-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 class by name for its SRD reference details. Returns hit dice, armor/weapon/tool/skill proficiencies, saving throws, spellcasting ability, and starting equipment; or list all SRD classes. SRD content only (OGL 1.0a / CC-BY-4.0). Use it as a class lookup API or class proficiencies and hit dice reference.

INPUTrequest schema
propertytypedescriptionreq?
namestringClass name, e.g. 'Wizard'. Omit to list all classes.optional
OUTPUTresponse shape
fieldtypedescription
classstring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/class-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 class-lookup tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
rollforgeclasslookupclass-lookup
methods
POST
cluster
rollforge
price
$0.003 USDC per call
ADJACENTother endpoints in rollforge
endpointdescriptionprice
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
spell-lookupLooks up a D&D 5e spell by name and returns full SRD details.$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