Skip to main content
Glama

register_workspace

Idempotent

Register a local workspace folder as a Hub project and persist its mapping in one step, optionally creating a default open thread for tracking unfinished work.

Instructions

Register a local folder as a Hub project in one operation.

    Side effect: this persists the workspace/project mapping and, when
    create_open_thread=true, also creates a default open thread. Use
    resolve_project when you only need to resolve an already-known workspace
    or want optional lookup-with-create behavior.
    

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace_path": "<workspace_path>"
    },
    "name": "register_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoOptional title for a new project; defaults to the workspace basename. Does not rename an existing project.
summaryNoOptional title for the default new thread; defaults to Continue <project title>, truncated to 500 characters.
source_toolNoOriginating client/tool name for the default thread; defaults to mcp (also used when null).mcp
workspace_pathYesNonblank client workspace folder path (1–4000 characters) to resolve or register; the Hub need not access that folder.
create_open_threadNoDefaults to true: create a default thread only if the project has no unfinished threads; never adopts an arbitrary existing thread.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.22.0
    • addedInput schema / properties / create_open_thread / description
      Added value: +"Defaults to true: create a default thread only if the project has no unfinished threads; never adopts an arbitrary existing thread."
    • addedInput schema / properties / source_tool / description
      Added value: +"Originating client/tool name for the default thread; defaults to mcp (also used when null)."
    • addedInput schema / properties / summary / description
      Added value: +"Optional title for the default new thread; defaults to Continue <project title>, truncated to 500 characters."
    • addedInput schema / properties / title / description
      Added value: +"Optional title for a new project; defaults to the workspace basename. Does not rename an existing project."
    • addedInput schema / properties / workspace_path / description
      Added value: +"Nonblank client workspace folder path (1–4000 characters) to resolve or register; the Hub need not access that folder."
  2. First observedv0.12.0

TDQS

A4.2/5.0
Behavior4/5

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

The description adds real context beyond the annotations by disclosing the persistence side effect and the conditional creation of a default open thread when create_open_thread=true. That complements readOnlyHint=false and idempotentHint=true rather than contradicting them. It does not address permission requirements or what happens on re-registration of an already-mapped workspace, which keeps it below 5.

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?

Two short sentences, front-loaded with what the tool does before describing side effects and the alternative. No filler or redundancy, though the second sentence carries a slightly wordy trailing clause that could be tightened.

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

Completeness5/5

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

For a mutating, idempotent, open-world tool with five well-documented parameters, full annotations, and an output schema, the description supplies exactly the missing pieces: side effects and sibling routing. Nothing an agent needs in order to call it correctly is absent.

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 five parameters already carry their own semantics, including the nuanced 'never adopts an arbitrary existing thread' note. The description only echoes the create_open_thread behavior in prose, adding no new meaning such as path-format expectations or title collision handling. Baseline 3 is appropriate when the schema does the heavy lifting.

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

Purpose5/5

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

States a specific verb and resource ('Register a local folder as a Hub project') plus the scope qualifier 'in one operation', which distinguishes it from a plain resolve. An agent can tell the combined register-and-provision behavior apart from the read-oriented siblings without opening the schema.

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

Usage Guidelines4/5

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

Explicitly routes the agent away from this tool: 'Use resolve_project when you only need to resolve an already-known workspace or want optional lookup-with-create behavior' gives a concrete when-not condition and names the alternative. It stops short of distinguishing from the equally close sibling upsert_project, so the routing is clear but not exhaustive.

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