install_package
Install Python packages with pip, specifying versions or upgrades, and handle confirmation prompts when required for security.
Instructions
Install a Python package with pip.
Requires explicit confirmation when security.require_confirmation
is enabled in config.
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": {
"package": "<package>"
},
"name": "install_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to True to confirm this operation when required. | |
| package | Yes | The package name (e.g. "requests", "fastmcp>=2.0"). | |
| upgrade | No | If True, upgrade the package if already installed. | |
| version | No | Optional version specifier (e.g. "==2.31.0", ">=1.0"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||