{"at":"2026-11-23T06:13:43.663Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T06:13:44.053Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T06:13:44.153Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T06:13:44.593Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"buda-mcp","version":"2.0.0"}}}}
{"at":"2026-11-23T06:13:44.593Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T06:13:44.593Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T06:13:44.598Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Lists all available trading pairs on Buda.com, or returns details for a specific market (base/quote currencies, taker/maker fees as decimals, minimum order size in base currency, and fee discount tiers). Omit market_id to get all ~26 markets at once. Example: 'What is the taker fee and minimum order size for BTC-CLP?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"market_id":{"description":"Optional market ID (e.g. 'BTC-CLP', 'ETH-BTC'). Omit to list all markets.","type":"string"}},"type":"object"},"name":"get_markets"},{"description":"Returns the current market snapshot for a Buda.com market: last traded price, best bid, best ask, 24h volume, and price change over 24h and 7d. All prices are floats in the quote currency (e.g. CLP for BTC-CLP). price_variation_24h is a decimal fraction (0.012 = +1.2%). Example: 'What is the current Bitcoin price in Chilean pesos?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-BTC', 'BTC-COP').","type":"string"}},"required":["market_id"],"type":"object"},"name":"get_ticker"},{"description":"Returns the current order book for a Buda.com market as typed objects with float price and amount fields. Bids are sorted highest-price first; asks lowest-price first. Prices are in the quote currency; amounts are in the base currency. Example: 'What are the top 5 buy and sell orders for BTC-CLP right now?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"description":"Maximum number of levels to return per side (default: all).","exclusiveMinimum":0,"maximum":9007199254740991,"type":"integer"},"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-BTC').","type":"string"}},"required":["market_id"],"type":"object"},"name":"get_orderbook"},{"description":"Returns recent trade history for a Buda.com market as typed objects. Each entry has timestamp_ms (integer), amount (float, base currency), price (float, quote currency), and direction ('buy' or 'sell'). Example: 'What was the last executed price for BTC-CLP and was it a buy or sell?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"description":"Number of trades to return (default: 50, max: 100).","maximum":100,"minimum":1,"type":"integer"},"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-BTC').","type":"string"},"timestamp":{"description":"Unix timestamp (seconds) to paginate from. Returns trades older than this timestamp.","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["market_id"],"type":"object"},"name":"get_trades"},{"description":"Returns 24h and 7-day transacted volume for a Buda.com market, split by buy (bid) and sell (ask) side. All volume values are floats in the base currency (e.g. BTC for BTC-CLP). Example: 'How much Bitcoin was sold on BTC-CLP in the last 24 hours?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-BTC').","type":"string"}},"required":["market_id"],"type":"object"},"name":"get_market_volume"},{"description":"Returns the best bid, best ask, absolute spread, and spread percentage for a Buda.com market. All prices are floats in the quote currency (e.g. CLP). spread_percentage is a float in percent (e.g. 0.15 means 0.15%). Use this to evaluate liquidity before placing a large order. Example: 'Is BTC-CLP liquid enough to buy 10M CLP without significant slippage?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-BTC', 'BTC-COP').","type":"string"}},"required":["market_id"],"type":"object"},"name":"get_spread"},{"description":"Returns side-by-side ticker data for all trading pairs of a given base currency across Buda.com's supported quote currencies (CLP, COP, PEN, BTC, USDC, ETH). All prices are floats; price_change_24h and price_change_7d are floats in percent (e.g. 1.23 means +1.23%). Example: 'In which country is Bitcoin currently most expensive on Buda?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"base_currency":{"description":"Base currency to compare across all available markets (e.g. 'BTC', 'ETH', 'XRP').","type":"string"}},"required":["base_currency"],"type":"object"},"name":"compare_markets"},{"description":"IMPORTANT: Candles are aggregated client-side from raw trades (Buda has no native candlestick endpoint) — fetching more trades via the 'limit' parameter gives deeper history but slower responses. Returns OHLCV candles (open/high/low/close as floats in quote currency; volume as float in base currency) for periods 5m, 15m, 30m, 1h, 4h, or 1d. Candle timestamps are UTC bucket boundaries. Example: 'Show me the hourly BTC-CLP price chart for the past 24 hours.'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"description":"Raw trades to fetch before aggregation (default: 100, max: 1000). More trades = deeper history but slower response.","maximum":1000,"minimum":1,"type":"integer"},"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-BTC').","type":"string"},"period":{"default":"1h","description":"Candle period: '5m', '15m', '30m', '1h', '4h', or '1d'. Default: '1h'.","enum":["5m","15m","30m","1h","4h","1d"],"type":"string"}},"required":["market_id"],"type":"object"},"name":"get_price_history"},{"description":"Detects cross-country price discrepancies for a given asset across Buda's CLP, COP, and PEN markets, normalized to USDC. Fetches all relevant tickers, converts each local price to USDC using the current USDC-CLP / USDC-COP / USDC-PEN rates, then computes pairwise discrepancy percentages. Results above threshold_pct are returned sorted by opportunity size. Note: Buda taker fee is 0.8% per leg (~1.6% round-trip) — always deduct fees before acting on any discrepancy. Example: 'Is there an arbitrage opportunity for BTC between Chile and Peru right now?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"base_currency":{"description":"Base asset to scan (e.g. 'BTC', 'ETH', 'XRP').","maxLength":10,"minLength":2,"pattern":"^[A-Z0-9]+$","type":"string"},"threshold_pct":{"default":0.5,"description":"Minimum price discrepancy percentage to include in results (default: 0.5). Buda taker fee is 0.8% per leg, so a round-trip requires > 1.6% to be profitable.","minimum":0,"type":"number"}},"required":["base_currency"],"type":"object"},"name":"get_arbitrage_opportunities"},{"description":"One-call summary of everything relevant about a market: last price, best bid/ask, spread %, 24h volume, 24h and 7d price change, and a liquidity_rating ('high' / 'medium' / 'low' based on spread thresholds: < 0.3% = high, 0.3–1% = medium, > 1% = low). All prices and volumes are floats. Best first tool to call when a user asks about any specific market. Example: 'Give me a complete overview of the BTC-CLP market right now.'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-COP', 'BTC-PEN').","type":"string"}},"required":["market_id"],"type":"object"},"name":"get_market_summary"},{"description":"[DEPRECATED: prefer get_real_quotation for server-side accurate quotes] Simulates a buy or sell order on Buda.com using live ticker data — no order is placed. Returns estimated fill price, fee, total cost, and slippage vs mid-price. Omit 'price' for a market order simulation; supply 'price' for a limit order simulation. All outputs are labelled simulation: true — this tool never places a real order. Example: 'How much would it cost to buy 0.01 BTC on BTC-CLP right now?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"amount":{"description":"Order size in base currency (e.g. BTC for BTC-CLP).","exclusiveMinimum":0,"type":"number"},"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-BTC').","type":"string"},"price":{"description":"Limit price in quote currency. Omit for a market order simulation.","exclusiveMinimum":0,"type":"number"},"side":{"description":"'buy' or 'sell'.","enum":["buy","sell"],"type":"string"}},"required":["market_id","side","amount"],"type":"object"},"name":"simulate_order"},{"description":"Gets a server-side price quotation for a buy or sell on Buda.com. Calls the Buda quotation API to compute an accurate fill estimate including fees, based on live order book state. Prefer this over simulate_order for accurate fee-tier-aware quotes. This is a POST (not idempotent) but does not place an order. Public endpoint — no API key required. Parameters: market_id, type ('Bid'|'Ask'), amount, optional limit price. Example: 'Get an accurate quote to sell 0.05 BTC on BTC-CLP.'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"amount":{"description":"Order size (positive number).","exclusiveMinimum":0,"type":"number"},"limit":{"description":"Optional limit price in quote currency.","exclusiveMinimum":0,"type":"number"},"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-BTC').","type":"string"},"type":{"description":"'Bid' to buy base currency, 'Ask' to sell base currency.","enum":["Bid","Ask"],"type":"string"}},"required":["market_id","type","amount"],"type":"object"},"name":"get_real_quotation"},{"description":"Calculates position size based on your capital, risk tolerance, entry price, and stop-loss. Determines how many units to buy or sell so that a stop-loss hit costs exactly risk_pct% of capital. Fully client-side — no API call is made. Example: 'How many BTC can I buy on BTC-CLP if I have 1,000,000 CLP, risk 2%, entry 80,000,000 CLP, stop at 78,000,000 CLP?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"capital":{"description":"Total available capital in the quote currency (e.g. CLP for BTC-CLP).","exclusiveMinimum":0,"type":"number"},"entry_price":{"description":"Planned entry price in quote currency.","exclusiveMinimum":0,"type":"number"},"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-COP'). Used to derive the quote currency.","type":"string"},"risk_pct":{"description":"Percentage of capital to risk on this trade (0.1–10, e.g. 2 = 2%).","maximum":10,"minimum":0.1,"type":"number"},"stop_loss_price":{"description":"Stop-loss price in quote currency. Must be below entry for buys, above entry for sells.","exclusiveMinimum":0,"type":"number"}},"required":["market_id","capital","risk_pct","entry_price","stop_loss_price"],"type":"object"},"name":"calculate_position_size"},{"description":"Computes a composite sentiment score (−100 to +100) for a Buda.com market based on 24h price variation (40%), volume vs 7-day average (35%), and bid/ask spread vs baseline (25%). Returns a score, a label (bearish/neutral/bullish), and a full component breakdown. Example: 'Is the BTC-CLP market currently bullish or bearish?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-BTC', 'BTC-USDT').","type":"string"}},"required":["market_id"],"type":"object"},"name":"get_market_sentiment"},{"description":"Computes RSI (14), MACD (12/26/9), Bollinger Bands (20, 2σ), SMA 20, and SMA 50 from Buda trade history — no external data or libraries. Supports periods: 5m, 15m, 30m, 1h, 4h, 1d. Use shorter periods (5m/15m) for intraday analysis. Uses at least 500 trades for reliable results (set limit=1000 for maximum depth). Returns latest indicator values and signal interpretations (overbought/oversold, crossover, band position). If fewer than 20 candles are available after aggregation, returns a structured warning instead. Example: 'Is BTC-CLP RSI overbought on the 4-hour chart?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"limit":{"description":"Number of raw trades to fetch (default: 500, max: 1000). More trades = more candles = more reliable indicators.","maximum":1000,"minimum":500,"type":"integer"},"market_id":{"description":"Market ID (e.g. 'BTC-CLP', 'ETH-BTC').","type":"string"},"period":{"default":"1h","description":"Candle period: '5m', '15m', '30m', '1h', '4h', or '1d'. Default: '1h'.","enum":["5m","15m","30m","1h","4h","1d"],"type":"string"}},"required":["market_id"],"type":"object"},"name":"get_technical_indicators"},{"description":"Returns banks available for deposits and withdrawals of a fiat currency on Buda.com. Returns an empty banks array (not an error) if the currency has no associated banks (e.g. crypto currencies or unsupported fiat currencies). Results are cached for 60 seconds. Example: 'Which banks can I use for CLP deposits?'","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"currency":{"description":"Currency code (e.g. 'CLP', 'COP', 'PEN').","maxLength":10,"minLength":2,"type":"string"}},"required":["currency"],"type":"object"},"name":"get_available_banks"}]}}}
