iflow-mcp_stata-mcp
v1.11.2Let LLM help you achieve your regression analysis with Stata
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
help
Get help for a Stata command
| Parameter | Type | Description |
|---|---|---|
cmd * | string |
read_file
Reads a file and returns its content as a string
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
encoding | string |
get_data_info
Get descriptive statistics for the data file
| Parameter | Type | Description |
|---|---|---|
data_path * | ||
kwargs * | string | |
encoding | string | |
file_extension | ||
vars_list |
write_dofile
write the stata-code to dofile
| Parameter | Type | Description |
|---|---|---|
content * | string | |
encoding | string |
append_dofile
append stata-code to an existing dofile or create a new one
| Parameter | Type | Description |
|---|---|---|
content * | string | |
original_dofile_path * | string | |
encoding | string |
ssc_install
Install a package from SSC
| Parameter | Type | Description |
|---|---|---|
command * | string | |
is_replace | boolean |
load_figure
Load figure from device Args: figure_path (str): the figure file path, only support png and jpg format Returns: Image: the figure thumbnail
| Parameter | Type | Description |
|---|---|---|
figure_path * | string |
mk_dir
Safely create a directory using pathvalidate for security validation. Args: path (str): the path you want to create Returns: bool: the state of the new path, if True -> the path exists now; else -> not success Raises: ValueError: if path is invalid or contains unsafe components PermissionError: if insufficient permissions to create directory
| Parameter | Type | Description |
|---|---|---|
path * | string |
stata_do
Run a stata-code via Stata
| Parameter | Type | Description |
|---|---|---|
dofile_path * | string | |
is_read_log | boolean | |
log_file_name | string |