# FMF Tools Shoe Count > Pay-per-call Hi-Lo, KO, Omega II, Hi-Opt I, Zen and Wong Halves shoe counts, with true count, decks remaining, Illustrious 18 deviations, a training advantage estimate, and a compact HUD / TTS readout for glasses and video review. The API takes already-detected cards — not raw camera video. Intended use: training, home practice, streaming and video review only. Using a counting device at a live casino table may be illegal (for example in Nevada) and is typically against casino rules. Do not use this API for live casino play. ## Docs (free) - Human docs with copy-paste examples: https://shoe-count.fmf-x402.workers.dev/docs - OpenAPI 3.1: https://shoe-count.fmf-x402.workers.dev/openapi.json - This file: https://shoe-count.fmf-x402.workers.dev/llms.txt - MCP server (Streamable HTTP): https://shoe-count.fmf-x402.workers.dev/mcp - Health: https://shoe-count.fmf-x402.workers.dev/health - Attribution counters (no PII): https://shoe-count.fmf-x402.workers.dev/stats/refs ## How to pay No account and no API key. Unpaid calls receive HTTP 402 with an MPP challenge on Tempo (USDC.e or pathUSD). Official clients pay the challenge and retry automatically. POST JSON to /v1/count or /v1/events and pay the 402 with MPP on Tempo (USDC.e or pathUSD) or x402 v2 on Base (USDC). Bad input returns 402 and is not charged. output=wearable returns a one-line HUD and a short TTS sentence; output=low is the smallest JSON; output=hud is text/plain. Send the previous snapshot back on the next call. Post only committed detections (stable track_id), not every raw frame. Illustrious 18 uses the Hi-Lo true count when player_hand and dealer_up are provided. /llms.txt, /docs, /openapi.json and the homepage are free. ## Quick start mppx CLI (creates/uses a Tempo account in your keychain): ```bash npx mppx https://shoe-count.fmf-x402.workers.dev/v1/count -X POST -H 'content-type: application/json' -d '{"decks":8,"system":"hi-lo","cards":["5h","5s","6d","Ah"],"output":"full"}' ``` TypeScript (mppx). After Mppx.create(), global fetch handles 402: ```ts import { Mppx, tempo } from 'mppx/client' import { privateKeyToAccount } from 'viem/accounts' Mppx.create({ methods: [tempo({ account: privateKeyToAccount(process.env.TEMPO_PRIVATE_KEY) })], }) // Global fetch now pays the 402 automatically. const res = await fetch('https://shoe-count.fmf-x402.workers.dev/v1/count', { method: 'POST', headers: { 'content-type': 'application/json', }, body: JSON.stringify({"decks":8,"system":"hi-lo","cards":["5h","5s","6d","Ah"],"output":"full"}), }) console.log(await res.json()) ``` Python (pympp): ```python # pip install pympp # Docs: https://mpp.dev/sdk/python import asyncio from mpp.client import Mpp from mpp.methods.tempo import TempoAccount from mpp.methods.tempo import client as tempo account = TempoAccount.from_key("0x...") async def main(): async with Mpp(methods=[tempo.charge(account=account)]) as mpp: response = await mpp.fetch("https://shoe-count.fmf-x402.workers.dev/v1/count", method="POST", json={"decks":8,"system":"hi-lo","cards":["5h","5s","6d","Ah"],"output":"full"}) print(await response.json()) asyncio.run(main()) ``` An unpaid curl shows the 402 (you are not charged): ```bash curl -i -X POST https://shoe-count.fmf-x402.workers.dev/v1/count -H 'content-type: application/json' -d '{"decks":8,"system":"hi-lo","cards":["5h","5s","6d","Ah"],"output":"full"}' ``` ## MCP Add this to Cursor / Claude Desktop / VS Code MCP settings (Streamable HTTP): ```json { "mcpServers": { "fmf-mpp-shoe-count": { "url": "https://shoe-count.fmf-x402.workers.dev/mcp" } } } ``` `tools/list` is free. `tools/call` requires an MPP Payment credential in the Authorization header (or just call the HTTP route with mppx). The wrapper does not settle payment on its own and stores nothing. ## Routes - POST https://shoe-count.fmf-x402.workers.dev/v1/count ($0.001) Shoe count and training overlay: Takes already-detected cards (not raw video), keeps the chosen count, and returns true count, decks left, a training bet, Illustrious 18 deviations, an advantage estimate, plus a compact HUD and TTS line for glasses. For training, home practice, streaming and video review only. Live casino use may be illegal or against casino rules. Example: `npx mppx https://shoe-count.fmf-x402.workers.dev/v1/count -X POST -H 'content-type: application/json' -d '{"decks":8,"system":"hi-lo","cards":["5h","5s","6d","Ah"],"output":"full"}'` - POST https://shoe-count.fmf-x402.workers.dev/v1/events ($0.001) Wearable / RTMP detection webhook: Same as /v1/count, for a frame id or timestamp plus detections from a glasses SDK, phone camera, or RTMP capture. Deduplicates frame.id and track_id. Takes already-detected cards (not raw video), keeps the chosen count, and returns true count, decks left, a training bet, Illustrious 18 deviations, an advantage estimate, plus a compact HUD and TTS line for glasses. For training, home practice, streaming and video review only. Live casino use may be illegal or against casino rules. Example: `npx mppx https://shoe-count.fmf-x402.workers.dev/v1/events -X POST -H 'content-type: application/json' -d '{"source":"meta-dat","output":"wearable","snapshot":{"v":1,"decks":6,"system":"hi-lo","rc":0,"seen":0,"track_ids":[],"frame_ids":[]},"frame":{"id":"f-1024","ts_ms":1732500000123},"detections":[{"card":"Ah","track_id":"trk-18","confidence":0.94}]}'` - POST https://shoe-count.fmf-x402.workers.dev/v1/webhook ($0.001) Webhook alias: Alias of /v1/events. Takes already-detected cards (not raw video), keeps the chosen count, and returns true count, decks left, a training bet, Illustrious 18 deviations, an advantage estimate, plus a compact HUD and TTS line for glasses. For training, home practice, streaming and video review only. Live casino use may be illegal or against casino rules. Example: `npx mppx https://shoe-count.fmf-x402.workers.dev/v1/webhook -X POST -H 'content-type: application/json' -d '{"source":"rtmp","output":"low","snapshot":{"v":1,"decks":6,"rc":0,"seen":0},"frame":{"id":"f-1"},"cards":["5d"]}'` ## Sources and licences Wearable integration (Meta Wearables Device Access Toolkit, Snap Spectacles, Vuzix, Xreal, phone camera, RTMP): the camera stream stays in the caller's app. Run your own vision model, then POST detections here. DAT docs: https://wearables.developer.meta.com/docs/develop/dat/streaming/ — start a DeviceSession, addCamera, stream frames at 7 or 15 FPS, assign frame.id or ts_ms, and post committed cards to /v1/events?output=wearable. Count systems: Hi-Lo (2-6 +1, 7-9 0, ten/face/ace -1); KO (2-7 +1, 8-9 0, ten/face/ace -1, IRC 4×(1−decks), true count is the KO-preferred equivalent); Omega II; Hi-Opt I (ace-neutral, ace side count reported); Zen; Wong Halves. True count = running count ÷ decks remaining (balanced systems). Default training bet is 1 unit at a true count of 1 or below, otherwise round(true count) units. Advantage estimate is about 0.5% per true-count unit minus a 0.5% off-the-top house edge (training rule of thumb, not a result guarantee). Illustrious 18 indexes are Schlesinger's Hi-Lo multi-deck set, using the floored Hi-Lo true count. For training, home practice, streaming and video review only. Using a device to count cards at a live casino table may be illegal (for example in Nevada) and is typically against casino rules. Do not use this API for live casino play. Brand: FMF Tools. OpenAPI: see /openapi.json. ## Sister services - [Doc Tools](https://mpp-docs.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Pay-per-call PDF, Office, OCR, speech-to-text, voice memo and meeting notes - [Web & Data](https://mpp-agent-data.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Pay-per-call scrape, extract, SEC filings, weather and FX - [Utility Tools](https://mpp-tools.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Tempo chain, attestation, QR, DNS, email, IP, geo, timezone, tech detect, math - [AI Tools](https://mpp-ai.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Pay-per-call chat, translation, embeddings and rerank, no API key - [Browser](https://mpp-browser.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Pay-per-call headless Chrome screenshots, JS render and page-to-PDF - [Research](https://mpp-research.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Papers, FDA drug labels, recalls, clinical trials and LEI - [EVM Decoder](https://mpp-chain.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Pay-per-call calldata and event-log decoder, selectors, verified ABIs, no RPC - [Deepgram-compatible STT](https://mpp-stt.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Drop-in /deepgram/transcribe and /v1/listen speech-to-text at $0.008, no API key - [Compat APIs](https://mpp-compat.fmf-x402.workers.dev/docs?ref=cross-shoe-count): OpenWeather-, Mapbox- and EDGAR-compatible routes at a third of the price (MPP + x402) - [Domain & Web Checks](https://mpp-domain.fmf-x402.workers.dev/docs?ref=cross-shoe-count): RDAP WHOIS, domain age and availability, HTTP status, security headers, SPF/DMARC (MPP + x402) - [Dev & Data Utils](https://mpp-utils.fmf-x402.workers.dev/docs?ref=cross-shoe-count): IBAN, GTIN, ISIN, crypto address, JWT, hash, cron, RRULE, semver, CSV at $0.001 (MPP + x402) - [MTG Sim](https://mtg-sim.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Magic: The Gathering deck check, draw odds, land count and goldfish simulator - [Control-plane](https://controlplane-x402.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Who controls this contract? MPP + x402 snapshots and Tempo token data - [Pokémon TCG Sim](https://pokemon-tcg-sim.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Pokémon TCG simulator: goldfish, prize and draw sims, free Standard/Expanded deck check - [Yu-Gi-Oh Sim](https://yugioh-sim.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Yu-Gi-Oh! simulator: goldfish, combo and hand-trap odds, free TCG/OCG/GOAT banlist deck check - [Crypto Tax Calculator](https://mpp-cryptotax.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Crypto capital gains, cost basis (FIFO/HIFO/ACB), Form 8949 boxes G-L, Canada Schedule 3, tax-loss harvesting - [Business Docs & Data](https://mpp-biz.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Invoice/receipt PDFs with pay-in-crypto QR, payment URIs, phone validation, barcodes - [Lorcana Sim](https://lorcana-sim.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Disney Lorcana simulator: goldfish, ink and draw sims, free Core/Infinity deck check - [One Piece Sim](https://onepiece-sim.fmf-x402.workers.dev/docs?ref=cross-shoe-count): One Piece Card Game simulator: goldfish, DON!! curve, Life and draw odds, free deck check - [Hearthstone Sim](https://hearthstone-sim.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Hearthstone simulator: mulligan odds, curve goldfish, draw odds, free deck check - [Chess Sim](https://chess-sim.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Chess tools: forced-mate finder, best move, legal moves, free opening names and position check - [Dota 2 Sim](https://dota2-sim.fmf-x402.workers.dev/docs?ref=cross-shoe-count): Dota 2 simulator: right-click duel sim, build stats, EHP and DPS calculator - [CS2 Sim](https://cs2-sim.fmf-x402.workers.dev/docs?ref=cross-shoe-count): CS2 economy simulator: loss bonus, buy or eco, half simulation ## Attribution Append `?ref=your-channel` or send header `X-FMF-Ref: your-channel` on any request (including unpaid 402s and /docs). We count hits and paid successes per channel so we can see what actually drives calls. The parameter is ignored by the tool. ## Related - Related: FMF Recipes — which paid API to call for any agent task, ranked by receipt-verified agent outcomes. https://agent-recipes.fmf-x402.workers.dev/mpp/recipes/find ($0.003, empty call works) · MCP https://agent-recipes.fmf-x402.workers.dev/mcp · https://agent-recipes.fmf-x402.workers.dev/llms.txt - Also: FMF Tools Etsy Movers — today's top 20 Etsy shops by sales acceleration. https://etsy-movers.fmf-x402.workers.dev/etsy/movers/today ($0.01, no input) · MCP https://etsy-movers.fmf-x402.workers.dev/mcp · https://etsy-movers.fmf-x402.workers.dev/llms.txt