Skip to main content
Glama

set_project_root

Registers a new project root and switches to it. If already registered, switches without reindex unless force is true.

Instructions

Register a new project root and switch to it. If the path is already registered, this becomes a cheap active-root switch (no reindex) unless force=true is set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoAlias de `path`. Absolute path to the project root directory.
pathNoAbsolute path to the project root directory.
rootNoAlias de `path`. Absolute path to the project root directory.
forceNoRebuild the index even if the project is already registered.
projectNoAlias de `path`. Absolute path to the project root directory.
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses that switching is cheap unless force=true triggers reindex. Does not mention any destructive behavior or side effects, but the tool is non-destructive by nature.

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?

Two concise sentences front-load the core purpose and add a critical behavioral condition. No wasted words.

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

Completeness4/5

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

With no output schema, the description does not mention return value, but the behavior is well-covered. For a registration/switch tool, it addresses the key behavioral nuance.

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?

Schema coverage is 100%, so baseline is 3. Description adds value by explaining the force parameter's behavior (reindex vs cheap switch), going beyond schema's generic description.

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?

The description clearly states the tool registers a new project root and switches to it, distinguishing its dual role from sibling tools like 'switch_project' which likely only switches.

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?

Provides explicit context on when reindexing occurs (when force=true or new path) versus cheap switching. Does not name alternatives, but behavior is clearly scoped.

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/Mibayy/token-savior'

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