Available Tools

Reference of tools available to the nctl ai agent.

The following tools are available to nctl ai. The agent selects the appropriate tool based on your request.

Tools by category

CategoryToolDescription
Command executionbashExecute a bash command. Use when you need to run a shell command.
Command executionkubectlCommand-line tool for interacting with Kubernetes clusters.
Policygenerate_policyGenerate a Kyverno policy.
Policygenerate_kyverno_testsGenerate Kyverno CLI tests for a policy. Returns filenames and contents for kyverno-test.yaml, resources.yaml, and optionally variables.yaml.
Policygenerate_chainsaw_testsGenerate or update Chainsaw tests for Kyverno policies.
Policyrun_kyverno_testsTest Kyverno policies using the Kyverno CLI test command.
SecurityremediateFix policy violations for a resource.
Securityscan_kubernetes_resourcesScan Kubernetes resource files against policies and return results.
Securityscan_kubernetes_clusterScan Kubernetes resources in a cluster against policies and return results.
Securityscan_terraformScan Terraform resources against policies and return results.
Securityscan_promptScan LLM prompts against security policies for injection attacks, jailbreak patterns, PII leakage, credential exposure, and other risks. Accepts inline content, file paths, or directories. Returns policy evaluation results with a risk score.
Securityskills_scanScan a skill (folder or artifact) against policies and return a signed/hashed receipt with decision and findings. Normalizes the skill directory, applies Kyverno ValidatingPolicies, computes a trust score and decision (Allow/Review/Deny), and produces a receipt for later verification.
CommunicationemailSend an email via Nirmata Control Hub (NCH).
Communicationlist_slack_channelsList all Slack channels the user has access to.
Communicationsend_slack_messageSend a message to a Slack channel via NCH.
File systemread_fileRead the complete contents of a file.
File systemread_multiple_filesRead the contents of multiple files in a single operation.
File systemwrite_fileCreate a new file or overwrite an existing file with new content.
File systemmodify_fileUpdate a file by finding and replacing text. Pattern matching without needing exact character positions.
File systemcopy_fileCopy files and directories.
File systemmove_fileMove or rename files and directories.
File systemdelete_fileDelete a file or directory from the file system.
File systemcreate_directoryCreate a new directory or ensure a directory exists.
File systemlist_directoryGet a detailed listing of all files and directories in a specified path.
File systemtreeReturn a hierarchical JSON representation of a directory structure.
File systemget_file_infoRetrieve detailed metadata about a file or directory.
File systemsearch_filesRecursively search for files and directories matching a pattern.
File systemsearch_within_filesSearch for text within file contents. Scans text files for matching substrings; binary files are excluded. Reports file paths and line numbers.
File systemlist_allowed_directoriesReturn the list of directories the server is allowed to access.
File systemadd_allowed_directoryAdd a directory to the allowed list for filesystem operations. Use when you get errors about directories being outside allowed directories.
UtilitytodoManage a todo list (add, remove, update, list items). Automatically prevents duplicate items.
UtilityworkerManage background workers for concurrent task processing.

Slack integration

Slack tools (list_slack_channels, send_slack_message) require Slack integration configured in Nirmata Control Hub. No additional environment variables are needed once configured in NCH.

Extending with MCP

You can add more tools by connecting MCP servers. See the main nctl ai page for configuration.