Skip to main content
Glama

CeylonCharts - Colombo Stocks Exchange (CSE) data for AI Agents

Get candlestick chart

get_chart
Read-onlyIdempotent

Render a candlestick + volume chart image (PNG) for a CSE symbol -- hand this to the user directly instead of describing price action from raw OHLC rows. EOD data only for now (daily/weekly/monthly bars, most recent bars periods) -- doesn't yet reflect today's live intraday movement. If the symbol is ambiguous, returns JSON candidates instead of an image.

Input Schema

NameRequiredDescriptionDefault
barsNoNumber of most-recent bars to render on the chart.
themeNoColor theme for the rendered chart image — pick "dark" to match a dark-mode UI.light
symbolYesA CSE ticker or company name (e.g. "SAMP" or "Sampath Bank"), typo-tolerant. An explicit instrument suffix (e.g. "SAMP.X0000") is respected; otherwise defaults to the voting-share instrument. If ambiguous, the response returns candidates instead of an image; ask the user to pick one and call again with the exact symbol.
intervalNoBar interval for the chart — "weekly"/"monthly" aggregate into coarser candles instead of daily bars.daily

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / bars / description
      Previous value: -"Number of most-recent bars to show. Default 90, max 250."New value: +"Number of most-recent bars to render on the chart."
    • changedInput schema / properties / interval / description
      Previous value: -"Bar interval. Default daily."New value: +"Bar interval for the chart — \"weekly\"/\"monthly\" aggregate into coarser candles instead of daily bars."
    • changedInput schema / properties / theme / description
      Previous value: -"Chart color theme. Default light."New value: +"Color theme for the rendered chart image — pick \"dark\" to match a dark-mode UI."
  2. Added

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only/idempotent/non-destructive, and the description adds genuinely new behavior: EOD-only data, no live intraday, and the dual return mode where an ambiguous symbol yields JSON candidates instead of an image. That is exactly the kind of non-obvious behavior an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with zero filler, front-loading the core action and the hand-to-user instruction before the caveats. Every clause carries information the agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description still tells the agent what comes back — a PNG image normally, or JSON candidates on ambiguity. Combined with the data-freshness caveat, nothing needed to call and interpret the result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and each of bars, theme, interval, and symbol is already documented in the schema. The description only reinforces what the schema says (most recent `bars` periods, daily/weekly/monthly intervals) without adding syntax or default details beyond it, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — render a candlestick + volume chart image (PNG) for a CSE symbol — and immediately distinguishes itself from the raw-data sibling get_ohlc_data by saying to hand the image to the user rather than describe price action from OHLC rows. An agent can route to it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says to use this instead of describing raw OHLC rows, and states the constraint that it is EOD-only and does not reflect today's live intraday movement — a clear when-not condition. It also documents the fallback path for ambiguous symbols (ask the user to pick from candidates and call again).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources