{"ok":true,"site":{"host":"ceyloncharts.com","url":"https://www.ceyloncharts.com/","type":"live","desc":"Live Colombo Stock Exchange charts for every stock and index, an RS-rated screener, sector dashboards, top movers and a market health index. Free to start.","tools":[{"name":"search_symbols","kind":"answer","impl":"imperative","description":"Search Colombo Stock Exchange stocks and indices by ticker or company name. Returns matching symbols (e.g. \"JKH.N0000\") to use with open_chart.","title":"Search CSE symbols","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Ticker or company name, e.g. \"john keells\" or \"JKH\"."}},"required":["query"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"open_chart","kind":"act","impl":"imperative","description":"Open (or switch to) the candlestick chart for a symbol, optionally at a timeframe, and wait for its data to load. Call this before any chart tool when no chart is open.","title":"Open a chart","annotations":{"readOnlyHint":false},"inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"CSE symbol, e.g. \"JKH.N0000\" or an index like \"ASI\". Use search_symbols if unsure."},"timeframe":{"type":"string","enum":["1m","5m","15m","30m","1h","1D","1W","1M"],"description":"Bar size. Defaults to the current one."}},"required":["symbol"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"get_chart_state","kind":"answer","impl":"imperative","description":"What the open chart is showing: symbol, timeframe, compared symbols, candle type, the active indicators with their parameters, and the number of user drawings.","title":"Get chart state","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"get_visible_candles","kind":"answer","impl":"imperative","description":"OHLCV bars from the open chart, oldest first, as [date, open, high, low, close, volume]. Defaults to the bars currently in view.","title":"Get candles","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"range":{"type":"string","enum":["visible","all"],"description":"\"visible\" (default) = bars on screen; \"all\" = everything loaded."},"maxBars":{"type":"integer","minimum":1,"maximum":1000,"description":"Most recent N bars within the range. Default 200."}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"get_last_bar","kind":"answer","impl":"imperative","description":"The most recent bar on the open chart (or the bar under the user's crosshair if they are hovering one).","title":"Get latest bar","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"list_indicators","kind":"answer","impl":"imperative","description":"Indicators active on the open chart with their parameters, pane, and the names of the lines each one plots (e.g. MA → \"MA20\", \"MA50\"). Use the names with get_indicator_values.","title":"List indicators","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"get_indicator_values","kind":"answer","impl":"imperative","description":"Exact computed values of the indicators on the open chart (the numbers the chart plots — not estimates), per bar, with each bar's date and close. Includes a summary per indicator: latest value of each line, close's % distance from each price-pane line (e.g. moving averages), each line's % slope over the last 10 bars, and the most recent crossovers (line vs line, and close vs price-pane lines) with dates. Use for questions like \"analyze the MAs\".","title":"Get indicator values","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{"names":{"type":"array","items":{"type":"string"},"description":"Indicator names, e.g. [\"MA\", \"RSI\"]. Default: all active."},"range":{"type":"string","enum":["visible","all"],"description":"\"visible\" (default) = bars on screen; \"all\" = everything loaded."},"maxBars":{"type":"integer","minimum":1,"maximum":1000,"description":"Most recent N bars within the range. Default 200."},"summaryOnly":{"type":"boolean","description":"Omit per-bar rows and return just the summary. Default false."}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"get_drawings","kind":"answer","impl":"imperative","description":"Drawings on the open chart — trendlines, horizontal levels, rectangles, Fibonacci tools, text boxes, etc. — with each anchor point's date and price. Includes the user's own drawings and any the agent added (byAgent: true).","title":"Get chart drawings","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"set_timeframe","kind":"act","impl":"imperative","description":"Change the open chart's bar size and wait for the new data to load.","title":"Change timeframe","annotations":{"readOnlyHint":false},"inputSchema":{"type":"object","properties":{"timeframe":{"type":"string","enum":["1m","5m","15m","30m","1h","1D","1W","1M"]}},"required":["timeframe"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"add_indicator","kind":"act","impl":"imperative","description":"Add an indicator to the open chart (e.g. MA, EMA, RSI, MACD, BOLL), optionally with custom parameters (for MA/EMA/SMA each parameter is a period → one line, e.g. [20, 50, 200]). If it is already on the chart, only the parameters are updated. Use list_indicators for the available names.","title":"Add indicator","annotations":{"readOnlyHint":false},"inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Indicator name, e.g. \"MA\"."},"params":{"type":"array","items":{"type":"number"},"description":"Calculation parameters. Default: the app defaults."}},"required":["name"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"remove_indicator","kind":"act","impl":"imperative","description":"Remove an indicator from the open chart.","title":"Remove indicator","annotations":{"readOnlyHint":false},"inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"Indicator name, e.g. \"RSI\"."}},"required":["name"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"draw_price_level","kind":"act","impl":"imperative","description":"Draw a labelled horizontal line at a price on the open chart (e.g. support, resistance, target).","title":"Draw price level","annotations":{"readOnlyHint":false},"inputSchema":{"type":"object","properties":{"price":{"type":"number"},"label":{"type":"string","description":"Short label, e.g. \"Support\"."},"kind":{"type":"string","enum":["support","resistance","target","breakout_zone"],"description":"Sets the colour. Default \"target\"."}},"required":["price","label"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"draw_trendline","kind":"act","impl":"imperative","description":"Draw a straight line between two (date, price) points on the open chart. Dates snap to the nearest bar.","title":"Draw trendline","annotations":{"readOnlyHint":false},"inputSchema":{"type":"object","properties":{"from":{"type":"object","properties":{"date":{"type":"string"},"price":{"type":"number"}},"required":["date","price"]},"to":{"type":"object","properties":{"date":{"type":"string"},"price":{"type":"number"}},"required":["date","price"]},"extend":{"type":"boolean","description":"Extend the line to the right edge (a ray). Default false."}},"required":["from","to"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]},{"name":"clear_agent_drawings","kind":"act","impl":"imperative","description":"Remove every drawing the agent added to the open chart. The user's own drawings are left untouched.","title":"Clear agent drawings","annotations":{"readOnlyHint":false},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/","pages":["/","/methodology","/mcp","/sectors","/sector/food-beverage-and-tobacco","/sector/diversified-financials"]}],"category":"Finance & Crypto","favicon":"/favicons/ceyloncharts.com.png","apiSurface":"spec","toolCount":14}}