Skip to main content
Glama
tgt-technology

code-index-pg

set_project_path

Set the active project directory for code indexing and analysis, enabling unified search and impact analysis across the monorepo.

Instructions

Index a project directory and make it the active project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool indexes a directory and changes the active project, but it does not mention side effects such as whether the previous active project is replaced, whether the index is persisted, whether the path must exist, or whether this operation is destructive to any existing index. The description is too thin for a state-changing tool.

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 a single concise sentence that front-loads the main action and the effect. It is not bloated, though it could add a bit more useful detail without becoming verbose.

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?

The tool has an output schema, which may describe return values, but the description does not cover important context: prerequisites (e.g., does the directory need to be a valid project?), side effects (e.g., replacing the active project), and relationship to siblings like update_index. For a state-changing tool with no annotations, this is a significant gap.

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

Parameters2/5

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

Schema description coverage is 0% and the schema only says 'path' is a string. The description adds that the path is a project directory, but it does not clarify whether the path must be absolute, whether it must already exist, or what happens if it is invalid. With only one parameter and no schema description, the description should compensate more than it does.

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 uses a specific verb ('Index') and a specific resource ('a project directory'), and states the effect ('make it the active project'). It is clear what the tool does, though it does not explicitly distinguish itself from sibling tools like update_index or remove_project.

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

Usage Guidelines3/5

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

The description implies the tool is used to set up a project for subsequent operations, but it does not state when to use it versus alternatives like update_index, nor does it mention any prerequisites or exclusions. Some context is implied by the phrase 'active project' but no explicit guidance is given.

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