run
Execute Pylpex code to evaluate custom programming language expressions and functions, returning computed results.
Instructions
Execute Pylpex code and return the result.
Pylpex is a custom programming language. Before executing code:
Check pylpex://documentation for syntax reference
Review pylpex://examples for working patterns
Ensure code follows Pylpex syntax conventions
Args: code: Valid Pylpex source code to execute
Returns: The evaluated result of the code execution
Example usage: run("2 + 2") # Returns: 4 run("function double(x) { return x * 2 } double(5)") # Returns: 10
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| result | No | ||
| success | No | ||
| code_executed | No | ||
| code_attempted | No |