Skip to main content
Glama

fast_list_allowed_directories

List all directories the filesystem server is permitted to access. Use this tool to verify allowed paths and understand the scope of file operations.

Instructions

Lists the allowed directories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • api/server.ts:97-106 (registration)
    Tool registration in MCP_TOOLS array listing the tool name and inputSchema.
    const MCP_TOOLS = [
      {
        name: 'fast_list_allowed_directories',
        description: '허용된 디렉토리 목록을 조회합니다',
        inputSchema: { 
          type: 'object', 
          properties: {}, 
          required: [] 
        }
      },
  • Handler function handleListAllowedDirectories that returns allowed directories, CWD, exclude patterns, Claude limits, and server info.
    async function handleListAllowedDirectories() {
      return {
        allowed_directories: DEFAULT_ALLOWED_DIRECTORIES,
        current_working_directory: process.cwd(),
        exclude_patterns: DEFAULT_EXCLUDE_PATTERNS,
        claude_limits: {
          max_response_size_mb: CLAUDE_MAX_RESPONSE_SIZE / (1024**2),
          max_chunk_size_mb: CLAUDE_MAX_CHUNK_SIZE / (1024**2),
          max_lines_per_read: CLAUDE_MAX_LINES,
          max_dir_items: CLAUDE_MAX_DIR_ITEMS
        },
        server_info: {
          name: 'fast-filesystem',
          version: '2.1.0',
          total_tools: MCP_TOOLS.length,
          timestamp: new Date().toISOString()
        }
      };
    }
  • Default allowed directories constant used by the handler.
    // 기본 허용 디렉토리들
    const DEFAULT_ALLOWED_DIRECTORIES = [
      process.env.HOME || '/home',
      '/tmp',
      '/Users', 
      '/home'
    ];
  • Exported DEFAULT_ALLOWED_DIRECTORIES from utils.ts with cross-platform support and deduplication.
    export const DEFAULT_ALLOWED_DIRECTORIES = (() => {
      const list: string[] = [];
      const home = process.env.HOME || process.env.USERPROFILE || '/home';
      list.push(home);
      list.push('/tmp');
      if (process.platform === 'win32') {
        // Broad user root for Windows
        list.push('C:/Users');
      } else {
        list.push('/Users', '/home');
      }
      // Dedupe and normalize
      return Array.from(new Set(list.map(p => path.resolve(p))));
    })();
  • Input schema: empty object with no required parameters.
    inputSchema: { 
      type: 'object', 
      properties: {}, 
      required: [] 
    }
Behavior2/5

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

No annotations are provided, and the description only says 'lists,' implying a read-only operation. However, it does not explicitly state whether it is safe (e.g., no side effects), what permissions are needed, or how the list is returned. For a tool with no annotations, the description should disclose behavioral traits beyond the minimal verb.

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 sentence with no fluff. It is front-loaded and efficiently communicates the core purpose. Every word earns its place, making it appropriately concise for a simple tool.

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

Completeness3/5

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

Given the tool's low complexity (no parameters, no output schema), the description provides a minimum viable level of information. However, it omits details such as what 'allowed' means, the format of the returned list, and whether it is user-specific. These gaps reduce completeness for an agent seeking to invoke the tool correctly.

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 input schema has no parameters, and the description does not add any parameter-level semantics. Since schema coverage is 100% (trivially), the baseline score is 3, and there is no room for the description to add value beyond what the schema already provides.

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 'Lists the allowed directories' is clear about what the tool does: it returns a list of directories that are allowed. The verb 'lists' and resource 'allowed directories' are specific and distinct from sibling tools like fast_list_directory, which likely lists files. However, it does not explain what 'allowed' means, leaving some ambiguity.

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 such as fast_list_directory or fast_get_directory_tree. There is no mention of context, prerequisites, or exclusions, leaving the agent to infer usage from the name alone.

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/efforthye/fast-filesystem-mcp'

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