Skip to main content
Glama
sablier-ai

Sablier MCP Server

Official
by sablier-ai

get_history

Read-only

Retrieve OHLC price bars for any ticker to analyze historical returns, drawdowns, or run custom event studies.

Instructions

OHLC bars for a single ticker. range='1W'/'1M'/'3M'/'6M'/'1Y'/'2Y'/'5Y'/'ALL' for canned windows, OR pass start_date/end_date (YYYY-MM-DD) for a custom slice.

frequency='daily' (default) | 'weekly' | 'monthly' | 'quarterly' | 'annual' (alias: 'year_end'). For multi-year analysis, USE A COARSER FREQUENCY rather than 50 point queries. A 20-year range='ALL', frequency='annual' request returns ~20 rows; the equivalent in daily granularity is ~5,000 rows that exceed the agent-side response clamp and force you into the dozens-of-calls year-end-extraction pattern that costs credits and time. The downsampler keeps the LAST trading day of each period (week-end / month-end / etc.), which is what return / drawdown / vol calcs actually want.

Use for ad-hoc time-series analysis the trained models don't already cover (return distributions, drawdown curves, custom regression windows, event studies around specific dates).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangeNoCanned window: 1W / 1M / 3M / 6M / 1Y / 2Y / 5Y / ALL1M
tickerYesSingle ticker symbol (e.g. 'AAPL')
end_dateNoEnd date YYYY-MM-DD (overrides range)
frequencyNoBar granularity: 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'annual'. Default 'daily'.daily
start_dateNoStart date YYYY-MM-DD (overrides range)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true. The description adds valuable behavioral context beyond this: the downsampler keeps the last trading day of each period, large daily requests exceed the agent-side response clamp forcing a costly year-end-extraction pattern, and the frequency alias 'year_end'. This is actionable information the agent needs.

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 description is longer than average but every sentence carries important information: output definition, parameter alternatives, usage warning, downsampling behavior, and use-case context. It is well-structured with a clear progression, though it could be slightly tightened without losing value.

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?

For a tool with 5 parameters and an output schema, the description covers all necessary aspects: purpose, parameter semantics, behavioral quirks, cost implications, and use cases. Since an output schema exists, not detailing return values is acceptable. The description is fully adequate for an agent to select and invoke this tool correctly.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds meaning beyond the schema: explains that start_date/end_date override range, lists the exact range options, clarifies the 'annual' alias 'year_end', and links frequency choice to response size and credits. This goes well beyond the baseline of simply having parameter descriptions.

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 exactly what the tool returns: 'OHLC bars for a single ticker.' This clearly distinguishes it from siblings like get_quotes (current quotes), compute_returns (derived metrics), and get_fundamentals (fundamental data). The scope is explicit: single ticker, historical bars.

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?

Provides explicit when-to-use guidance: 'Use for ad-hoc time-series analysis the trained models don't already cover.' It also gives specific best practices, e.g., use coarser frequencies for multi-year analysis to avoid exceeding the agent-side response clamp and incurring extra credits/time. This helps the agent choose this tool over alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sablier-ai/sablier-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server