Skip to main content
Glama

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

Get technicals

get_technicals
Read-onlyIdempotent

Get pre-computed daily technicals (moving averages, relative-strength rating, 52-week range, volume anomalies) for a CSE stock OR a sector/headline index (ASPI, S&P SL20, industry sub-indices) — one tool for both. Returns CSV, one row per trading day, most recent last. Defaults to the most recent 50 trading days; if more history is available the response says so and how to page further back with offset. If the input is ambiguous, returns JSON candidates instead.

Input Schema

NameRequiredDescriptionDefault
toNoUpper bound of the date range to search within for the most recent `limit` matching trading days. Omit for no upper bound (defaults to the latest available date).
fromNoLower bound of the date range to search within for the most recent `limit` matching trading days. Omit for no lower bound.
limitNoMax trading days to return. Rows are selected most-recent-first within the range before being reversed to chronological order — use `offset` to page further back in history.
offsetNoSkip this many of the most recent trading days before taking `limit` — use to page further back into history.
symbolYesA CSE ticker, company name, index symbol/name/abbreviation (e.g. "SAMP", "Sampath Bank", "ASPI", "Energy"), or a typo of any. If the input is ambiguous, the response returns candidates instead of data; ask the user to pick one and call again with the exact symbol.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"Start date in YYYY-MM-DD format"New value: +"Lower bound of the date range to search within for the most recent `limit` matching trading days. Omit for no lower bound."
    • changedInput schema / properties / limit / description
      Previous value: -"Max trading days to return, most recent first (before reversing to chronological order). Default 50, max 500."New value: +"Max trading days to return. Rows are selected most-recent-first within the range before being reversed to chronological order — use `offset` to page further back in history."
    • changedInput schema / properties / to / description
      Previous value: -"End date in YYYY-MM-DD format"New value: +"Upper bound of the date range to search within for the most recent `limit` matching trading days. Omit for no upper bound (defaults to the latest available date)."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description layers on non-obvious behavior: CSV output shape ('one row per trading day, most recent last'), the 50-day default, self-disclosure when more history exists, and JSON candidate fallback on ambiguity. That is exactly the extra context annotations cannot convey.

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

Conciseness4/5

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

The single dense paragraph is front-loaded with the core purpose and output format, then tacks on defaults and ambiguity handling. Nearly every clause carries information, though the symbol-vs-index and ambiguity points could be separated for faster scanning.

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 steps in to describe the return format, row ordering, default window, and the JSON-candidates alternative response, plus how to page. Nothing an agent needs to invoke it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds end-to-end meaning: it ties limit/offset to chronological vs most-recent-first ordering and explains what happens when symbol resolution is ambiguous (candidates returned, re-call with exact symbol). This goes beyond the per-parameter text.

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?

The description gives a specific verb and resource ('Get pre-computed daily technicals') and enumerates the payload (moving averages, relative-strength rating, 52-week range, volume anomalies). It also states the dual coverage (CSE stock OR sector/headline index), which separates it from raw-data siblings like get_ohlc_data and index-only siblings like get_index_data.

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

Usage Guidelines4/5

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

It clearly frames when the tool applies ('for a CSE stock OR a sector/headline index ... one tool for both') and explains paging ('how to page further back with offset') and the ambiguous-input fallback. It stops short of naming an explicit alternative for raw price history, so the routing guidance is strong but not exhaustive.

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