analyze_npx_command
Analyze and validate npx commands before execution to prevent security risks. Check package details, arguments, and timeout settings to ensure safe usage.
Instructions
Analyze and validate an npx command before execution (security check)
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": {
"command": "<command>"
},
"name": "analyze_npx_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Command arguments (optional) | |
| command | Yes | Package to analyze (e.g., "create-react-app" or "typescript@5.0.0") | |
| timeout | No | Timeout in milliseconds (default: 30000) |