Skip to main content
Glama

action_bet

Place a bet in Texas Holdem poker games on the MCP server by specifying player ID, table ID, and bet amount.

Instructions

do action bet

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYes
player_idYes
table_idYes

Implementation Reference

  • Handler for the 'action_bet' tool: sends 'performAction' request to poker server with action 'bet' and amount, then polls and formats updated table state.
    else if (request.params.name === "action_bet") { response = await sendPokerRequest('performAction', { playerId: args?.player_id, tableId: args?.table_id, action: 'bet', amount: args?.amount }); view_text = `Player ${args?.player_id} action: Bet $${args?.amount}\n Game state:\n`; // Get updated table state view_text += await pollUntilPlayerActive(args?.player_id, args?.table_id); }
  • Tool registration including name, description, and input schema for 'action_bet' in the ListTools response.
    { name: "action_bet", description: "do action bet", inputSchema: { type: "object", properties: { player_id: { type: "string" }, table_id: { type: "string" }, amount: { type: "number" }, }, required: ["player_id", "table_id", 'amount'], }, },

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/freshlife001/mcp_poker'

If you have feedback or need assistance with the MCP directory API, please join our Discord server