Skip to main content
Glama
cfdude

Super Shell MCP Server

update_security_level

Modify the security classification of approved shell commands to control execution permissions across operating systems.

Instructions

Update the security level of a whitelisted command

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYesThe command to update
securityLevelYesNew security level for the command

Implementation Reference

  • MCP tool handler for 'update_security_level': validates input with Zod schema, maps string security level to CommandSecurityLevel enum, calls CommandService.updateSecurityLevel, and returns success message.
    private async handleUpdateSecurityLevel(args: any) {
      const schema = z.object({
        command: z.string(),
        securityLevel: z.enum(['safe', 'requires_approval', 'forbidden']),
      });
    
      const { command, securityLevel } = schema.parse(args);
    
      // Map string security level to enum
      const securityLevelEnum = securityLevel === 'safe'
        ? CommandSecurityLevel.SAFE
        : securityLevel === 'requires_approval'
          ? CommandSecurityLevel.REQUIRES_APPROVAL
          : CommandSecurityLevel.FORBIDDEN;
    
      this.commandService.updateSecurityLevel(command, securityLevelEnum);
    
      return {
        content: [
          {
            type: 'text',
            text: `Security level for command '${command}' updated to '${securityLevel}'`,
          },
        ],
      };
    }
  • Core helper method in CommandService that updates the security level of a whitelisted command by modifying the entry in the internal whitelist Map.
    public updateSecurityLevel(command: string, securityLevel: CommandSecurityLevel): void {
      const entry = this.whitelist.get(command);
      if (entry) {
        entry.securityLevel = securityLevel;
        this.whitelist.set(command, entry);
      }
    }
  • src/index.ts:201-219 (registration)
    Registration of the 'update_security_level' tool in the MCP server's listTools response, including name, description, and input schema.
    {
      name: 'update_security_level',
      description: 'Update the security level of a whitelisted command',
      inputSchema: {
        type: 'object',
        properties: {
          command: {
            type: 'string',
            description: 'The command to update',
          },
          securityLevel: {
            type: 'string',
            enum: ['safe', 'requires_approval', 'forbidden'],
            description: 'New security level for the command',
          },
        },
        required: ['command', 'securityLevel'],
      },
    },
  • Type definition enum for CommandSecurityLevel used throughout the security system.
    export enum CommandSecurityLevel {
      /** Safe commands that can be executed without approval */
      SAFE = 'safe',
      /** Commands that require approval before execution */
      REQUIRES_APPROVAL = 'requires_approval',
      /** Commands that are explicitly forbidden */
      FORBIDDEN = 'forbidden'
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states this is an update operation but doesn't clarify whether this requires admin permissions, if changes are reversible, what happens to existing security settings, or potential side effects. For a security-related mutation tool, this lack of transparency is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy for an agent to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a security-level update tool with no annotations and no output schema, the description is incomplete. It doesn't address behavioral aspects like permissions, side effects, or return values, nor does it help differentiate from sibling tools. The agent would lack sufficient context to use this tool effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with both parameters clearly documented in the schema. The description doesn't add any meaningful parameter semantics beyond what the schema already provides (e.g., it doesn't explain what 'whitelisted command' means or provide examples). The baseline score of 3 reflects adequate but unenhanced parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Update') and the target resource ('security level of a whitelisted command'), making the purpose immediately understandable. However, it doesn't explicitly differentiate this tool from sibling tools like 'approve_command' or 'deny_command', which might have overlapping functionality in a security context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'add_to_whitelist' or 'remove_from_whitelist'. It doesn't mention prerequisites (e.g., whether the command must already be whitelisted) or contextual constraints, leaving the agent with insufficient usage direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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/cfdude/super-shell-mcp'

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