execute_code
Execute Python code to analyze air quality, funding, and city data using pandas, numpy, and matplotlib for custom calculations and visualizations.
Instructions
Execute custom Python code for advanced analysis.
Available variables:
air_quality, funding, city_info: DataFrames
pd, np, plt: Libraries
Args: code: Python code to execute
Returns: Output from code execution.
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": "execute_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |