Skip to main content
Glama

get_default_space

Retrieve the default space DUID to identify the primary workspace for organizing tasks and documents in the Dart MCP server.

Instructions

Get the default space DUID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for the 'get_default_space' tool. It constructs Python code that retrieves the first space from bundle.spaces and prints its DUID, then executes it via runDartCommand and returns the output as text content.
                    case 'get_default_space': {
                        console.error('[Debug] Handling get_default_space request');
                        // Note: Using raw string with proper indentation for the run_command function
                        const pythonCode = `    # Get default space
    print("[Debug] Getting default space", file=sys.stderr)
    try:
        spaces = bundle.spaces
        print("[Debug] Got spaces:", spaces, file=sys.stderr)
        if not spaces:
            print("No spaces found")
            sys.exit(1)
        default_space = spaces[0]
        print(f"Default space DUID: {default_space['duid']}")
    except Exception as e:
        print(f"[Debug] Error getting space: {str(e)}", 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 default space');
                        const output = await this.runDartCommand(command);
                        console.error('[Debug] Get default space output:', output);
                        const response = {
                            content: [{
                                type: 'text',
                                text: output,
                            }],
                        };
                        return response;
                    }
  • src/index.ts:243-250 (registration)
    Registration of the 'get_default_space' tool in the ListTools response, including its name, description, and input schema (empty object, no parameters required).
        name: 'get_default_space',
        description: 'Get the default space DUID',
        inputSchema: {
            type: 'object',
            properties: {},
            required: [],
        },
    },
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is a 'Get' operation (implying read-only), but doesn't clarify whether this requires authentication, has rate limits, returns structured data or just an ID, or what happens if no default space exists. The description is minimal and lacks important operational context.

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 states exactly what the tool does with zero wasted words. It's appropriately sized for a simple zero-parameter retrieval tool and is perfectly front-loaded with the core functionality.

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?

For a tool with no annotations and no output schema, the description is insufficiently complete. It doesn't explain what 'DUID' means, what format the return value takes, whether this is a simple ID or full object, or error conditions. The agent lacks critical information to use this tool effectively despite its simplicity.

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

Parameters4/5

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

The tool has zero parameters with 100% schema description coverage, so the schema already fully documents the parameter situation. The description appropriately doesn't discuss parameters since none exist, earning a baseline score of 4 for not adding unnecessary information.

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 ('Get') and the resource ('default space DUID'), making the purpose immediately understandable. However, it doesn't differentiate from sibling tools like 'get_folders' or 'get_dartboards' beyond the specific resource type, and 'DUID' might be an unfamiliar term to some agents.

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. There's no mention of prerequisites, when this should be called versus other 'get_' tools, or what context makes it appropriate. The agent must infer usage from the tool 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/jmanhype/dart-mcp-server'

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