check_import
Check if a package is installed before importing; if not, suggests correct package names to prevent slopsquatting and typos.
Instructions
Check whether a package is installed; if not, suggest close real names.
Use this before writing an import to avoid hallucinated or typo'd package names (a common source of slopsquatting risk).
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": "check_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | ||
| language | No | python |