Skip to main content
Glama

init_project_setup

Configure workspace context, rebuild code graph, and generate .github/copilot-instructions.md automatically as the first step for any new project or fresh session.

Instructions

One-shot project initialization: sets workspace context, triggers graph rebuild, and generates .github/copilot-instructions.md if not present. Use this as the first step when onboarding a new project or starting a fresh session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceRootYesAbsolute path to the project root to initialize
sourceDirNoSource directory relative to workspaceRoot (default: src)
projectIdNoProject identifier (default: basename of workspaceRoot)
rebuildModeNoincremental = changed files only; full = rebuild entire graphincremental
withDocsNoAlso index markdown docs during rebuild
profileNoResponse profilecompact
Behavior4/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 clearly explains the three distinct behaviors (workspace context, graph rebuild, file generation) and conditions ('if not present'). It does not disclose potential side effects like overwriting existing files or permission requirements, but for an initialization tool that is expected to set up state, this is reasonable.

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?

The description is extremely concise: two sentences that deliver purpose and usage with no waste. It is front-loaded with the most critical information first.

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?

Given 6 parameters, full schema coverage, and no output schema, the description adequately covers the tool's purpose and usage. It lacks mention of return format or error behavior, but for a setup tool the actions are more important. Still, a slight gap exists.

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 coverage is 100%, meaning all 6 parameters already have descriptions. The tool description adds some overall context tying parameters to actions (e.g., 'workspaceRoot' for setting context, 'rebuildMode' for rebuild), but does not provide additional semantic details beyond what the schema already offers. Therefore, baseline 3 is appropriate.

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 specifies the verb 'initializes' and the resource 'project', enumerating three concrete actions: setting workspace context, triggering graph rebuild, and generating copilot instructions. It distinguishes from sibling tools like graph_rebuild or setup_copilot_instructions by combining them into a one-shot operation.

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?

The description explicitly states when to use it: 'as the first step when onboarding a new project or starting a fresh session.' It does not explicitly list alternatives or when not to use it, but the context implies that for single actions like only rebuilding the graph, one would use graph_rebuild.

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/lexCoder2/lxDIG-MCP'

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