Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CANLI_HOMENoWhere the paper pack keeps its limits file, kill switch and order log, and where the audit log and its keys are kept; default ~/.canli.
CANLI_FRONTNoChanges which tools are listed directly in front of the model; empty lists only find_tool, describe_tool and run_tool.
CANLI_PACKSNoPacks to enable: quant,validation,fundamentals,research,backtest,markets,paper or all. Default: all but paper.
CANLI_POLICYNoA policy file's path, or the policy itself as JSON. Unset: no policy and no audit log.
CANLI_OFFLINENo1 keeps only quant and validation; no other pack's code is loaded.
CANLI_PLUGINSNoPlugin packs to load: package names or .mjs paths, comma-separated.
CANLI_CACHE_DIRNoCache location for public fundamentals data; CANLI_CACHE_DIR="" keeps nothing.
ALPACA_PAPER_KEY_IDNoAlpaca paper key ID (starting PK). Setting this together with ALPACA_PAPER_SECRET_KEY enables the paper pack.
ALPACA_PAPER_SECRET_KEYNoAlpaca paper secret key. Setting this together with ALPACA_PAPER_KEY_ID enables the paper pack.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Canli Capital's finance tools in one server: 437 tools in 6 packs (quant, validation, fundamentals, research, backtest, markets). history and financial_statements are tools of their own here: call them directly. Common tools, which run_tool takes without a search first (as {name, arguments}) unless listed above: a company's SEC-reported figures over time: history {company, concept} or, for several at once, {company, concepts: [...]} (plain names like revenue or XBRL tags; basis first_reported or latest); figures as known on a date: known_as_of {company, as_of}; statements as filed: financial_statements {company}; filings and their text: list_filings, read_filing, search_filings; prices: price_history {symbol}; macro series: economic_series. For anything else, call the find_tool tool with what you need in plain words; its results include each tool's arguments, so you can usually call run_tool next (describe_tool explains arguments in full). To save tokens: pass long data as {"$file": "path.csv", "column": "close"} instead of pasting numbers; put several calls in one run_tool, using {"$result": i, "path": "field"} to feed one call's output into the next, and return: "last" when only the final answer matters. To show prices (several are compared), markets, yields, statements, options, a backtest, holdings or orders, add view: true: the person gets an interactive view, you a summary. Returns are simple fractions (0.01 = 1%), oldest first. canli://privacy says what each pack sends and stores. To double-check figures in a written draft, verify_claims (through run_tool) marks each confirmed, contradicted (with the filed figure) or not reported; figures that came from these tools need no second check.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": true,
  "listChanged": true
}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
find_toolA

Search the 437 finance tools (packs: quant, validation, fundamentals, research, backtest, markets) in plain words, e.g. "deflated sharpe", "revenue as of 2019". Returns the closest matches first, with names, argument signatures and one line each, even when none fits, so check them. Next: run_tool, or describe_tool if an argument is unclear.

describe_toolA

Read one tool's full description and input JSON Schema, between find_tool and run_tool, when find_tool's signature does not settle an argument. An unknown name returns an error.

run_toolA

Run a tool find_tool named: one ({name, arguments}), or up to 25 ({calls: [...]}). Independent calls run at once; a failed call returns its own error. Read-only unless the paper-trading pack is on. Any argument can be {"$file": "path.csv", "column": "close"} (or "columns": [...] / "all") instead of pasted numbers. {"$result": i, "path": "close"} passes batch call i's output into a later call; every result also has a ref ("r1", ...) later calls pass the same way, {"$result": "r1", "path": "close"}, so data never needs copying.

historyA

Get a measure (or several, with concepts) over time, newest first: latest (default), first reported, or as known on a filing date, with its filing, other version and yearly change. Use it for one measure across periods or as known on a past date; financial_statements for whole statements. Long answers come in pages.

financial_statementsA

A company's financial statements exactly as filed: income statement, balance sheet, cash flow and equity statement from its 10-K (or 10-Q), with its own line labels, each line's XBRL concept and the values as the filing shows them (units say the scale). Joins several filings by period; a line a later filing restated, or that a stock split changed, is shown beside its first-reported figure, never mixed in. Use it for every line in the company's own words; history for one measure over many years.

Prompts

Interactive templates invoked by user choice

NameDescription
company_briefA company's financials, its latest 8-K news with press-release headlines, its latest results against its guidance, its next earnings date, insider trades, short interest and the options market's expected move, from the filings and exchanges themselves.
earnings_previewBefore a company reports: when (estimated from its own filing history, before the open or after the close), what it guided for the quarter and whether it met its last guidance, the move the options market prices in, how the stock reacted to past results, and where its revenue comes from.
macro_snapshotWhere the US economy and rates stand: the Fed's latest decision and projections, what fed funds futures and Polymarket and Kalshi traders price for its next decisions, SOFR against the Fed's range and the Fed's footprint in the money markets, the key releases of the next two weeks, inflation, core PCE and unemployment over the last year with the Cleveland Fed's nowcast of the inflation not yet published and the Atlanta Fed's of this quarter's growth, the Treasury curve and the VIX futures curve.
market_sentimentHow cautious or eager investors are, from the sources: Cboe's put/call ratios against their recent average, the VIX futures curve, margin debt against its record, credit spreads and financial stress against their own history, how many S&P 500 members take part in its moves, and what households expect for stocks and jobs.
country_economyOne country's economy from its own statistics office and central bank: inflation, unemployment, growth, the policy rate and its moves, the 10-year yield, the currency, industrial production, retail sales, wages, house prices and the OECD's leading indicator, each beside the figure a year earlier, with inflation and the policy rate checked against a second official publisher.
compare_economiesOne measure across up to 30 countries or a group (G7, G20, EU, euro area members, BRICS, Nordics, ASEAN, Latin America), each country from its own statistics office or central bank, every figure checked against a second official publisher.
global_ratesThe Fed's, the ECB's, the Bank of England's and the Bank of Japan's policy rates, the overnight rates banks pay beside them (SOFR, the euro short-term rate, SONIA) and the US Treasury curve, each from the central bank or the BIS itself.
european_companyA European listed company's latest annual financial report as it filed it in the European Single Electronic Format: revenue, operating and net profit, EPS, assets, equity, cash flows and dividends beside the prior years, in its own currency, linked to the report.
defi_snapshotThe supply of the two largest stablecoins and its change, the value locked on Ethereum and Solana, and a DeFi protocol's value locked, fees and revenue, from DefiLlama's open data.
ownershipA company's 5% holders and activists (13D/13G), its insiders' buying and selling (Form 4), and its short interest, each from the filing or FINRA report itself.
financial_historyA company's income statement, balance sheet and cash flows for four years exactly as it filed them, with what a later filing restated or a split changed shown beside the first-reported figures.
fact_checkCheck every reported figure in a draft about a company against its filings: confirmed, contradicted (with the filed figure and what the wrong one matches), or not reported, before the draft is used.
filing_changesWhat a company changed in its latest annual report against the one before: new, dropped and rewritten risk factors and MD&A paragraphs, and the words whose use rose most.
why_it_movedA day's move against the market, how unusual it was from a one-year market model, and the filings and news around it.
portfolio_xrayWhat a portfolio of stocks and funds really holds: the look-through positions across every fund, the overlap between the funds, and the largest exposures.
portfolio_rulesWhere a list of holdings stands against the US lines that bring a filing or cap concentration: more than 5% or 10% of a company's shares (Schedule 13D or 13G, Section 16), the $100 million Form 13F line, concentration, the diversified-fund and RIC tests, and days to exit. A check, not compliance advice.
peers_and_red_flagsA company against its industry peers, its debt and borrowing, how many institutions hold it quarter by quarter, and three accounting screens (Beneish, Piotroski, Altman) with every input named.
human_checkTurn a draft about a company into a blind labelling packet: every figure as an item people check against the filings, with guidelines and an answer key, so the agreement between them can be measured.
valuation_checkThe growth in free cash flow that today's share price implies (a reverse DCF from the filings), set beside the company's own past growth and its peers' valuations.
language_driftHow much a company rewrote its 10-K year by year (similarity of each section to the year before, from the Lazy Prices study), which sections changed most, and how often a theme of your choosing comes up.
biotech_catalystsA drug company's clinical trials with primary completions due (the readouts to come), its pipeline by phase, and its FDA approvals, from ClinicalTrials.gov and openFDA.
government_exposureHow much a company earns from US federal contracts (by agency and its largest awards) and what the SEC's staff has asked it about in comment letters.
bank_healthA bank's quarterly call-report figures from the FDIC: deposits and how many are uninsured, capital ratios, loan quality, unrealized securities losses and profitability, quarter by quarter.
insider_watchInsiders' planned sales (Form 144 notices, often filed before the sale) beside the trades they reported afterwards (Form 4).
ipo_watchCompanies that filed to go public in the last weeks (S-1 and F-1 and their amendments), separated from SPACs, funds and follow-ons, and the deals that priced with their price and size.
research_reportA full research note on a company, the way an analyst starts coverage: the business and its segments, three years of statements as filed, peers, the growth its price implies, debt, dividends and buybacks, accounting red flags, what changed in its risk factors, ownership, insiders, its latest results against guidance, and the news, every figure from the filings and exchanges themselves.
market_todayHow the market is doing: US indices and the VIX, the sectors ranked by the month, how many S&P 500 members take part, Treasury yields, the dollar, oil, gold, bitcoin and markets abroad over a day to a year, beside the week's key economic releases, the Fed's latest decision and what prediction markets price for its next.
stock_chartAn interactive chart of a stock over two years (candlesticks, moving averages, Bollinger bands, RSI and MACD, zoom and pan) and its option chain, with where the price sits against its averages, its RSI and the move options price in.
strategy_labA moving-average crossover backtested on a ticker since 2010 as an interactive dashboard: figures against buy-and-hold, growth of 1, drawdown and trades, with sliders that rerun it and a check of every setting tried for luck.
compare_stocksSeveral stocks, funds or indices side by side: growth of 1 over any range, each one's return, volatility, Sharpe, worst drawdown and beta, and how their daily returns move together (a correlation heatmap and the number of independent bets).
yield_curveThe US Treasury yield curve today against a month, a year and five years ago, played through five years of history, with the 10-year minus 2-year and 10-year minus 3-month spreads and how often the curve was inverted.
volatility_surfaceA stock's or index's implied volatility by strike and expiration: the smile of each expiration, the term structure at the money and at 25 delta, the skew, and the whole surface as a heatmap (Cboe delayed data).
statement_chartsA company's income statement, balance sheet and cash flows as filed, charted: any line over the years, margins (each line as a share of revenue), the balance sheet as a share of total assets, and year-on-year growth.
dividend_checkWhether a company's dividend looks safe and growing: years of dividends and buybacks against earnings and free cash flow, the split-adjusted record, the yields, its debt and what falls due, and its accounting screens.
backtest_checkAudit a strategy's daily returns for overfitting: deflated Sharpe for the number of variants tried, the minimum track record, and what to run next (leakage and placebo checks).
quant.analyze_strategyFull statistical read of a return series: quality checks, performance, risk, significance after multiple testing.
quant.audit_backtestRe-run a strategy across its parameter grid and deflate the best result for the number of variants.
quant.value_companyIntrinsic value from cash flows, the market's implied growth, multiples and red-flag scores.
quant.price_optionCheck quotes, back out implied volatility, price and Greeks, and a scenario grid.
quant.test_mean_reversionStationarity, cointegration, half-life and a costed backtest of a pair or spread.
quant.build_portfolioClean estimates, several allocations side by side, and their risk.
quant.analyze_trade_logEdge, payoff, sizing and risk of ruin from a list of trade P&Ls.
quant.sleeve_tournamentRun the whole sleeve library on your prices and keep only what survives multiple-testing correction.
quant.build_sleeve_bookPick distinct surviving sleeves, combine them, and get paper-ready target weights.
quant.label_datasetAnnotate the data, sample events, label them, weight overlapping labels and build leak-free CV splits.
quant.check_datasetRun the data checks that fit the data and list every problem before any model sees it.
validation.validate_backtestWalk through the deflated Sharpe, overfitting and track-record checks for one strategy, and report what the numbers do not establish.
validation.track_record_neededThe minimum track record length for a Sharpe to clear a benchmark, with the record's own probabilistic Sharpe if its length is known.
validation.backtest_and_validateRun a strategy family over a parameter grid on your prices, then read the deflated Sharpe and overfitting probability that count every variant run.
validation.stress_my_strategyResampled histories and named crash, volatility, repeat and outage scenarios for a strategy's returns.
validation.production_checkOrder-rate and minimum-order limits, 2026 day-trading rules, market impact, crowding and capacity for a trading plan.
validation.summarize_market_seriesSummarize a price or return file instead of reading its rows.
validation.check_signal_for_lookaheadRerun your own signal code on prefixes the server picks, and find any value that depends on later rows.
validation.test_pipeline_on_placebosRun your whole research pipeline on placebo data, where nothing can be predicted, and see whether its real result beats what it finds there.
fundamentals.known_on_dateA point-in-time snapshot for a backtest or a decision: each measure as it stood on the date, the filing behind it, ratios, and which values were later restated.
fundamentals.restatement_reviewEvery period whose value changed after its first report, why it changed, and the filings behind the biggest changes.
fundamentals.peers_as_ofOne measure across several companies, each as filed by the date, with fiscal period ends lined up and later restatements flagged.
research.preflight_ideaBefore testing an idea: whether Canli Capital already tested it, how it was killed or survived, and what the literature says.
research.audit_canli_recordHypotheses tried against the declared budget, the live paper record with its limits, and how to check the record was not rewritten.
research.literature_reviewEvery Canli Capital paper on a topic, summarized with links.

