Skip to main content
Glama
live_commands.py855 B
from api_connection import post from models import ( CreateLiveCommandRequest, BroadcastLiveCommandRequest, RestResponse ) def register_live_trading_command_tools(mcp): # Create (singular algorithm) @mcp.tool(annotations={'title': 'Create live command'}) async def create_live_command( model: CreateLiveCommandRequest) -> RestResponse: """Send a command to a live trading algorithm.""" return await post('/live/commands/create', model) # Create (multiple algorithms) - Broadcast @mcp.tool(annotations={'title': 'Broadcast live command'}) async def broadcast_live_command( model: BroadcastLiveCommandRequest) -> RestResponse: """Broadcast a live command to all live algorithms in an organization.""" return await post('/live/commands/broadcast', model)

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/i-dream-of-ai/quantconnect-mcp-jwt'

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