Skip to main content
Glama

show_security_rules

Display allowed commands and operations to verify security policies in your CLI environment.

Instructions

Show what commands and operations are allowed in this environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for the 'show_security_rules' tool that constructs and returns a text summary of the current security configuration, including allowed commands, flags, working directory, and limits.
    elif name == "show_security_rules": commands_desc = ( "All commands allowed" if executor.security_config.allow_all_commands else ", ".join(sorted(executor.security_config.allowed_commands)) ) flags_desc = ( "All flags allowed" if executor.security_config.allow_all_flags else ", ".join(sorted(executor.security_config.allowed_flags)) ) security_info = ( "Security Configuration:\n" f"==================\n" f"Working Directory: {executor.allowed_dir}\n" f"\nAllowed Commands:\n" f"----------------\n" f"{commands_desc}\n" f"\nAllowed Flags:\n" f"-------------\n" f"{flags_desc}\n" f"\nSecurity Limits:\n" f"---------------\n" f"Max Command Length: {executor.security_config.max_command_length} characters\n" f"Command Timeout: {executor.security_config.command_timeout} seconds\n" ) return [types.TextContent(type="text", text=security_info)]
  • Registration of the 'show_security_rules' tool in the list_tools handler, defining its name, description, and empty input schema.
    types.Tool( name="show_security_rules", description=( "Show what commands and operations are allowed in this environment.\n" ), inputSchema={ "type": "object", "properties": {}, }, ),
  • Input schema for the 'show_security_rules' tool, which is an empty object (no parameters required).
    "type": "object", "properties": {}, },
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MladenSU/cli-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server