Skip to main content
Glama

execute_code

Execute Python code to analyze data, perform calculations, and create visualizations using pandas, numpy, and matplotlib within the VayuChat MCP environment.

Instructions

Execute Python code for data analysis.

The code has access to:

  • All loaded dataframes by their names (e.g., 'air_quality', 'sales_data')

  • pandas as 'pd'

  • numpy as 'np'

  • matplotlib.pyplot as 'plt'

For visualizations, use plt.savefig() or the code will automatically capture any open figures as base64 PNG images.

Args: code: Python code to execute

Returns: Output from the code execution, including any print statements and base64-encoded images for any generated plots.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes

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/nipunbatra/vayuchat-mcp'

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