{
  "x402Version": 2,
  "id": 30912,
  "slug": "30912",
  "resource": "https://x402.agentutility.ai/ability-check",
  "description": "Resolves a d20 ability check, skill check, attack roll, or saving throw for tabletop RPGs. Rolls a d20 with an optional modifier and advantage/disadvantage, compares to a DC, and reports total, success/failure, and natural-20 / natural-1. Seedable. Use it as a d20 check resolver API for any RPG.",
  "type": "http",
  "serviceName": "AgentUtility.ai",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1783070352/bazaar-icons/54f004eda341546b.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x6c0752c09e7F6fA6526fCDf40e456a159ebB5621",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "FJqAJ4dXkFbrp3EEo8E9x98iaBGUQwaU8Srz5ePfUXLH",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "critical_failure": {
            "type": "boolean"
          },
          "critical_success": {
            "type": "boolean"
          },
          "d20_rolls": {
            "items": {
              "type": "integer"
            },
            "type": "array"
          },
          "dc": {
            "type": "integer"
          },
          "mode": {
            "type": "string"
          },
          "modifier": {
            "type": "integer"
          },
          "natural_roll": {
            "type": "integer"
          },
          "success": {
            "type": "boolean"
          },
          "total": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "discoverable": true,
      "info": {
        "input": {
          "body": {
            "advantage": true,
            "dc": 15,
            "modifier": 5,
            "seed": 2
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "critical_failure": false,
            "critical_success": false,
            "d20_rolls": [
              15,
              7
            ],
            "dc": 15,
            "mode": "advantage",
            "modifier": 5,
            "natural_roll": 15,
            "success": true,
            "total": 20
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "advantage": {
                    "description": "Roll twice, take the higher.",
                    "type": "boolean"
                  },
                  "dc": {
                    "description": "Difficulty class to beat. Omit to just get the roll.",
                    "type": "number"
                  },
                  "disadvantage": {
                    "description": "Roll twice, take the lower.",
                    "type": "boolean"
                  },
                  "modifier": {
                    "description": "Total bonus/penalty added to the d20 (-20..40). Default 0.",
                    "type": "number"
                  },
                  "seed": {
                    "description": "Optional integer seed for a reproducible roll.",
                    "type": "number"
                  }
                },
                "required": []
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "critical_failure": {
                    "type": "boolean"
                  },
                  "critical_success": {
                    "type": "boolean"
                  },
                  "d20_rolls": {
                    "items": {
                      "type": "integer"
                    },
                    "type": "array"
                  },
                  "dc": {
                    "type": "integer"
                  },
                  "mode": {
                    "type": "string"
                  },
                  "modifier": {
                    "type": "integer"
                  },
                  "natural_roll": {
                    "type": "integer"
                  },
                  "success": {
                    "type": "boolean"
                  },
                  "total": {
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "builder-code": {
      "info": {
        "a": "bc_awpbwsy3"
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    "ability",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "x402.agentutility.ai",
  "lastUpdated": "2026-10-08T06:08:24.429Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:08:24.322Z"
  },
  "metadata": {
    "serviceName": "AgentUtility.ai",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1783070352/bazaar-icons/54f004eda341546b.png",
    "extensions": {
      "bazaar": {
        "discoverable": true,
        "info": {
          "input": {
            "body": {
              "advantage": true,
              "dc": 15,
              "modifier": 5,
              "seed": 2
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "critical_failure": false,
              "critical_success": false,
              "d20_rolls": [
                15,
                7
              ],
              "dc": 15,
              "mode": "advantage",
              "modifier": 5,
              "natural_roll": 15,
              "success": true,
              "total": 20
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "advantage": {
                      "description": "Roll twice, take the higher.",
                      "type": "boolean"
                    },
                    "dc": {
                      "description": "Difficulty class to beat. Omit to just get the roll.",
                      "type": "number"
                    },
                    "disadvantage": {
                      "description": "Roll twice, take the lower.",
                      "type": "boolean"
                    },
                    "modifier": {
                      "description": "Total bonus/penalty added to the d20 (-20..40). Default 0.",
                      "type": "number"
                    },
                    "seed": {
                      "description": "Optional integer seed for a reproducible roll.",
                      "type": "number"
                    }
                  },
                  "required": []
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "critical_failure": {
                      "type": "boolean"
                    },
                    "critical_success": {
                      "type": "boolean"
                    },
                    "d20_rolls": {
                      "items": {
                        "type": "integer"
                      },
                      "type": "array"
                    },
                    "dc": {
                      "type": "integer"
                    },
                    "mode": {
                      "type": "string"
                    },
                    "modifier": {
                      "type": "integer"
                    },
                    "natural_roll": {
                      "type": "integer"
                    },
                    "success": {
                      "type": "boolean"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      },
      "builder-code": {
        "info": {
          "a": "bc_awpbwsy3"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "additionalProperties": false,
          "properties": {
            "a": {
              "description": "App builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "s": {
              "description": "Service builder codes",
              "items": {
                "pattern": "^[a-z0-9_]{1,32}$",
                "type": "string"
              },
              "type": "array"
            },
            "w": {
              "description": "Wallet builder code",
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.agentutility.ai",
    "manifest_name": "x402.agentutility.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "critical_failure": false,
    "critical_success": false,
    "d20_rolls": [
      15,
      7
    ],
    "dc": 15,
    "mode": "advantage",
    "modifier": 5,
    "natural_roll": 15,
    "success": true,
    "total": 20
  }
}