get_columns_info
Retrieve column names from uploaded CSV files to understand dataset structure for linear regression analysis.
Instructions
This function gives information about columns.
Returns: String which contains column names.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_columns_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.py:69-81 (handler)The main handler function for the 'get_columns_info' tool. It is decorated with @mcp.tool() for registration in the FastMCP server and retrieves the column names from the shared DataContext, joining them into a comma-separated string.
@mcp.tool() def get_columns_info() -> str: """ This function gives information about columns. Returns: String which contains column names. """ columns = context.get_data().columns return ", ".join(columns)