GetDeployedStrategyState
Returns the live NT8 state for a strategy that MCP has deployed. This is the truth source for is_trading, bars processed, working orders, and any error states.
| Property | Value |
|---|---|
| Required scope | mcp:read |
| Risk | None. Read-only. |
| Side effects | None. |
When an agent should use it
- Immediately after
DeployStrategy. - Periodically during a deployed strategy's lifecycle.
- When the user asks "is it running?"
Parameters
{ "deployment_id": "d-7001" }
Response shape
{
"deployment_id": "d-7001",
"strategy": "MyEmaCross",
"account": "Sim101",
"instrument": "MES 06-26",
"is_trading": true,
"bars_seen": 482,
"open_orders": 1,
"open_position": { "side": "Long", "quantity": 1, "average_price": 5240.25 },
"errors": []
}
Example user prompt
For deployment d-7001, give me a live state report: is_trading, bars seen, open
orders, open position, and any errors. If is_trading is false, tell me why.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
deployment_not_found | Wrong ID or stopped already. | Call ListDeployedStrategies. |