Sequence/docs

Resources & Prompts

Beyond callable tools, the Sequence MCP server provides Resources (ambient context data) and Prompts (pre-built analytical workflows) that enhance AI conversations with trading context.


Resources

MCP Resources are data endpoints that clients can read to populate conversation context. Unlike tools that must be explicitly invoked, resources provide background information the AI can reference at any time.

Static Resources

These resources return pre-computed summaries that update on the server side:

Resource URIDescription
sequence://market-overviewCross-venue market snapshot: NBBO for all pairs, spread stats, top movers, total liquidity
sequence://portfolioCurrent positions, unrealized P&L, total portfolio value, concentration metrics
sequence://data-qualityCoinGecko reconciliation status, stale venue count, drift per symbol
sequence://system-statusVenue connection health, system version, uptime, connected edge count

These are ideal for Claude Desktop, where the AI reads resources at conversation start to establish context without requiring explicit tool calls.

Dynamic Resource Templates

Parameterized resources that accept a symbol:

Template URIDescription
sequence://ticker/{symbol}Detailed ticker for a specific pair: mid price, 24h change, high/low, spread (current + EWMA), bid/ask depth in USD, realized volatility, cross-venue dispersion
sequence://trades/{symbol}Recent trade feed for a symbol: last 100 trades with price, size, side, venue, and timestamp
sequence://orderbook/{symbol}L2 order book snapshot: top levels of bids and asks with size at each level

To use a template, the AI resolves it with a specific symbol. For example, sequence://ticker/BTC-USD returns the full BTC-USD ticker from the DataEngine.

Note

Resources are read-only and do not count toward MCP tool call limits. They provide context without consuming your monthly quota.


Prompts

MCP Prompts are pre-defined analytical workflows that structure the AI's approach to common tasks. When invoked, a prompt injects a system message with specific instructions and required tool calls, guiding the AI through a multi-step analysis.

analyze_market

Arguments: symbol (required)

Performs comprehensive market analysis for a trading pair:

  1. Fetches current NBBO and spread across all venues
  2. Retrieves L2 order book depth and liquidity profile
  3. Pulls recent trades for short-term flow analysis
  4. Gets DataEngine ticker stats (volatility, depth, dispersion)
  5. Checks for arbitrage opportunities
  6. Synthesizes findings into a structured market report

Example invocation:

Use the analyze_market prompt for ETH-USDT

The AI returns a report covering current pricing, liquidity depth, spread quality, recent flow direction, volatility regime, and any cross-venue opportunities.


pre_trade_check

Arguments: symbol (required), side (required), size (required)

Evaluates conditions before placing a trade:

  1. Checks current NBBO and spread
  2. Estimates market impact for the requested size using order book depth
  3. Reviews venue-level liquidity to predict likely SOR routing
  4. Fetches fee schedules for cost estimation
  5. Verifies sufficient balance across relevant venues
  6. Provides a go/no-go recommendation with expected costs

Example invocation:

Run a pre-trade check for buying 2 BTC-USD

The AI assesses whether the trade is viable, which venues will likely fill it, estimated slippage, and total expected cost including fees.


execution_review

Arguments: parent_id (required)

Reviews a completed order's execution quality:

  1. Retrieves full order details including child orders and fills
  2. Pulls TCA breakdown (VWAP, implementation shortfall, slippage)
  3. Analyzes venue routing decisions
  4. Compares achieved price vs. NBBO at submission time
  5. Evaluates execution time against benchmarks
  6. Grades overall execution quality

Example invocation:

Review the execution of order P-a1b2c3d4-e5f6-7890-abcd-ef1234567890

The AI returns a detailed post-trade analysis with fill quality assessment and suggestions for improving future execution.


recon_report

Arguments: none

Generates a data quality reconciliation report:

  1. Fetches the CoinGecko reconciliation data
  2. Identifies symbols with price drift
  3. Checks venue connectivity for stale feeds
  4. Reviews cross-venue dispersion metrics
  5. Flags any data integrity concerns
  6. Summarizes overall data quality health

Example invocation:

Run the recon report

The AI produces a data quality dashboard showing which symbols are in sync, which have drift, and whether any venue feeds are stale or disconnected.


How Resources and Prompts Work Together

In a typical Claude conversation:

  1. Resources provide ambient context -- the AI knows your portfolio state and market overview without being asked
  2. Prompts structure complex workflows -- instead of asking multiple ad-hoc questions, invoke a prompt for a thorough analysis
  3. Tools fill in specific details on demand -- the AI calls individual tools as needed during conversation
Tip

Combine prompts with follow-up questions. After running analyze_market for BTC-USD, ask "Now run a pre-trade check for buying 0.5 BTC" -- the AI carries forward the market context from the first analysis.