Skip to main content
Glama
fd-paper-trading MCP Server

fd-paper-trading MCP Server

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
JWT_SECRETYesSecret used to sign and verify JWT access tokens.
DATABASE_URLYesDatabase connection URL (PostgreSQL in production, SQLite for tests).
FD_ADMIN_EMAILSNoComma-separated list of admin emails. Registering with one promotes the account to admin, enabling user-group management.
FD_OPEN_DATA_CONCEPTNoConcept code for the fd-open-data provider. Default is nav.unit.
MARKET_DATA_PROVIDERNoSelects the market data provider, e.g. simulated, polygon, or fd-open-data.
FD_OPEN_DATA_ENTITY_TYPENoEntity type for the fd-open-data provider. Default is fund.
FD_OPEN_DATA_MCP_DATABASE_URLNoOverrides the default SQLite location for the fd-open-data ontology database.

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
place_orderB

Place a new paper trading order (MARKET, LIMIT, STOP, or STOP_LIMIT).

cancel_orderB

Cancel a pending or partially-filled order.

list_ordersB

List orders for an account, optionally filtered by status.

list_accountsA

List all accounts for the authenticated user.

get_accountC

Get detailed information about a specific account.

create_accountA

Open a new paper account for the authenticated user.

Use this when the user has no account yet (check with list_accounts first). Accounts start with the deployment's default starting balance when starting_balance is omitted.

list_positionsA

List open positions for an account with quantity, average cost, and P&L.

search_instrumentsB

Search the tradable instrument universe by symbol or company name.

get_barsB

Get historical OHLCV bars for a symbol, oldest-first.

get_instrument_referenceA

Get an instrument's reference detail, including source and relationships.

list_strategy_templatesA

List the built-in strategy templates with their parameter JSON Schemas.

Only the template track. For the weight track's authoring surface (universe, rebalance cadence, source forms) call get_strategy_catalog, which describes all three spec kinds — a template list alone cannot.

Use these to build a template-track strategy spec: {"kind": "template", "template": , "symbol": "AAPL", "params": {...}}.

get_strategy_catalogB

Everything needed to author any of the three strategy spec kinds.

Templates alone cannot describe the weight track: it is a third kind, not a template entry, and it carries a universe, a rebalance cadence and two source forms. Without this a caller has to hardcode the weight shape — and a pack that guessed wrong ended up declaring backtest.executable=false.

create_strategyC

Create a strategy from a spec.

update_strategyA

Update a strategy. Changing the spec bumps its version; name/description edits do not.

list_strategiesA

List all strategies for the authenticated user.

get_strategyC

Get one strategy by id.

run_backtestA

Start a backtest of a strategy over a daily-bar window.

The backtest runs in the background; poll get_strategy_run(run_id) until status is COMPLETED (stats + equity curve) or FAILED (error message).

get_strategy_runB

Get a strategy run's status, stats, and equity curve.

compare_runsA

Compare two runs of the same strategy: are they the same experiment?

Incomparable is a first-class answer, not an error: when the two runs were measured under different rules (cost model, risk overlay, window, …) the result is {"comparable": false, "differences": [...], "stats": null} and is returned as a normal result. Comparing their numbers anyway would be a diff of two quantities that do not mean the same thing.

list_strategy_runsB

List strategy runs (execution history), optionally filtered.

start_strategyA

Start a live paper run of a strategy against a paper account.

The strategy's signals are evaluated on each new daily bar and turned into orders on the account. Poll get_strategy_run for status (STARTING -> RUNNING; ERROR on failure).

stop_strategyA

Stop a live paper run. Cancels the run's resting LIMIT orders but never closes its positions.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 22 tools

Disambiguation4/5

Most tools map to a distinct resource+action (orders vs. accounts vs. positions vs. strategies vs. runs), and the descriptions actively distinguish the trickiest pair: list_strategy_templates vs. get_strategy_catalog. Some residual overlap remains in the run family (run_backtest vs. start_strategy vs. get_strategy_run vs. list_strategy_runs), which an agent can resolve only by reading the lengthy caveats in the descriptions.

Naming Consistency5/5

Every tool follows a snake_case verb_noun pattern (place_order, cancel_order, list_positions, create_strategy, compare_runs, stop_strategy), with only the trivial run_backtest vs. start_strategy asymmetry in how a run is initiated. There are no mixed conventions or vague one-word names.

Tool Count4/5

22 tools sit at the upper end but the surface spans several real sub-domains (accounts, orders, positions, market data, strategy authoring, backtests, live runs), so each tool earns a place. A few list/get pairs could be consolidated, keeping it just short of ideal scoping.

Completeness4/5

Core workflows are covered end-to-end: account creation, order lifecycle, strategy CRUD, backtest and live-run start/stop, and run comparison. Gaps exist—no delete_strategy, no get_order for single-order detail, no account update/close, and no direct position-close operation—but these are workable around via cancel/place and list calls.

Maintenance

ActivityActive
ResponsivenessLimited data