Suggest the best CLI for a task based on agent role. Returns recommended provider with reasoning and fallback chain.
AI agents invoke cli_route to trigger actions in Cli Orchestrator. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
Although cli_route is nominally a routing/suggestion tool, it determines which external execution engine will process the agent's task. Since the sibling tool cli_execute clearly performs command execution, and cli_route directs tasks to execution providers, this tool functionally enables Execute-class operations.
From the tool's definition Routes tasks to external CLI providers (Claude, Gemini, Codex) that will execute code or commands. Tool itself is an orchestrator that determines which provider to use for execution, making it a control point for downstream code/command execution.
Attacks that exploit this kind of access
Suggest the best CLI for a task based on agent role. Returns recommended provider with reasoning and fallback chain. It is categorised as a Execute tool in the Cli Orchestrator MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the Cli Orchestrator MCP server in PolicyLayer and add a rule for cli_route: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Cli Orchestrator. Nothing to install.
cli_route is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the cli_route rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for cli_route. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
cli_route is provided by the Cli Orchestrator MCP server (lleontor705/cli-orchestrator-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →