foundry-mcp-com · Schema

RollAttackRequest

Weapon-bound attack roll. Module looks up the item's `attack` activity and rolls 1d20 + actor's attack bonus (proficiency + ability + magic). **`item_id` must reference a weapon (or attack-spell) the actor owns** — get it from `GET /v1/actors/{id}` (look at `items[].id` for entries whose `system.activities` contains an attack activity). Items without an attack activity (consumables, features, non-attack spells) yield 502 with a module reason. **`advantage` and `disadvantage` are independent booleans.** Both true is allowed — Foundry cancels them to a normal roll (dnd5e standard).

FoundryVTTMCPAIGamingAutomation

Properties

Name Type Description
actor_id string Foundry actor id within the calling tenant's world.
advantage boolean Roll with advantage (2d20kh1). Combined with `disadvantage: true` cancels to a normal roll.
disadvantage boolean Roll with disadvantage (2d20kl1). Combined with `advantage: true` cancels to a normal roll.
item_id string Item id (weapon or attack-spell) owned by the actor.
show_in_chat boolean Post the roll to the world's Foundry chat. Default false (silent).
View JSON Schema on GitHub

JSON Schema

foundry-mcp-com-roll-attack-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/foundry-mcp-com/json-schema/foundry-mcp-com-roll-attack-request-schema.json",
  "title": "RollAttackRequest",
  "description": "Weapon-bound attack roll. Module looks up the item's `attack` activity and rolls 1d20 + actor's attack bonus (proficiency + ability + magic).\n\n**`item_id` must reference a weapon (or attack-spell) the actor owns** — get it from `GET /v1/actors/{id}` (look at `items[].id` for entries whose `system.activities` contains an attack activity). Items without an attack activity (consumables, features, non-attack spells) yield 502 with a module reason.\n\n**`advantage` and `disadvantage` are independent booleans.** Both true is allowed — Foundry cancels them to a normal roll (dnd5e standard).",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/foundry-mcp-com-openapi.json#/components/schemas/RollAttackRequest",
  "properties": {
    "actor_id": {
      "description": "Foundry actor id within the calling tenant's world.",
      "minLength": 1,
      "type": "string"
    },
    "advantage": {
      "default": false,
      "description": "Roll with advantage (2d20kh1). Combined with `disadvantage: true` cancels to a normal roll.",
      "type": "boolean"
    },
    "disadvantage": {
      "default": false,
      "description": "Roll with disadvantage (2d20kl1). Combined with `advantage: true` cancels to a normal roll.",
      "type": "boolean"
    },
    "item_id": {
      "description": "Item id (weapon or attack-spell) owned by the actor.",
      "minLength": 1,
      "type": "string"
    },
    "show_in_chat": {
      "default": false,
      "description": "Post the roll to the world's Foundry chat. Default false (silent).",
      "type": "boolean"
    }
  },
  "required": [
    "actor_id",
    "item_id"
  ],
  "type": "object"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/foundry-mcp-com-roll-attack-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.