Skip to main content
Glama

set_project_root

Set the target project root directory before working with projects that are not auto-detected. Call this first to ensure tools operate on the correct project.

Instructions

Sets the target project root directory.
Call this FIRST when working with a project that is not auto-detected.

Args:
    path: Absolute path to the project root directory.

Returns:
    Confirmation message with the new project root.

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses that the tool sets a target root and returns a confirmation, but it does not clarify whether the setting is session-scoped or persistent, how it affects subsequent tool calls, or what happens with an invalid path.

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 short and front-loaded, with the core action and sequencing rule first. The Args/Returns sections are lightweight, though the Returns section is somewhat redundant because an output schema exists.

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

Completeness3/5

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

The output schema removes the need to explain the return value, and the description covers the basic call condition. However, for a state-setting prerequisite tool with no annotations, it leaves important behavioral details unspecified, such as persistence scope and error behavior.

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 0% and the schema only says 'Path', but the description adds useful semantics: the path must be absolute and refers to the project root directory. For a single parameter this is enough to call correctly.

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 states a clear verb and resource ('Sets the target project root directory') and identifies the tool's role in the workflow. It is distinguishable from most siblings, though it does not explicitly name alternatives or contrast with project-overview/detection tools.

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?

It gives a clear trigger: 'Call this FIRST when working with a project that is not auto-detected.' This is useful sequencing guidance, though it does not spell out what to do when the project is auto-detected or which sibling detects it.

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