command_exists

Check whether a binary is resolvable on PATH.

Server LocalAnt yuga-hashimoto/localant
Category Read
Risk class Low
Parameters 00 required

What command_exists does on LocalAnt

AI agents call command_exists to retrieve information from LocalAnt without modifying anything — typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

Why command_exists needs a policy

This tool performs a read-only check to determine if a command is available on the system PATH. It retrieves information about the environment without side effects—no code execution, no modifications, no data destruction. The worst-case misuse would be reconnaissance (an attacker mapping available tools), which poses minimal direct harm. Classified as Read with low severity.

From the tool's definition Tool name 'command_exists' and description 'Check whether a binary is resolvable on PATH' indicates a query operation that checks the availability of executables without executing them or modifying system state.

Questions about command_exists

What does the command_exists tool do? +

Check whether a binary is resolvable on PATH. It is categorised as a Read tool in the LocalAnt MCP Server, which means it retrieves data without modifying state.

How do I enforce a policy on command_exists? +

Register the LocalAnt MCP server in PolicyLayer and add a rule for command_exists: 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 LocalAnt. Nothing to install.

What risk level is command_exists? +

command_exists is a Read tool with low risk. Read-only tools are generally safe to allow by default.

Can I rate-limit command_exists? +

Yes. Add a rate_limit block to the command_exists 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.

How do I block command_exists completely? +

Set action: deny in the PolicyLayer policy for command_exists. 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.

What MCP server provides command_exists? +

command_exists is provided by the LocalAnt MCP server (yuga-hashimoto/localant). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER 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 →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.