stata_do
Execute a Stata do-file and return its execution log. Run Stata commands, regression, or statistical analysis via the configured executable, with optional error-log capture.
Instructions
Execute a Stata do-file and return the execution log. Accepts a do-file path, runs it via the configured Stata executable, and can optionally read log content only when return-code errors are detected. Use when you need to run Stata commands, perform regression or statistical analysis, or execute a do-file.
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": {
"dofile_path": "<dofile_path>"
},
"name": "stata_do"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| dofile_path | Yes | ||
| enable_smcl | No | ||
| log_file_name | No | ||
| is_replace_log | No | ||
| read_log_when_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |