iflow-mcp_stata-mcp

v1.11.2
iflow-mcp_stata-mcp Checked 1 day ago Published 1 year ago

Let 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

ParameterTypeDescription
cmd *string

read_file

Reads a file and returns its content as a string

ParameterTypeDescription
file_path *string
encodingstring

get_data_info

Get descriptive statistics for the data file

ParameterTypeDescription
data_path *
kwargs *string
encodingstring
file_extension
vars_list

write_dofile

write the stata-code to dofile

ParameterTypeDescription
content *string
encodingstring

append_dofile

append stata-code to an existing dofile or create a new one

ParameterTypeDescription
content *string
original_dofile_path *string
encodingstring

ssc_install

Install a package from SSC

ParameterTypeDescription
command *string
is_replaceboolean

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

ParameterTypeDescription
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

ParameterTypeDescription
path *string

stata_do

Run a stata-code via Stata

ParameterTypeDescription
dofile_path *string
is_read_logboolean
log_file_namestring