Skip to main content
Glama

init_project_context

Idempotent

Initialize or update project context documentation by generating a writing plan, AGENTS.md, and layout.json for structured project knowledge.

Instructions

生成/更新项目上下文写作计划(delegated):MCP 写入 AGENTS.md 与 layout.json;project-context 分类文档与 graph-insights 由 Agent 按返回的 plan 落盘。新功能请先 start_feature,修 bug 请先 start_bugfix。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNoAGENTS.md 语言;默认根据 README 探测
outputNo高级:索引文件相对路径,如 AGENTS.md
docs_dirNo附属文档根目录(project-context、graph-insights)。默认 docs
filenameNo高级:与 output_dir 合用,默认 project-context.md
output_dirNo高级:索引所在目录,如 .claude/rules
index_styleNo索引风格:auto(默认 AGENTS.md)、agents、legacy(docs/project-context.md)
Behavior4/5

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

Annotations indicate idempotent and non-destructive. Description adds that the tool writes to specific files (AGENTS.md, layout.json) and delegates follow-up actions. Could be more explicit about side effects or overwrite behavior.

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 concise, front-loading the core action and directing use cases. It packs essential information without redundancy.

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?

While purpose and usage are clear, the description lacks details on the returned plan structure and how the agent should use it. With no output schema, more completeness would improve agent understanding.

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% with each parameter described. The description does not add additional semantic context beyond the schema, so baseline of 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 clearly states the tool generates/updates project context writing plan, writing AGENTS.md and layout.json, and directs the agent to write associated documents. It distinguishes from sibling tools like start_feature and start_bugfix by indicating separate workflows.

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

Usage Guidelines5/5

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

Explicitly instructs when to use alternatives: for new features use start_feature, for bug fixes use start_bugfix. This provides clear context for tool selection.

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/mybolide/mcp-probe-kit'

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