Format an install command for a registry package
format_install_commandReturns the runnable install or launch command for a given registry type and package identifier, with no network calls.
Instructions
Offline helper: given a package registryType (npm, pypi, oci, nuget, cargo, mcpb) and identifier, return the runnable install/launch command. Does not contact the network.
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": {
"registryType": "<registryType>",
"identifier": "<identifier>"
},
"name": "format_install_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Optional specific version. | |
| identifier | Yes | Package identifier, e.g. '@modelcontextprotocol/server-filesystem'. | |
| runtimeHint | No | Optional runtime hint (e.g. 'pip' to prefer pip over uvx for pypi). | |
| registryType | Yes |