Analyse a dataset with Phở
run_analysisRun a real statistical analysis of the user's own data in Phở: Phở profiles the file, proposes an analysis plan for the user to approve, then runs Python/R code in a sandbox and writes a report (with the code, figures and a .docx). Use it when the user has a dataset (CSV/TSV) and a question about it, e.g. "compare HbA1c between the two arms" or "what predicts readmission". Send the data inline as csv (up to ~900 KB) or as dataset_url, a direct link to a data file on an open-data host (Zenodo, Figshare, OSF, Dryad, GitHub raw, Hugging Face). Needs the user signed in to Phở. Free accounts get a few trial analyses; paid plans run on their plan. Returns at once with a run_id: call get_analysis_run until the plan is ready, show the plan, then approve_analysis_plan.
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": {
"question": "<question>"
},
"name": "run_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | The data as CSV or TSV text, with a header row. | |
| language | No | Language of the plan and report. | en |
| question | Yes | What the user wants to learn from the data, in their words. | |
| file_name | No | The file's name, e.g. "trial.csv". | |
| dataset_url | No | Instead of csv: a direct link to a data file on an open-data host. |