register_cli_tool
Dynamically register any CLI tool available in PATH as an MCP tool so it can be invoked by agents, with optional alias, custom description, system prompt, and persistent saving.
Instructions
Dynamically register a CLI tool as an MCP tool. The tool must be available in PATH.
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": "register_cli_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | Optional alias for the tool (defaults to 'ask-{command}') | |
| command | Yes | The CLI command to register (e.g., 'ollama', 'git') | |
| persist | No | Whether to save to ai-tools.json (default: false) | |
| description | No | Custom description for the tool | |
| systemPrompt | No | System prompt for AI agent persona configuration |