W

webmcp-blackjack.heejae.dev

Two AI agents and you play blackjack on the W3C WebMCP standard API — each role gets different tools and data, and you watch them reason in the language you pick.

2read
3action
https://webmcp-blackjack.heejae.dev/

demo · Playgrounds & Games · JSON · API for agents

Tools 5 tools

place_betaction

Place a bet to start the blackjack round. Call this tool with an amount to begin. Valid amounts: 25, 50, 100, 200.

View tool JSON
{
  "name": "place_bet",
  "kind": "action",
  "impl": "imperative",
  "description": "Place a bet to start the blackjack round. Call this tool with an amount to begin. Valid amounts: 25, 50, 100, 200.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "amount": {
        "type": "number",
        "description": "Bet amount. Must be one of: 25, 50, 100, 200."
      }
    },
    "required": [
      "amount"
    ]
  }
}
get_my_handread

Returns your current blackjack hand with cards, total value, and soft/hard status. Call this to see what you have before deciding to hit or stand.

View tool JSON
{
  "name": "get_my_hand",
  "kind": "read",
  "impl": "imperative",
  "description": "Returns your current blackjack hand with cards, total value, and soft/hard status. Call this to see what you have before deciding to hit or stand.",
  "inputSchema": {
    "type": "object",
    "properties": {}
  }
}
get_dealer_upcardread

Returns the dealer's visible face-up card and its value. The dealer's other card is hidden. Use this with your hand to decide whether to hit or stand.

View tool JSON
{
  "name": "get_dealer_upcard",
  "kind": "read",
  "impl": "imperative",
  "description": "Returns the dealer's visible face-up card and its value. The dealer's other card is hidden. Use this with your hand to decide whether to hit or stand.",
  "inputSchema": {
    "type": "object",
    "properties": {}
  }
}
hitaction

Draw one more card in this blackjack game. Returns the drawn card and your updated hand. If not bust, decide to hit again or stand. You MUST call this tool to actually hit — just saying "hit" does nothing.

View tool JSON
{
  "name": "hit",
  "kind": "action",
  "impl": "imperative",
  "description": "Draw one more card in this blackjack game. Returns the drawn card and your updated hand. If not bust, decide to hit again or stand. You MUST call this tool to actually hit — just saying \"hit\" does nothing.",
  "inputSchema": {
    "type": "object",
    "properties": {}
  }
}
standaction

End your turn and keep your current hand. You MUST call this tool to actually stand — just saying "stand" does nothing.

View tool JSON
{
  "name": "stand",
  "kind": "action",
  "impl": "imperative",
  "description": "End your turn and keep your current hand. You MUST call this tool to actually stand — just saying \"stand\" does nothing.",
  "inputSchema": {
    "type": "object",
    "properties": {}
  }
}