Resources

Contextual data attached and managed by the client

NameDescription
fedWhat fed funds futures price for the Fed's next four meetings, its repo facilities, holdings, reserves and net liquidity, the money markets around them (repo by segment against its rates, money funds, dealers), the nowcasts of this quarter's growth and of the inflation not yet published, and the Board's latest speeches and releases, each from its source.
catalogEvery tool: name, pack and title.
packsEach pack: its source package and version, tool count, network and disk use, and renamed or omitted tools.
privacyWhat each enabled pack sends off this machine and keeps on disk.
viewDraws run_tool results as tables, charts, statements, guidance ranges and verdicts in hosts that support MCP Apps.
quant.catalogEvery tool: name, toolset and one-line description.
quant.methodsWhat each toolset's results are checked against in the test suite.
quant.privacyWhat the server does with your data, and the tests that hold it to that.
quant.sleevesAll 399 strategy sleeves: id, family, data shape, rule and spec hash.
validation.limitsThe boundary sentences every validation result carries.
validation.sourcesThe papers behind each validator and how each is checked against them.
validation.strategy-specJSON Schema of backtest_strategy's families, parameters and rules.
validation.openapiGenerated from the endpoints that exist; fetched from canlicapital.com when read.
fundamentals.conceptsEvery plain name the tools accept (revenue, eps_diluted, ...), the US GAAP and IFRS tags it follows in order, and the ten known_as_of reads by default.
fundamentals.limitsThe limits every fundamentals result carries; quote them with any finding.
research.limitsThe limits every research result carries; quote them with any finding.

TDQS

A4.4/5.0

Scored across 5 tools

Disambiguation4/5

The three meta-tools find_tool, describe_tool, and run_tool form a clear search-inspect-execute pipeline with distinct roles. financial_statements and history both retrieve financial data, but their descriptions explicitly separate whole-statement retrieval from single-measure time series, leaving only minor overlap with each other and with generic run_tool execution.

Naming Consistency4/5

find_tool, describe_tool, and run_tool follow a consistent verb_noun snake_case pattern. financial_statements and history are noun-style names, which is a minor deviation but still readable and predictable in context.

Tool Count5/5

Five tools is well-scoped for a gateway to hundreds of finance tools: search, describe, execute, plus two focused convenience tools for statements and history. Each tool earns its place without bloating the surface.

Completeness4/5

The set covers discovery, schema inspection, execution, batching, file/result piping, and dedicated statement/history retrieval, so core workflows are supported. Minor gaps might include explicit pack listing or richer pagination metadata, but agents can work around these via find_tool and run_tool.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues