Skip to main content
Glama

init_workspace

Initializes a new .codeexplorer workspace in a target directory, letting you set an optional display name, custom root path, or force reinitialization of an existing workspace before indexing a repository.

Instructions

Initialize a new '.codeexplorer' workspace in the target directory.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "init_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional workspace display name.
forceNoReinitialize existing workspace if true.
workspacePathNoOptional workspace root directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.80.5

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden and does not say whether initialization writes files, whether it overwrites anything, whether it is idempotent, or whether privileged filesystem access is required. The 'force' parameter's reinitialization behavior is only visible in the schema, not contextualized here, and no return/confirmation behavior is described.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity is partly the cause of the missing behavioral and usage context.

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?

This is a mutation/initialization tool with zero annotations and no output schema, so the description should explain prerequisites, side effects, and what the caller gets back. It supplies none of that, leaving an agent unable to predict the consequences of calling it.

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%, so all three parameters (name, force, workspacePath) are already documented in the schema. The phrase 'target directory' loosely signals how workspacePath is used, but adds no format, default, or interaction detail beyond the structured fields — baseline 3 applies.

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 gives a specific verb ('Initialize') and resource ('.codeexplorer' workspace in a target directory), which cleanly separates it from siblings such as get_workspace_status, clear_workspace_index, and scan_workspace. It stops short of explicitly naming those siblings, so it does not reach a 5.

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?

There is no guidance on when this should be run relative to the sibling tools — for example, whether it must precede scan_workspace or ingest_graph_data, or whether it is safe to call on a directory that already has an index. No alternatives or exclusions are mentioned.

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