Skip to main content
Glama

validate_strategy

Check Python strategy code for valid syntax, required hooks, and forbidden patterns before running it, without executing the code.

Instructions

Static-analysis check on a Python FLOX strategy: AST parses, expected hooks present (on_trade / on_bar), no forbidden patterns (eval, exec, import tricks). Use this before running user-authored strategy code. Does NOT execute the code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesPython source for the strategy module/class.

Latest Blog Posts

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/FLOX-Foundation/flox'

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