Skip to main content
Glama

get_folders

Retrieve available folders from a specified space to organize and manage workspace content within the Dart MCP Server environment.

Instructions

Get available folders

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
space_duidYesSpace DUID to get folders from

Implementation Reference

  • src/index.ts:347-358 (registration)
    Registration of the get_folders tool in the ListTools response, including name, description, and input schema requiring space_duid
    name: 'get_folders',
    description: 'Get available folders',
    inputSchema: {
        type: 'object',
        properties: {
            space_duid: {
                type: 'string',
                description: 'Space DUID to get folders from',
            }
        },
        required: ['space_duid'],
    },
  • Input schema for get_folders tool
    inputSchema: {
        type: 'object',
        properties: {
            space_duid: {
                type: 'string',
                description: 'Space DUID to get folders from',
            }
        },
        required: ['space_duid'],
  • Handler implementation for get_folders tool. It generates Python code that imports and calls get_folders from the dart library with the provided space_duid, lists the folders, and returns the output via stdio.
                    case 'get_folders': {
                        console.error('[Debug] Handling get_folders request');
                        const pythonCode = `    # Get folders for the space
    print("[Debug] Getting folders", file=sys.stderr)
    try:
        # Get folders using the get_folders function from dart module
        space_duid = "${args.space_duid}"
        print(f"[Debug] Getting folders for space: {space_duid}", file=sys.stderr)
        from dart import get_folders
        folders = get_folders(space_duid, include_special=True)  # Include all folders
        print("[Debug] Got folders:", folders, file=sys.stderr)
        
        # Print folder titles or indicate no folders found
        if not folders:
            print("No folders found in this space")
        else:
            print("Available folders:")
            for folder in folders:
                print(f"- {folder.title} (DUID: {folder.duid}, Kind: {folder.kind})")
    except Exception as e:
        print(f"[Debug] Error getting folders: {str(e)}", file=sys.stderr)
        traceback.print_exc(file=sys.stderr)
        sys.exit(1)`;
    
                        // Add proper indentation to the Python code
                        const command = pythonCode.split('\n').map(line => line.length > 0 ? '    ' + line : line).join('\n');
    
                        console.error('[Debug] Running Python command for getting folders');
                        const output = await this.runDartCommand(command);
                        console.error('[Debug] Get folders output:', output);
                        const response = {
                            content: [{
                                type: 'text',
                                text: output,
                            }],
                        };
                        return response;
                    }
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. 'Get available folders' implies a read operation, but it doesn't specify permissions needed, whether it returns all folders or a subset, pagination behavior, or error conditions. The description lacks critical behavioral context for a tool with no annotation support.

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

Conciseness4/5

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

The description is extremely concise at three words, which is appropriately sized for a simple retrieval tool. It's front-loaded with the core action, though it could benefit from slightly more detail to improve clarity without sacrificing efficiency.

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 no annotations and no output schema, the description is incomplete for a tool that likely returns folder data. It doesn't explain what 'available' means, what data is returned, or how results are structured. For a retrieval tool with zero structured support, the description should provide more context about behavior and outputs.

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?

Schema description coverage is 100%, with the single parameter 'space_duid' documented in the schema as 'Space DUID to get folders from'. The description adds no additional parameter semantics beyond what the schema provides, so it meets the baseline of 3 for adequate but minimal value.

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

Purpose3/5

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

The description 'Get available folders' states a clear verb ('Get') and resource ('folders'), but it's vague about scope and doesn't distinguish from potential siblings. It doesn't specify whether this retrieves all folders, user-accessible folders, or folders with specific characteristics, leaving the purpose somewhat ambiguous.

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. With siblings like 'create_folder' and 'get_dartboards', there's no indication of whether this is for listing folders versus creating them, or how it relates to other retrieval tools. No context about prerequisites or exclusions is mentioned.

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/jmanhype/dart-mcp-server'

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