StockBud.io MCP Server Schema
Schema for Model Context Protocol server structures and communication in StockBud.io
🔌 StockBud.io MCP Server Schema
Version: 1.0.0
Schema for Model Context Protocol server structures and communication in StockBud.io
Overview
This schema defines 14 data structures:
MCPTool- MCP tool definition...MCPResource- MCP resource definition...MCPRequest- MCP request structure...MCPResponse- MCP response structure...PortfolioAnalysisRequest- Request for portfolio analysis...PortfolioAnalysisResponse- Response from portfolio analysis...MarketDataRequest- Request for market data...MarketDataResponse- Response containing market data...TradingRequest- Request for trading operations...TradingResponse- Response from trading operations...AIAnalysisRequest- Request for AI-powered analysis...AIAnalysisResponse- Response from AI analysis...ServerCapabilities- MCP server capabilities...ServerInfo- MCP server information...
Definitions
MCPTool
MCP tool definition
Properties
| Property | Type | Required | Description |
|---|---|---|---|
name | string | ✓ | Tool name identifier |
description | string | ✓ | Tool description |
inputSchema | object | ✓ | JSON schema for tool input validation |
outputSchema | object | JSON schema for tool output validation |
TypeScript
MCPResource
MCP resource definition
Properties
| Property | Type | Required | Description |
|---|---|---|---|
uri | string | ✓ | Resource URI |
name | string | ✓ | Resource name |
description | string | Resource description | |
mimeType | string | ✓ | Resource MIME type |
TypeScript
MCPRequest
MCP request structure
Properties
| Property | Type | Required | Description |
|---|---|---|---|
jsonrpc | string | ✓ | JSON-RPC version |
id | `string | number | null` |
method | string | ✓ | Method name |
params | object | Method parameters |
TypeScript
MCPResponse
MCP response structure
Properties
| Property | Type | Required | Description |
|---|---|---|---|
jsonrpc | string | ✓ | JSON-RPC version |
id | `string | number | null` |
result | object | Method result (success) | |
error | object | Error information (failure) |
TypeScript
PortfolioAnalysisRequest
Request for portfolio analysis
Properties
| Property | Type | Required | Description |
|---|---|---|---|
portfolio_data | object | ✓ | Portfolio data to analyze |
analysis_type | enum: 'risk_assessment', 'performance_attribution', 'diversification_analysis', 'sector_allocation', 'correlation_analysis', 'stress_testing', 'optimization_suggestions' | Type of analysis to perform | |
benchmark | string | Benchmark symbol for comparison | |
time_horizon | enum: '1d', '1w', '1m', '3m', '6m', '1y', 'ytd', 'all' | Analysis time horizon | |
include_options | boolean | Include options analysis | |
risk_free_rate | number | Risk-free rate for calculations |
TypeScript
PortfolioAnalysisResponse
Response from portfolio analysis
Properties
| Property | Type | Required | Description |
|---|---|---|---|
analysis_results | Array<Record<string, unknown>> | ✓ | Analysis results |
performance_metrics | object | Performance metrics | |
risk_metrics | object | Risk assessment metrics | |
insights | Array<string> | Key insights | |
timestamp | string | ✓ | Analysis timestamp |
TypeScript
MarketDataRequest
Request for market data
Properties
| Property | Type | Required | Description |
|---|---|---|---|
symbols | Array<string> | ✓ | List of symbols to retrieve |
data_type | enum: 'quote', 'bars', 'trades', 'news', 'options', 'fundamentals' | Type of market data | |
timeframe | enum: '1min', '5min', '15min', '1hour', '1day' | Data timeframe | |
start_date | string | Start date for historical data | |
end_date | string | End date for historical data | |
limit | integer | Maximum number of records | |
include_extended_hours | boolean | Include extended hours data |
TypeScript
MarketDataResponse
Response containing market data
Properties
| Property | Type | Required | Description |
|---|---|---|---|
data | object | ✓ | Market data by symbol |
metadata | object | Data metadata | |
timestamp | string | ✓ | Data timestamp |
TypeScript
TradingRequest
Request for trading operations
Properties
| Property | Type | Required | Description |
|---|---|---|---|
action | enum: 'place_order', 'cancel_order', 'modify_order', 'get_positions', 'get_orders', 'get_account', 'close_position' | ✓ | Trading action to perform |
order_details | object | Order details (for order actions) | |
order_id | string | Order ID (for cancel/modify actions) | |
symbol | string | Symbol (for position actions) |
TypeScript
TradingResponse
Response from trading operations
Properties
| Property | Type | Required | Description |
|---|---|---|---|
success | boolean | ✓ | Whether operation was successful |
data | object | Response data | |
order_id | string | Order ID (for order operations) | |
message | string | Response message | |
error | string | Error message (if failed) | |
timestamp | string | ✓ | Response timestamp |
TypeScript
AIAnalysisRequest
Request for AI-powered analysis
Properties
| Property | Type | Required | Description |
|---|---|---|---|
analysis_type | enum: 'sentiment_analysis', 'technical_analysis', 'fundamental_analysis', 'news_analysis', 'market_regime_detection', 'anomaly_detection', 'correlation_analysis', 'predictive_modeling' | ✓ | Type of AI analysis |
data | object | Input data for analysis | |
symbols | Array<string> | Symbols to analyze | |
time_horizon | enum: '1d', '1w', '1m', '3m', '6m', '1y' | Analysis time horizon | |
confidence_threshold | number | Minimum confidence threshold | |
model_parameters | object | Model-specific parameters |
TypeScript
AIAnalysisResponse
Response from AI analysis
Properties
| Property | Type | Required | Description |
|---|---|---|---|
analysis_type | string | ✓ | Type of analysis performed |
results | object | ✓ | Analysis results |
confidence | number | Overall confidence in results | |
insights | Array<string> | Key insights from analysis | |
recommendations | Array<string> | Actionable recommendations | |
model_info | object | Model information | |
timestamp | string | ✓ | Analysis timestamp |
TypeScript
ServerCapabilities
MCP server capabilities
Properties
| Property | Type | Required | Description |
|---|---|---|---|
tools | Array<MCPTool> | Available tools | |
resources | Array<MCPResource> | Available resources | |
prompts | Array<Record<string, unknown>> | Available prompts | |
experimental | object | Experimental features |
TypeScript
ServerInfo
MCP server information
Properties
| Property | Type | Required | Description |
|---|---|---|---|
name | string | ✓ | Server name |
version | string | ✓ | Server version |
description | string | Server description | |
author | string | Server author | |
license | string | Server license | |
homepage | string | Server homepage URL | |
capabilities | ServerCapabilities |