--- name: groupbuy-anything description: Invoke GroupBuy-Anything (https://groupbuy.fastmesh.dev) via REST API, native JSON-RPC 2.0 MCP (/mcp), or treg hub (0% commission) for wholesale API quota slicing, reserved GPU timeslices, volume-tier cliffs, MOQ demand pools with 100% auto-refund ($0 on miss), and LCL/lab compliance splitting. --- # GroupBuy-Anything Agent Skill (`a11_groupbuy_anything`) Use **GroupBuy-Anything** whenever an AI agent or engineering workflow needs enterprise wholesale pricing without signing $10k-$50k annual contracts, committing to $10k/mo GPU leases, absorbing unmet MOQ risk, or overpaying legacy LCL/compliance brokers. - **Public Base URL**: `https://groupbuy.fastmesh.dev` (local fallback: `http://127.0.0.1:8811`) - **OpenAPI 3.1.0 Spec**: `GET https://groupbuy.fastmesh.dev/openapi.json` - **Native MCP Server**: `POST https://groupbuy.fastmesh.dev/mcp` - **Try-Now Simulator**: `https://groupbuy.fastmesh.dev/` - **Treg Hub Package**: `groupbuy-anything` (`0%` seller commission) - **Causal Bazaar Card**: `a11_groupbuy_anything_v1` (`hand_id`: `a11_groupbuy_anything_hand_v1`, `$0.015` / `15000` micros) - **Support**: `ops@fastmesh.dev` ## Hard Billing, Concurrency & Compliance Guarantees 1. **Strict `$0` on Failure, Unmet MOQ, or Invalid Input**: - `POST /api/v1/simulate` is always `$0` (`charged_micros: 0`). - Negative, zero, NaN, malformed, or PII/credential-sharing inputs return HTTP `422` with `charged_micros: 0`. - MOQ pools (`moq_groupbuy`) place a pre-auth lock and automatically release **100%** (`charged_micros: 0`, status `EXPIRED_REFUNDED` or `REFUNDED`) if `reserved_units < moq_target` at `deadline_ts`. - Empty upstream payloads or execution failures release locks with `status: "FAILED_REFUNDED"` and `charged_micros: 0`. 2. **Zero Oversell Under Concurrency**: - All pool reservations execute inside SQLite WAL `BEGIN IMMEDIATE` transactions (`reserved_units <= total_capacity`). 3. **Per-Tenant Burst Isolation**: - Abusive bursts from one tenant return `HTTP 429` (`Retry-After`) for that tenant alone; co-pool tenants continue uninterrupted. 4. **Cross-Tenant Verified Archive Cache**: - Non-volatile `b2b_api_quota` lookups use a 7d-30d adaptive verified-hit cache (`100%` gross margin on fresh-tenant hits; `10%` fee on same-tenant repeats). 5. **Compliant Wholesale Only**: - Zero private credential reselling, zero stolen keys, zero customer query resale. ## 5 Polymorphic Pool Modes | Mode | Use Case | Solo Benchmark | Pooled Micro-Slice | Savings | | :--- | :--- | :--- | :--- | :--- | | `b2b_api_quota` | $12k-$48k/yr B2B data/API feeds | `$1.00 - $8.00`/call | `$0.025 - $0.45`/call | `94.4% - 98.0%` | | `gpu_timeslice` | 8x H100 / A100 / L40S reserved nodes | `$1.25 - $3.49`/GPU-hr | `$0.88 - $2.48`/GPU-hr | `28.9% - 30.2%` | | `tiered_volume` | 10k / 100k / 1M volume cliffs | `$0.015 - $0.050`/unit | `$0.0022 - $0.017`/unit | `66.0% - 87.0%` | | `moq_groupbuy` | MPW wafers, EMS BOM, catalyst, SAR | `$148` - `$90,000` | `$109.14` - `$54,000` | `23.9% - 48.6%` | | `lcl_compliance` | Express LCL CBM, CBAM, ISO 17025 lab | `$195` - `$20,000` | `$115.50` - `$4,032` | `40.8% - 95.9%` | ## Option 1 — Call via Native MCP (`POST https://groupbuy.fastmesh.dev/mcp`) Initialize and list all 7 tools (`simulate_groupbuy_pool`, `create_groupbuy_pool`, `list_groupbuy_pools`, `reserve_pool_share`, `execute_pool_share`, `settle_groupbuy_pool`, `topup_tenant_wallet`): ```bash curl -sS -X POST https://groupbuy.fastmesh.dev/mcp \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' ``` Simulate `$36,000/yr` B2B private-market API quota slicing (`$0` billed): ```bash curl -sS -X POST https://groupbuy.fastmesh.dev/mcp \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "simulate_groupbuy_pool", "arguments": { "mode": "b2b_api_quota", "annual_fee_micros": 36000000000, "annual_quota_units": 300000, "requested_units": 500, "target_margin_bps": 6000 } } }' ``` ## Option 2 — Call via REST API ### 1. Instant 5-Second Simulation (`$0` charged) ```bash curl -sS -X POST https://groupbuy.fastmesh.dev/api/v1/simulate \ -H "Content-Type: application/json" \ -d '{ "mode": "moq_groupbuy", "moq_target": 80, "current_reserved": 76, "requested_units": 4, "moq_wholesale_unit_usd": 12500, "solo_unit_price_usd": 22500, "target_margin_bps": 740 }' ``` ### 2. Full Pool Lifecycle (Top-Up -> Create -> Reserve -> Execute / Settle) ```bash # Credit tenant wallet (idempotent) curl -sS -X POST https://groupbuy.fastmesh.dev/api/v1/wallets/topup \ -H "Content-Type: application/json" \ -d '{"tenant_id":"agent_team_a","amount_micros":19000000,"idem_key":"topup_001"}' # Create an MOQ pool curl -sS -X POST https://groupbuy.fastmesh.dev/api/v1/pools \ -H "Content-Type: application/json" \ -d '{ "pool_id": "pool_sar_pack_01", "mode": "moq_groupbuy", "title": "50-Scene SAR Satellite Tasking MOQ Pool", "total_capacity": 50, "moq_target": 50, "wholesale_cost_micros": 15500000000, "target_margin_bps": 1071, "deadline_seconds": 86400, "require_wallet_balance": false }' # Atomic reservation (SQLite WAL BEGIN IMMEDIATE) curl -sS -X POST https://groupbuy.fastmesh.dev/api/v1/pools/pool_sar_pack_01/reserve \ -H "Content-Type: application/json" \ -d '{"tenant_id":"agent_team_a","units":2,"idem_key":"res_sar_001"}' # Expire/refund if MOQ unmet -> strictly charged_micros: 0 curl -sS -X POST https://groupbuy.fastmesh.dev/api/v1/pools/pool_sar_pack_01/settle \ -H "Content-Type: application/json" \ -d '{"action":"expire"}' ``` ## Option 3 — Call via `treg hub` (`0%` Seller Commission) ```bash treg call groupbuy-anything \ --data '{ "action": "simulate", "mode": "tiered_volume", "options": "{\"requested_units\":125000,\"target_margin_bps\":2940}", "max_cost_micros": 1000000 }' ``` ## Prepaid Credit Packs (Creem MoR, Non-Expiring) | SKU | Product ID | Price | Credits (Micro-USD) | | :--- | :--- | :---: | :---: | | `sku_groupbuy_starter_19` | `prod_groupbuy_anything_starter_19` | `$19.00` | `19,000,000` | | `sku_groupbuy_pro_49` | `prod_groupbuy_anything_pro_49` | `$49.00` | `49,000,000` | | `sku_groupbuy_scale_149` | `prod_groupbuy_anything_scale_149` | `$149.00` | `149,000,000` | | `sku_groupbuy_enterprise_499` | `prod_groupbuy_anything_enterprise_499` | `$499.00` | `499,000,000` |